# Generated by Django 3.2.13 on 2024-04-08 16:26

import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('authentication', '0022_auto_20240326_1425'),
    ]

    operations = [
        migrations.CreateModel(
            name='Notice',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('title', models.CharField(max_length=1000, null=True)),
                ('text', models.TextField(null=True)),
                ('users', models.JSONField(null=True)),
                ('read_users', models.JSONField(null=True)),
                ('unread_users', models.JSONField(null=True)),
                ('roles', models.JSONField(null=True)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notice_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notice_modifiedby', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AlterField(
            model_name='usermessage',
            name='expire',
            field=models.DateTimeField(default=datetime.datetime(2024, 4, 8, 17, 26, 21, 530567)),
        ),
        migrations.AlterField(
            model_name='usermessage',
            name='time',
            field=models.DateTimeField(default=datetime.datetime(2024, 4, 8, 16, 26, 21, 530567)),
        ),
        migrations.AlterField(
            model_name='usermessagesend',
            name='message',
            field=models.TextField(null=True),
        ),
        migrations.AlterField(
            model_name='userprofile',
            name='date_of_register',
            field=models.DateTimeField(default=datetime.datetime(2024, 4, 8, 16, 26, 21, 526571)),
        ),
        migrations.AlterField(
            model_name='userprofile',
            name='hatching_date',
            field=models.DateTimeField(default=datetime.datetime(2024, 4, 8, 16, 26, 21, 526571)),
        ),
        migrations.AlterField(
            model_name='userprofile',
            name='last_party_date',
            field=models.DateTimeField(default=datetime.datetime(2024, 4, 8, 16, 26, 21, 526571)),
        ),
        migrations.CreateModel(
            name='UserNoticeInfo',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('key', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
                ('create_date', models.DateTimeField(auto_now_add=True)),
                ('modify_date', models.DateTimeField(auto_now=True)),
                ('trash', models.BooleanField(default=False)),
                ('seen', models.BooleanField(default=False)),
                ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='usernoticeinfo_createdby', to=settings.AUTH_USER_MODEL)),
                ('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='usernoticeinfo_modifiedby', to=settings.AUTH_USER_MODEL)),
                ('notice', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='user_notice', to='authentication.notice')),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='notice_users', to='authentication.systemuserprofile')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
