rcnn/backend/apps/splats/migrations/0001_initial.py
Marius Unsel d93412cd0d Initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 01:12:40 +02:00

44 lines
2.2 KiB
Python

# Generated by Django 5.1.4 on 2026-04-06 03:08
import django.contrib.gis.db.models.fields
import django.db.models.deletion
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('challenges', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Splat',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('status', models.CharField(choices=[('pending', 'Pending'), ('processing', 'Processing'), ('ready', 'Ready'), ('failed', 'Failed')], db_index=True, default='pending', max_length=20)),
('is_published', models.BooleanField(db_index=True, default=False)),
('location', django.contrib.gis.db.models.fields.PointField(blank=True, geography=True, null=True, srid=4326)),
('coverage', django.contrib.gis.db.models.fields.PolygonField(blank=True, geography=True, null=True, srid=4326)),
('heading', models.FloatField(blank=True, null=True)),
('altitude', models.FloatField(blank=True, null=True)),
('video_key', models.CharField(blank=True, default='', max_length=500)),
('splat_key', models.CharField(blank=True, default='', max_length=500)),
('preview_key', models.CharField(blank=True, default='', max_length=500)),
('splat_file_size', models.PositiveBigIntegerField(blank=True, null=True)),
('quality_score', models.FloatField(blank=True, null=True)),
('frame_count', models.PositiveIntegerField(blank=True, null=True)),
('capture_metadata', models.JSONField(blank=True, default=dict)),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('challenge', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='splats', to='challenges.challenge')),
],
options={
'db_table': 'splats',
},
),
]