mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-23 16:07:39 +00:00
79da9e9f4f
(`ruff check --fix`)
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
|
|
from django.db import migrations, models
|
|
from django.conf import settings
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Profile",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
primary_key=True,
|
|
),
|
|
),
|
|
("next_report_date", models.DateTimeField(null=True, blank=True)),
|
|
("reports_allowed", models.BooleanField(default=True)),
|
|
(
|
|
"user",
|
|
models.OneToOneField(
|
|
blank=True,
|
|
to=settings.AUTH_USER_MODEL,
|
|
null=True,
|
|
on_delete=models.CASCADE,
|
|
),
|
|
),
|
|
],
|
|
)
|
|
]
|