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.

25 lines
901 B

  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import migrations, models
  4. from django.conf import settings
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name='Subscription',
  12. fields=[
  13. ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
  14. ('customer_id', models.CharField(blank=True, max_length=36)),
  15. ('payment_method_token', models.CharField(blank=True, max_length=35)),
  16. ('subscription_id', models.CharField(blank=True, max_length=10)),
  17. ('user', models.OneToOneField(blank=True, null=True, to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE)),
  18. ],
  19. ),
  20. ]