# -*- coding: utf-8 -*-
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Agreement',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('mofified', models.DateTimeField(auto_now=True)),
                ('title', models.CharField(max_length=75)),
                ('description', models.TextField(max_length=300)),
                ('positive_vote', models.PositiveSmallIntegerField()),
                ('negative_vote', models.PositiveSmallIntegerField()),
                ('status', models.CharField(choices=[(0, 'En proceso'), (1, 'Aprobada'), (2, 'Rechazada')], default=0, max_length=1)),
                ('end_date_aux', models.CharField(choices=[(1, '1 Día'), (3, '3 Días'), (7, '7 Días')], max_length=1)),
                ('end_date', models.DateTimeField()),
                ('profile', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='CommentDiscussion',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('mofified', models.DateTimeField(auto_now=True)),
                ('description', models.TextField(max_length=300)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='CommentPublication',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('mofified', models.DateTimeField(auto_now=True)),
                ('description', models.TextField(max_length=200)),
                ('like', models.PositiveSmallIntegerField()),
                ('profile', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Discussion',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('mofified', models.DateTimeField(auto_now=True)),
                ('title', models.CharField(max_length=75)),
                ('description', models.TextField(max_length=300)),
                ('positive_vote', models.PositiveSmallIntegerField()),
                ('negative_vote', models.PositiveSmallIntegerField()),
                ('status', models.CharField(choices=[(0, 'Cerrada'), (1, 'Abierta')], default=1, max_length=1)),
                ('agreement', models.ForeignKey(to='society.Agreement', related_name='discussions')),
                ('profile', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Publication',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('mofified', models.DateTimeField(auto_now=True)),
                ('title', models.CharField(max_length=75)),
                ('description', models.TextField(max_length=250)),
                ('picture', models.ImageField(upload_to='publications')),
                ('priority', models.CharField(choices=[(0, 'Normal'), (1, 'Urgente')], default=0, max_length=1)),
                ('like', models.PositiveSmallIntegerField()),
                ('profile', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Society',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('name', models.CharField(max_length=50)),
                ('city', models.CharField(max_length=50)),
                ('country', models.CharField(max_length=50)),
            ],
        ),
        migrations.AddField(
            model_name='commentpublication',
            name='publication',
            field=models.ForeignKey(to='society.Publication', related_name='comments'),
        ),
        migrations.AddField(
            model_name='commentdiscussion',
            name='discussion',
            field=models.ForeignKey(to='society.Discussion', related_name='comments'),
        ),
        migrations.AddField(
            model_name='commentdiscussion',
            name='profile',
            field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
        ),
    ]
