mirror of
https://github.com/healthchecks/healthchecks.git
synced 2024-11-21 15:17:57 +00:00
79da9e9f4f
(`ruff check --fix`)
38 lines
1.1 KiB
Python
38 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="Subscription",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
serialize=False,
|
|
primary_key=True,
|
|
auto_created=True,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("customer_id", models.CharField(blank=True, max_length=36)),
|
|
("payment_method_token", models.CharField(blank=True, max_length=35)),
|
|
("subscription_id", models.CharField(blank=True, max_length=10)),
|
|
(
|
|
"user",
|
|
models.OneToOneField(
|
|
blank=True,
|
|
null=True,
|
|
to=settings.AUTH_USER_MODEL,
|
|
on_delete=models.CASCADE,
|
|
),
|
|
),
|
|
],
|
|
)
|
|
]
|