# Generated by Django 4.2.7 on 2023-12-09 02:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Container', fields=[ ('is_deleted', models.BooleanField(default=False)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('cid', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=255)), ('created_at', models.DateTimeField(blank=True, null=True)), ('updated_at', models.DateTimeField(blank=True, null=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Event', fields=[ ('eid', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=255)), ('slug', models.CharField(max_length=255, unique=True)), ('start', models.DateTimeField(blank=True, null=True)), ('end', models.DateTimeField(blank=True, null=True)), ('pre_start', models.DateTimeField(blank=True, null=True)), ('post_end', models.DateTimeField(blank=True, null=True)), ('created_at', models.DateTimeField(blank=True, null=True)), ('updated_at', models.DateTimeField(blank=True, null=True)), ], ), migrations.CreateModel( name='Item', fields=[ ('is_deleted', models.BooleanField(default=False)), ('deleted_at', models.DateTimeField(blank=True, null=True)), ('iid', models.AutoField(primary_key=True, serialize=False)), ('uid', models.IntegerField()), ('description', models.TextField()), ('returned_at', models.DateTimeField(blank=True, null=True)), ('created_at', models.DateTimeField(blank=True, null=True)), ('updated_at', models.DateTimeField(blank=True, null=True)), ('container', models.ForeignKey(db_column='cid', on_delete=django.db.models.deletion.CASCADE, to='inventory.container')), ('event', models.ForeignKey(db_column='eid', on_delete=django.db.models.deletion.CASCADE, to='inventory.event')), ], options={ 'permissions': [('match_item', 'Can match item')], 'unique_together': {('uid', 'event')}, }, ), ]