46 lines
1.7 KiB
Python
46 lines
1.7 KiB
Python
# Generated by Django 3.0.5 on 2020-04-09 13:11
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Member',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('member_number', models.PositiveIntegerField(blank=True, null=True, unique=True, verbose_name='aoff member number')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='PickupDate',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('date', models.DateField(verbose_name='date of pickup')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Timeslot',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('start', models.TimeField(verbose_name='start of timeslot')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Pickup',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('date', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='schedule.PickupDate')),
|
|
('member', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='schedule.Member')),
|
|
('time', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='schedule.Timeslot')),
|
|
],
|
|
),
|
|
]
|