CCrypto VPN public website https://vpn.ccrypto.org/
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.
 
 
 
 
 
 

50 lines
2.1 KiB

  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.9.5 on 2016-09-04 00:48
  3. from __future__ import unicode_literals
  4. from django.conf import settings
  5. from django.db import migrations, models
  6. import django.db.models.deletion
  7. import jsonfield.fields
  8. class Migration(migrations.Migration):
  9. dependencies = [
  10. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  11. ('payments', '0003_auto_20151209_0440'),
  12. ]
  13. operations = [
  14. migrations.CreateModel(
  15. name='Subscription',
  16. fields=[
  17. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  18. ('backend_id', models.CharField(choices=[('bitcoin', 'Bitcoin'), ('coinbase', 'Coinbase'), ('manual', 'Manual'), ('paypal', 'PayPal'), ('stripe', 'Stripe')], max_length=16)),
  19. ('created', models.DateTimeField(auto_now_add=True)),
  20. ('period', models.CharField(choices=[('3m', 'Every 3 months'), ('6m', 'Every 6 months'), ('12m', 'Every year')], max_length=16)),
  21. ('last_confirmed_payment', models.DateTimeField(blank=True, null=True)),
  22. ('status', models.CharField(choices=[('new', 'Waiting for payment'), ('active', 'Active'), ('cancelled', 'Cancelled')], default='new', max_length=16)),
  23. ('backend_extid', models.CharField(blank=True, max_length=64, null=True)),
  24. ('backend_data', jsonfield.fields.JSONField(blank=True, default=dict)),
  25. ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  26. ],
  27. ),
  28. migrations.RemoveField(
  29. model_name='recurringpaymentsource',
  30. name='user',
  31. ),
  32. migrations.RemoveField(
  33. model_name='payment',
  34. name='recurring_source',
  35. ),
  36. migrations.DeleteModel(
  37. name='RecurringPaymentSource',
  38. ),
  39. migrations.AddField(
  40. model_name='payment',
  41. name='subscription',
  42. field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='payments.Subscription'),
  43. ),
  44. ]