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

31 lines
965 B
Python

from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [("api", "0006_check_grace")]
operations = [
migrations.CreateModel(
name="Ping",
fields=[
(
"id",
models.AutoField(
primary_key=True,
serialize=False,
auto_created=True,
verbose_name="ID",
),
),
("created", models.DateTimeField(auto_now_add=True)),
("remote_addr", models.GenericIPAddressField()),
("method", models.CharField(max_length=10)),
("ua", models.CharField(max_length=100, blank=True)),
("body", models.TextField(blank=True)),
("owner", models.ForeignKey(to="api.Check", on_delete=models.CASCADE)),
],
)
]