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

  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 = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
  7. operations = [
  8. migrations.CreateModel(
  9. name="Subscription",
  10. fields=[
  11. (
  12. "id",
  13. models.AutoField(
  14. serialize=False,
  15. primary_key=True,
  16. auto_created=True,
  17. verbose_name="ID",
  18. ),
  19. ),
  20. ("customer_id", models.CharField(blank=True, max_length=36)),
  21. ("payment_method_token", models.CharField(blank=True, max_length=35)),
  22. ("subscription_id", models.CharField(blank=True, max_length=10)),
  23. (
  24. "user",
  25. models.OneToOneField(
  26. blank=True,
  27. null=True,
  28. to=settings.AUTH_USER_MODEL,
  29. on_delete=models.CASCADE,
  30. ),
  31. ),
  32. ],
  33. )
  34. ]