bornhack-website/src/events/migrations/0001_initial.py

52 lines
1.8 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-03-18 13:16
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('teams', '0025_auto_20180318_1318'),
]
operations = [
migrations.CreateModel(
name='Routing',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='Type',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('name', models.TextField(help_text='The type of event', unique=True)),
],
options={
'abstract': False,
},
),
migrations.AddField(
model_name='routing',
name='eventtype',
field=models.ForeignKey(help_text='The type of event to route', on_delete=django.db.models.deletion.PROTECT, related_name='eventroutes', to='events.Type'),
),
migrations.AddField(
model_name='routing',
name='team',
field=models.ForeignKey(help_text='The team which should receive events of this type.', on_delete=django.db.models.deletion.PROTECT, related_name='eventroutes', to='teams.Team'),
),
]