2024-05-10 23:15:29 +08:00
|
|
|
# Generated by Django 5.0.6 on 2024-05-10 13:56
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2024-10-30 22:09:58 +08:00
|
|
|
name="Notification",
|
2024-05-10 23:15:29 +08:00
|
|
|
fields=[
|
2024-10-30 22:09:58 +08:00
|
|
|
(
|
|
|
|
"id",
|
|
|
|
models.BigAutoField(
|
|
|
|
auto_created=True,
|
|
|
|
primary_key=True,
|
|
|
|
serialize=False,
|
|
|
|
verbose_name="ID",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("content", models.CharField(max_length=1000, null=True)),
|
|
|
|
("timestamp", models.DateTimeField(auto_now_add=True)),
|
|
|
|
("dismissed", models.BooleanField(default=False)),
|
|
|
|
(
|
|
|
|
"recipient",
|
|
|
|
models.ForeignKey(
|
|
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
|
|
to=settings.AUTH_USER_MODEL,
|
|
|
|
),
|
|
|
|
),
|
2024-05-10 23:15:29 +08:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|