# Generated by Django 5.0.3 on 2024-03-13 17:51

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Notification',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=128, verbose_name='title')),
                ('content', models.TextField(verbose_name='content')),
                ('is_read', models.BooleanField(db_index=True, default=False, verbose_name='read')),
                ('is_important', models.BooleanField(default=False, verbose_name='important')),
                ('url', models.URLField(blank=True, null=True, verbose_name='link')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')),
            ],
            options={
                'default_permissions': (),
            },
        ),
        migrations.CreateModel(
            name='Setting',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('permissions', models.JSONField(blank=True, default=dict)),
            ],
            options={
                'verbose_name': 'Notification setting',
                'verbose_name_plural': 'Notification settings',
                'ordering': ['user'],
                'permissions': [('change_own_settings', 'Can change own setting'), ('add_setting', 'Can add all users settings'), ('change_setting', 'Can change all users settings'), ('view_setting', 'Can view all users settings')],
                'default_permissions': (),
            },
        ),
    ]
