<gh_stars>0
# Generated by Django 2.2.3 on 2019-08-19 19:08

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('taggit', '0003_taggeditem_add_unique_index'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Thread',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='Title')),
                ('slug', models.SlugField(max_length=100, unique=True, verbose_name='Identifier')),
                ('body', models.TextField(verbose_name='Message')),
                ('views', models.IntegerField(blank=True, default=0, verbose_name='Views')),
                ('answers', models.IntegerField(blank=True, default=0, verbose_name='Responses')),
                ('votePositives', models.IntegerField(blank=True, default=0, verbose_name='PositiveVotes')),
                ('voteNegatives', models.IntegerField(blank=True, default=0, verbose_name='NegativeVotes')),
                ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Created on')),
                ('updated_on', models.DateTimeField(auto_now=True, verbose_name='Last update')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='threads', to=settings.AUTH_USER_MODEL, verbose_name='Author')),
                ('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'ordering': ['-updated_on'],
                'verbose_name': 'Topic',
                'verbose_name_plural': 'Topics',
            },
        ),
        migrations.CreateModel(
            name='Reply',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('reply', models.TextField(verbose_name='Reply')),
                ('correct', models.BooleanField(blank=True, default=False, verbose_name='Correct?')),
                ('votePositives', models.IntegerField(blank=True, default=0, verbose_name='PositiveVotes')),
                ('voteNegatives', models.IntegerField(blank=True, default=0, verbose_name='NegativeVotes')),
                ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Created on')),
                ('updated_on', models.DateTimeField(auto_now=True, verbose_name='Last update')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='replies', to=settings.AUTH_USER_MODEL, verbose_name='Autor')),
                ('thread', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='replies', to='forum.Thread', verbose_name='Topic')),
            ],
            options={
                'ordering': ['-correct', 'created_on'],
                'verbose_name': 'Reply',
                'verbose_name_plural': 'Replies',
            },
        ),
    ]

# Generated by Django 2.2.3 on 2019-08-19 19:08

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('taggit', '0003_taggeditem_add_unique_index'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Thread',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='Title')),
                ('slug', models.SlugField(max_length=100, unique=True, verbose_name='Identifier')),
                ('body', models.TextField(verbose_name='Message')),
                ('views', models.IntegerField(blank=True, default=0, verbose_name='Views')),
                ('answers', models.IntegerField(blank=True, default=0, verbose_name='Responses')),
                ('votePositives', models.IntegerField(blank=True, default=0, verbose_name='PositiveVotes')),
                ('voteNegatives', models.IntegerField(blank=True, default=0, verbose_name='NegativeVotes')),
                ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Created on')),
                ('updated_on', models.DateTimeField(auto_now=True, verbose_name='Last update')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='threads', to=settings.AUTH_USER_MODEL, verbose_name='Author')),
                ('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
            ],
            options={
                'ordering': ['-updated_on'],
                'verbose_name': 'Topic',
                'verbose_name_plural': 'Topics',
            },
        ),
        migrations.CreateModel(
            name='Reply',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('reply', models.TextField(verbose_name='Reply')),
                ('correct', models.BooleanField(blank=True, default=False, verbose_name='Correct?')),
                ('votePositives', models.IntegerField(blank=True, default=0, verbose_name='PositiveVotes')),
                ('voteNegatives', models.IntegerField(blank=True, default=0, verbose_name='NegativeVotes')),
                ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Created on')),
                ('updated_on', models.DateTimeField(auto_now=True, verbose_name='Last update')),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='replies', to=settings.AUTH_USER_MODEL, verbose_name='Autor')),
                ('thread', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='replies', to='forum.Thread', verbose_name='Topic')),
            ],
            options={
                'ordering': ['-correct', 'created_on'],
                'verbose_name': 'Reply',
                'verbose_name_plural': 'Replies',
            },
        ),
    ]
# Generated by Django 2.2.3 on 2019-08-19 19:08