You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
# Generated by Django 3.2.7 on 2025-02-12 16:27
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('account', '0006_user_country'),
|
|
]
|
|
|
|
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=255, verbose_name='title')),
|
|
('message', models.TextField(max_length=512, verbose_name='message')),
|
|
('is_read', models.BooleanField(default=False, verbose_name='is read')),
|
|
('created_at', models.DateTimeField(auto_now_add=True, null=True, verbose_name='created at')),
|
|
('updated_at', models.DateTimeField(auto_now=True, null=True, verbose_name='updated at')),
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notifications', to=settings.AUTH_USER_MODEL, verbose_name='user')),
|
|
],
|
|
),
|
|
]
|