mirror of https://gitlab.crans.org/bde/nk20
65 lines
2.9 KiB
Python
65 lines
2.9 KiB
Python
# Generated by Django 2.2.3 on 2019-07-16 10:33
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('note', '0001_initial'),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('member', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Activity',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=255, verbose_name='name')),
|
|
('description', models.TextField(verbose_name='description')),
|
|
('date_start', models.DateTimeField(verbose_name='start date')),
|
|
('date_end', models.DateTimeField(verbose_name='end date')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='ActivityType',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=255, verbose_name='name')),
|
|
('can_invite', models.BooleanField(verbose_name='can invite')),
|
|
('guest_entry_fee', models.PositiveIntegerField(verbose_name='guest entry fee')),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Guest',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=255)),
|
|
('entry', models.DateTimeField(null=True)),
|
|
('activity', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='activity.Activity')),
|
|
('entry_transaction', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='note.Transaction')),
|
|
('inviter', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
model_name='activity',
|
|
name='activity_type',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='activity.ActivityType', verbose_name='type'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='activity',
|
|
name='attendees_club',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='member.Club', verbose_name='attendees club'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='activity',
|
|
name='organizer',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='member.Club', verbose_name='organizer'),
|
|
),
|
|
]
|