# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-05-13 15:14
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Boat',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('boatname', models.CharField(max_length=30)),
                ('boatcode', models.CharField(max_length=10)),
                ('nrseats', models.IntegerField()),
                ('status', models.CharField(choices=[('water', 'water'), ('hangar', 'hangar'), ('damaged', 'damaged'), ('races', 'races')], default='hangar', max_length=30)),
                ('comment', models.CharField(blank=True, max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='BoatCategory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
            ],
        ),
        migrations.CreateModel(
            name='Member',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('contributions', models.BooleanField(default=True)),
                ('status', models.CharField(choices=[('coach', 'coach'), ('member', 'member'), ('administrator', 'administrator')], default='member', max_length=30)),
                ('categories', models.ManyToManyField(to='cvkbrno.BoatCategory')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Outing',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('starttime', models.DateTimeField()),
                ('endtime', models.DateTimeField()),
                ('distance', models.FloatField()),
                ('comment', models.CharField(blank=True, max_length=100)),
                ('status', models.CharField(choices=[('reservation', 'reservation'), ('active', 'active'), ('completed', 'completed'), ('race', 'race')], default='active', max_length=30)),
                ('boat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cvkbrno.Boat')),
                ('rower', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cvkbrno.Member')),
            ],
        ),
        migrations.AddField(
            model_name='boat',
            name='categories',
            field=models.ManyToManyField(to='cvkbrno.BoatCategory'),
        ),
    ]
