# -*- coding: utf-8 -*-


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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency('users.User'),
    ]

    operations = [
        migrations.CreateModel(
            name='Notice',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('subject', models.TextField(verbose_name='\u0422\u0435\u043c\u0430')),
                ('message', models.TextField(verbose_name='\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435')),
                ('added', models.DateTimeField(auto_now_add=True)),
                ('is_seen', models.BooleanField(default=False, verbose_name='\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u044c')),
                ('recipient', models.ForeignKey(related_name='received_notices', verbose_name='\u041f\u043e\u043b\u0443\u0447\u0430\u0442\u0435\u043b\u044c', to='users.User', on_delete=models.CASCADE)),
            ],
            options={
                'ordering': ('is_seen', '-added'),
                'db_table': 'notification_notice',
            },
        ),
    ]
