Files
FireworksApp/fireworks_detect/migrations/0001_initial.py
T
2026-09-26 20:59:01 +02:00

48 lines
1.7 KiB
Python

# Generated by Django 6.1.1 on 2026-09-26 13:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('audio_file', models.FileField(upload_to='fireworks_audio/%Y/%m/%d')),
('original_filename', models.CharField(max_length=255)),
('classifier_response', models.JSONField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('approved_at', models.DateTimeField(auto_now_add=True)),
],
options={
'verbose_name': 'Event',
'verbose_name_plural': 'Events',
'ordering': ['-created_at'],
'abstract': False,
},
),
migrations.CreateModel(
name='PendingEvent',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('audio_file', models.FileField(upload_to='fireworks_audio/%Y/%m/%d')),
('original_filename', models.CharField(max_length=255)),
('classifier_response', models.JSONField()),
('created_at', models.DateTimeField(auto_now_add=True)),
],
options={
'verbose_name': 'Pending event',
'verbose_name_plural': 'Pending',
'ordering': ['-created_at'],
'abstract': False,
},
),
]