54 lines
2.2 KiB
Python
54 lines
2.2 KiB
Python
# Generated by Django 4.2.7 on 2023-11-18 11:28
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Container',
|
|
fields=[
|
|
('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)),
|
|
],
|
|
),
|
|
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=[
|
|
('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={
|
|
'unique_together': {('uid', 'event')},
|
|
},
|
|
),
|
|
]
|