mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-24 16:26:49 +00:00
79da9e9f4f
(`ruff check --fix`)
35 lines
992 B
Python
35 lines
992 B
Python
|
|
from django.db import models, migrations
|
|
import uuid
|
|
from django.conf import settings
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Check",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
verbose_name="ID",
|
|
serialize=False,
|
|
),
|
|
),
|
|
("code", models.UUIDField(default=uuid.uuid4, editable=False)),
|
|
("last_ping", models.DateTimeField(null=True, blank=True)),
|
|
(
|
|
"user",
|
|
models.ForeignKey(
|
|
to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE
|
|
),
|
|
),
|
|
],
|
|
)
|
|
]
|