Files
Rasadyar_Kurdestan/notification/migrations/0003_dashboardnotification.py
2026-01-18 11:59:48 +03:30

39 lines
1.8 KiB
Python

# Generated by Django 3.2.13 on 2025-06-15 12:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('notification', '0002_auto_20250121_0857'),
]
operations = [
migrations.CreateModel(
name='DashboardNotification',
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=250, null=True)),
('text', models.TextField(null=True)),
('date', models.DateTimeField(null=True)),
('status', models.CharField(max_length=100, null=True)),
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dashboardnotification_createdby', to=settings.AUTH_USER_MODEL)),
('modified_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dashboardnotification_modifiedby', to=settings.AUTH_USER_MODEL)),
('role', models.ManyToManyField(null=True, related_name='notification_token', to='auth.Group')),
],
options={
'abstract': False,
},
),
]