portier/source/concierge/migrations/0001_initial.py

40 lines
1.5 KiB
Python
Raw Normal View History

# Generated by Django 5.0.2 on 2024-02-27 19:20
import django.db.models.deletion
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('config', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Identity',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('identity', models.UUIDField(default=uuid.uuid4, unique=True)),
('name', models.CharField(max_length=100)),
('notes', models.TextField(blank=True)),
('heartbeat', models.DateTimeField(blank=True, null=True)),
],
),
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('uuid', models.UUIDField(default=uuid.uuid4, unique=True)),
('type', models.CharField(max_length=100)),
('config_id', models.IntegerField()),
('configuration', models.TextField()),
('claimed_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='concierge.identity')),
('stream', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='config.stream')),
],
),
]