40 lines
1.7 KiB
Python
40 lines
1.7 KiB
Python
|
|
# Generated by Django 5.2.17 on 2026-09-28 13:23
|
||
|
|
|
||
|
|
import django.db.models.deletion
|
||
|
|
import uuid
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('clips', '0002_remove_analysis_artifact_analysis_source_blocks'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Source',
|
||
|
|
fields=[
|
||
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
|
('filename', models.CharField(max_length=255)),
|
||
|
|
('probe', models.JSONField(default=dict)),
|
||
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('blob', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, related_name='video_source', to='clips.blob')),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Extraction',
|
||
|
|
fields=[
|
||
|
|
('key', models.CharField(max_length=71, primary_key=True, serialize=False)),
|
||
|
|
('settings', models.JSONField(default=dict)),
|
||
|
|
('state', models.CharField(default='queued', max_length=16)),
|
||
|
|
('progress', models.PositiveIntegerField(default=0)),
|
||
|
|
('error', models.TextField(blank=True)),
|
||
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('updated', models.DateTimeField(auto_now=True)),
|
||
|
|
('footage', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='extractions', to='clips.footage')),
|
||
|
|
('source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='extractions', to='clips.source')),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
]
|