gold eggs backend
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
This commit is contained in:
60
core/apps/eggs/migrations/0071_notification.py
Normal file
60
core/apps/eggs/migrations/0071_notification.py
Normal file
@@ -0,0 +1,60 @@
|
||||
# Generated by Django 5.1 on 2024-08-29 06:42
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("eggs", "0070_party_broken_eggs_party_courier_eggs"),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="Notification",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
("updated_at", models.DateTimeField(auto_now=True)),
|
||||
(
|
||||
"title",
|
||||
models.CharField(max_length=255, verbose_name="Title"),
|
||||
),
|
||||
("body", models.TextField(verbose_name="Body")),
|
||||
(
|
||||
"is_read",
|
||||
models.BooleanField(default=False, verbose_name="Is read"),
|
||||
),
|
||||
(
|
||||
"is_sending",
|
||||
models.BooleanField(
|
||||
default=False, verbose_name="Is sending"
|
||||
),
|
||||
),
|
||||
(
|
||||
"user",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="notifications",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
verbose_name="User",
|
||||
),
|
||||
),
|
||||
],
|
||||
options={
|
||||
"verbose_name": "Notification",
|
||||
"verbose_name_plural": "Notifications",
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user