# Generated by Django 5.1.2 on 2024-12-04 17:47

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('irie_apps_inventory', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Event',
            fields=[
                ('id', models.BigAutoField(primary_key=True, serialize=False)),
                ('upload_date', models.DateField()),
                ('event_file', models.FileField(blank=True, upload_to='events')),
                ('upload_data', models.JSONField(default=dict)),
                ('motion_data', models.JSONField(default=dict)),
                ('cesmd', models.CharField(max_length=7)),
                ('record_identifier', models.CharField(max_length=40)),
                ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='irie_apps_inventory.asset')),
            ],
            options={
                'ordering': ['-id'],
            },
        ),
    ]
