# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-12-20 21:01
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Booking',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('allday', models.BooleanField(default=False, verbose_name='Dia inteiro')),
                ('title', models.CharField(max_length=128, verbose_name='evento')),
                ('start', models.DateTimeField(verbose_name='inicio')),
                ('end', models.DateTimeField(verbose_name='fim')),
                ('created_on', models.DateTimeField(default=django.utils.timezone.now, verbose_name='solicitado em')),
                ('authorized', models.BooleanField(default=False, verbose_name='autorizado')),
                ('editable', models.BooleanField(default=True, verbose_name='Editavel')),
                ('color', models.CharField(choices=[('red', 'red'), ('blue', 'blue'), ('green', 'green'), ('black', 'black'), ('yellow', 'yellow')], default='blue', max_length=15, verbose_name='cor')),
                ('overlap', models.BooleanField(default=True, verbose_name='Sobrepor')),
                ('holiday', models.BooleanField(verbose_name='Feriado')),
                ('participants', models.ManyToManyField(related_name='item_participantes', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ('-start',),
                'verbose_name': 'reserva',
                'verbose_name_plural': 'reservas',
            },
        ),
    ]
