bdd181425b
Docker Compose project with automated Playwright benchmarks comparing django-liveview 2.2.0 against Phoenix LiveView 1.0 across 6 scenarios.
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
dependencies = []
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Alert",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"alert_type",
|
|
models.CharField(
|
|
choices=[
|
|
("INFO", "Info"),
|
|
("WARNING", "Warning"),
|
|
("CRITICAL", "Critical"),
|
|
],
|
|
default="INFO",
|
|
max_length=10,
|
|
),
|
|
),
|
|
("description", models.CharField(max_length=255)),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
],
|
|
options={"ordering": ["-id"]},
|
|
),
|
|
]
|