# Generated by Django 3.2 on 2021-04-15 18:05

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='Author',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('author', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('category', models.CharField(default='select category', max_length=255, unique=True)),
                ('subscriber', models.ManyToManyField(related_name='subscriber', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('choosing', models.BooleanField(default=False)),
                ('time_in', models.DateTimeField(auto_now_add=True)),
                ('title', models.CharField(max_length=255, unique=True)),
                ('text', models.TextField(max_length=255)),
                ('rating', models.FloatField(default=0.0)),
                ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='News.author', verbose_name='User')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='News.category')),
            ],
        ),
    ]

[((245, 302), 'django.db.migrations.swappable_dependency', 'migrations.swappable_dependency', (['settings.AUTH_USER_MODEL'], {}), '(settings.AUTH_USER_MODEL)\n', (276, 302), False, 'from django.db import migrations, models\n'), ((433, 529), 'django.db.models.BigAutoField', 'models.BigAutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (452, 529), False, 'from django.db import migrations, models\n'), ((555, 654), 'django.db.models.OneToOneField', 'models.OneToOneField', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': 'settings.AUTH_USER_MODEL'}), '(on_delete=django.db.models.deletion.CASCADE, to=\n    settings.AUTH_USER_MODEL)\n', (575, 654), False, 'from django.db import migrations, models\n'), ((783, 879), 'django.db.models.BigAutoField', 'models.BigAutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (802, 879), False, 'from django.db import migrations, models\n'), ((907, 979), 'django.db.models.CharField', 'models.CharField', ([], {'default': '"""select category"""', 'max_length': '(255)', 'unique': '(True)'}), "(default='select category', max_length=255, unique=True)\n", (923, 979), False, 'from django.db import migrations, models\n'), ((1013, 1091), 'django.db.models.ManyToManyField', 'models.ManyToManyField', ([], {'related_name': '"""subscriber"""', 'to': 'settings.AUTH_USER_MODEL'}), "(related_name='subscriber', to=settings.AUTH_USER_MODEL)\n", (1035, 1091), False, 'from django.db import migrations, models\n'), ((1221, 1317), 'django.db.models.BigAutoField', 'models.BigAutoField', ([], {'auto_created': '(True)', 'primary_key': '(True)', 'serialize': '(False)', 'verbose_name': '"""ID"""'}), "(auto_created=True, primary_key=True, serialize=False,\n    verbose_name='ID')\n", (1240, 1317), False, 'from django.db import migrations, models\n'), ((1345, 1379), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)'}), '(default=False)\n', (1364, 1379), False, 'from django.db import migrations, models\n'), ((1410, 1449), 'django.db.models.DateTimeField', 'models.DateTimeField', ([], {'auto_now_add': '(True)'}), '(auto_now_add=True)\n', (1430, 1449), False, 'from django.db import migrations, models\n'), ((1478, 1523), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(255)', 'unique': '(True)'}), '(max_length=255, unique=True)\n', (1494, 1523), False, 'from django.db import migrations, models\n'), ((1551, 1583), 'django.db.models.TextField', 'models.TextField', ([], {'max_length': '(255)'}), '(max_length=255)\n', (1567, 1583), False, 'from django.db import migrations, models\n'), ((1613, 1643), 'django.db.models.FloatField', 'models.FloatField', ([], {'default': '(0.0)'}), '(default=0.0)\n', (1630, 1643), False, 'from django.db import migrations, models\n'), ((1673, 1802), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'blank': '(True)', 'null': '(True)', 'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""News.author"""', 'verbose_name': '"""User"""'}), "(blank=True, null=True, on_delete=django.db.models.\n    deletion.CASCADE, to='News.author', verbose_name='User')\n", (1690, 1802), False, 'from django.db import migrations, models\n'), ((1829, 1916), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'on_delete': 'django.db.models.deletion.CASCADE', 'to': '"""News.category"""'}), "(on_delete=django.db.models.deletion.CASCADE, to=\n    'News.category')\n", (1846, 1916), False, 'from django.db import migrations, models\n')]