You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
1.2 KiB

# -*- coding: utf-8 -*-
from __future__ import unicode_literals
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,
),
),
],
)
]