mirror of https://gitlab.crans.org/bde/nk20
77 lines
3.3 KiB
Python
77 lines
3.3 KiB
Python
# Generated by Django 2.2.3 on 2019-07-16 11:44
|
|
|
|
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')),
|
|
],
|
|
options={
|
|
'verbose_name': 'activity',
|
|
'verbose_name_plural': 'activities',
|
|
},
|
|
),
|
|
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')),
|
|
],
|
|
options={
|
|
'verbose_name': 'activity type',
|
|
'verbose_name_plural': 'activity types',
|
|
},
|
|
),
|
|
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)),
|
|
],
|
|
options={
|
|
'verbose_name': 'guest',
|
|
'verbose_name_plural': 'guests',
|
|
},
|
|
),
|
|
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'),
|
|
),
|
|
]
|