mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-21 15:17:57 +00:00
79da9e9f4f
(`ruff check --fix`)
33 lines
994 B
Python
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)),
|
|
],
|
|
)
|
|
]
|