healthchecks_healthchecks/hc/api/migrations/0011_notification.py
Pēteris Caune 79da9e9f4f
Fix auto-fixable ruff warnings
(`ruff check --fix`)
2024-11-07 15:15:58 +02:00

33 lines
994 B
Python

from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [("api", "0010_channel")]
operations = [
migrations.CreateModel(
name="Notification",
fields=[
(
"id",
models.AutoField(
serialize=False,
auto_created=True,
verbose_name="ID",
primary_key=True,
),
),
("check_status", models.CharField(max_length=6)),
("created", models.DateTimeField(auto_now_add=True)),
("status", models.IntegerField(default=0)),
(
"channel",
models.ForeignKey(to="api.Channel", on_delete=models.CASCADE),
),
("owner", models.ForeignKey(to="api.Check", on_delete=models.CASCADE)),
],
)
]