class Migration(migrations.Migration): dependencies = [ ('sites', '0002_alter_domain_unique'), ('quantumapi', '0045_auto_20210226_1513'), ] operations = [ migrations.CreateModel( name='QuantumSite', fields=[ ('site_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.site')), ], bases=('sites.site', models.Model), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='PureSite', fields=[ ('site_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.Site')), ('title', models.CharField(max_length=200)), ('favicon', models.FileField(upload_to='favicons/')), ], bases=('sites.site', ), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='Site', fields=[ ('site_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.site')), ('settings', models.JSONField(blank=True, default={})), ('port', models.PositiveIntegerField(null=True)), ('protocol', models.CharField(default='http', max_length=5)), ], bases=('sites.site', ), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('myprofile', '0002_auto_20190416_0656'), ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='Config', fields=[ ('site_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.Site')), ('site', models.CharField(blank=True, max_length=255, null=True)), ('keywords', models.CharField(blank=True, max_length=255, null=True)), ('google_maps', models.TextField(blank=True, null=True)), ('logo', models.ImageField(blank=True, null=True, upload_to='uploads/config')), ('icon', models.ImageField(blank=True, null=True, upload_to='uploads/config')), ('about', models.TextField(blank=True, null=True)), ('metatext', models.TextField(blank=True, null=True)), ('myprofile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='myprofile.Myprofile')), ], bases=('sites.site', ), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='ProxySite', fields=[], options={ 'verbose_name': 'site', 'verbose_name_plural': 'sites', 'proxy': True, 'indexes': [], 'constraints': [], }, bases=('sites.site', ), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), migrations.CreateModel( name='SiteProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('extra_head', models.TextField(blank=True, default='')), ('site', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to='sites.Site')), ], options={ 'verbose_name': 'profile', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [("sites", "0002_alter_domain_unique")] operations = [ migrations.CreateModel( name="EdcSite", fields=[], options={ "proxy": True, "indexes": [], "constraints": [] }, bases=("sites.site", ), managers=[("objects", django.contrib.sites.models.SiteManager())], ), migrations.CreateModel( name="SiteProfile", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("title", models.CharField(max_length=50, null=True)), ("description", models.TextField(null=True)), ( "site", models.OneToOneField( on_delete=django.db.models.deletion.PROTECT, to="sites.Site"), ), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='EdcSite', fields=[], options={ 'proxy': True, 'indexes': [], 'constraints': [], }, bases=('sites.site', ), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), migrations.CreateModel( name='SiteProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250, null=True)), ('description', models.TextField(null=True)), ('site', models.OneToOneField( on_delete=django.db.models.deletion.PROTECT, to='sites.Site')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('sites', '0003_set_site_domain_and_name'), ('content', '0018_delete_generalinformation'), ] operations = [ migrations.CreateModel( name='GeneralInformation', fields=[ ('site_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.Site')), ('public_email', models.EmailField(blank=True, help_text='Public facing contact email.', max_length=200, null=True, verbose_name='Email')), ('about_description', models.TextField(blank=True, help_text='Max length 1000 characters', max_length=1000, null=True, verbose_name='About Description')), ], bases=('sites.site', ), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('sites', '0002_alter_domain_unique'), ('content', '0001_initial'), ] operations = [ migrations.CreateModel( name='UniversitySite', fields=[ ('site_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.Site')), ], options={ 'verbose_name': 'University Site', }, bases=('sites.site', parler.models.TranslatableModelMixin, models.Model), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), migrations.CreateModel( name='UniversitySiteTranslation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('language_code', models.CharField(db_index=True, max_length=15, verbose_name='Language')), ('description', models.TextField()), ('master', parler.fields.TranslationsForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='translations', to='content.UniversitySite')), ], options={ 'verbose_name': 'University Site Translation', 'db_table': 'content_universitysite_translation', 'db_tablespace': '', 'managed': True, 'default_permissions': (), 'unique_together': {('language_code', 'master')}, }, bases=(parler.models.TranslatedFieldsModelMixin, models.Model), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='SiteCustomization', fields=[ ('site', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='sites.site', verbose_name='site')), ('is_open_for_signup', models.BooleanField(default=True, verbose_name='is open for signup')), ('tagline', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, verbose_name='tagline')), ('tagline_fr', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_en', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_de', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_pt', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_es', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_ja', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_ar', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_ar_dz', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_zh_hans', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_br', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('description', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, verbose_name='description')), ('description_fr', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_en', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_de', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_pt', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_es', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_ja', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_ar', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_ar_dz', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_zh_hans', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_br', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ], options={ 'verbose_name': 'site customization', 'verbose_name_plural': 'site customizations', 'ordering': ['site'], }, ), migrations.CreateModel( name='HistoricalSiteCustomization', fields=[ ('is_open_for_signup', models.BooleanField(default=True, verbose_name='is open for signup')), ('tagline', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, verbose_name='tagline')), ('tagline_fr', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_en', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_de', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_pt', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_es', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_ja', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_ar', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_ar_dz', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_zh_hans', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('tagline_br', models.CharField(blank=True, default='A few words to describe this very website.', help_text='A few words to describe this very website.', max_length=255, null=True, verbose_name='tagline')), ('description', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, verbose_name='description')), ('description_fr', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_en', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_de', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_pt', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_es', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_ja', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_ar', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_ar_dz', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_zh_hans', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('description_br', models.TextField(blank=True, default='A short text to describe this very website.', help_text='A short text to describe this very website.', max_length=2048, null=True, verbose_name='description')), ('history_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ('site', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='+', to='sites.site', verbose_name='site')), ], options={ 'verbose_name': 'historical site customization', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), migrations.CreateModel( name='HistoricalSite', fields=[ ('id', models.IntegerField(auto_created=True, blank=True, db_index=True, verbose_name='ID')), ('domain', models.CharField(db_index=True, max_length=100, validators=[django.contrib.sites.models._simple_domain_name_validator], verbose_name='domain name')), ('name', models.CharField(max_length=50, verbose_name='display name')), ('history_id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('history_date', models.DateTimeField()), ('history_change_reason', models.CharField(max_length=100, null=True)), ('history_type', models.CharField(choices=[('+', 'Created'), ('~', 'Changed'), ('-', 'Deleted')], max_length=1)), ('history_user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'historical site', 'ordering': ('-history_date', '-history_id'), 'get_latest_by': 'history_date', }, bases=(simple_history.models.HistoricalChanges, models.Model), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ('pulse', '0005_auto_20180422_1602'), ] operations = [ migrations.CreateModel( name='MenuItem', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('icon', models.SlugField(blank=True, choices=[('fa fa-home', 'Home'), ('fa fa-pencil-square-o', 'Posts'), ('fa fa-book', 'Notes'), ('fa fa-tags', 'Topics'), ('fa fa-code-fork', 'Channels'), ('fa fa-file-image-o', 'Media'), ('fa fa-cogs', 'Gears')], max_length=510)), ('title', models.CharField(default='Untitled', max_length=510)), ('description', models.CharField(blank=True, help_text='Optional subtitle', max_length=510)), ('slug', models.SlugField(blank=True, max_length=510)), ('url', models.CharField(blank=True, max_length=510)), ('weight', models.IntegerField(default=0)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('page', models.ForeignKey(blank=True, default=replica.pulse.models.DefaultEntry, null=True, on_delete=django.db.models.deletion.SET_DEFAULT, to='pulse.Entry')), ], options={ 'verbose_name': 'Menu Item', 'verbose_name_plural': 'Menu Items', 'db_table': 'r_MenuItem', 'ordering': ('weight',), }, ), migrations.CreateModel( name='MenuPosition', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('title', models.CharField(default='Untitled', max_length=510)), ('slug', models.SlugField(max_length=510)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ], options={ 'verbose_name': 'Menu', 'verbose_name_plural': 'Menus', 'db_table': 'r_MenuPosition', 'ordering': ('-title',), }, ), migrations.CreateModel( name='Plugin', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('name', models.CharField(blank=True, max_length=510)), ('slug', models.SlugField(max_length=510)), ('author', models.CharField(blank=True, max_length=510)), ('is_enabled', models.BooleanField(choices=[(True, 'Enabled'), (False, 'Disabled')], default=True, help_text='Check to enable plugin')), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ], options={ 'verbose_name': 'Plugin', 'verbose_name_plural': 'Plugins', 'db_table': 'r_Plugin', 'ordering': ('slug', 'date_updated'), }, ), migrations.CreateModel( name='SiteSettings', fields=[ ('site_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.Site')), ('is_enabled', models.BooleanField(choices=[(True, 'Enabled'), (False, 'Disabled')], default=True, help_text='Is site enabled?')), ('password', models.CharField(blank=True, max_length=128)), ('secret_token', models.CharField(blank=True, max_length=12)), ('view_settings', models.TextField(default='{}')), ('author', models.CharField(blank=True, max_length=510)), ('description', models.TextField(blank=True, help_text='Site Description', null=True)), ('summary', models.TextField(blank=True, help_text='Summary')), ('summary_html', models.TextField(blank=True, editable=False)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('featured', models.ForeignKey(blank=True, help_text='Featured Image', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='featured', to='pulse.Media')), ('logo', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='logo', to='pulse.Media')), ], options={ 'verbose_name': 'Site Settings', 'verbose_name_plural': 'Site Settings', 'db_table': 'r_SiteSettings', }, bases=('sites.site',), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), migrations.AddField( model_name='menuitem', name='position', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cms.MenuPosition'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("sites", "0002_alter_domain_unique"), ("raiden", "0001_initial"), ("blockchain", "0001_initial"), ("ethereum_money", "0001_initial"), migrations.swappable_dependency(settings.ETHEREUM_ACCOUNT_MODEL), ] operations = [ migrations.CreateModel( name="Payment", fields=[ ( "amount", hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32 ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ("id", models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ( "currency", models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to="ethereum_money.EthereumToken", ), ), ], options={"abstract": False,}, ), migrations.CreateModel( name="PaymentOrder", fields=[ ( "amount", hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32 ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ("id", models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ( "chain", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="blockchain.Chain" ), ), ( "currency", models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to="ethereum_money.EthereumToken", ), ), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL ), ), ], options={"abstract": False,}, ), migrations.CreateModel( name="PaymentRoute", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ( "order", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="routes", to="core.PaymentOrder", ), ), ], options={"abstract": False,}, ), migrations.CreateModel( name="Store", fields=[ ("id", models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ("name", models.CharField(max_length=300)), ("url", models.URLField()), ("accepted_currencies", models.ManyToManyField(to="ethereum_money.EthereumToken")), ( "owner", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL ), ), ], ), migrations.CreateModel( name="Transfer", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ( "amount", hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32 ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ("memo", models.TextField(blank=True, null=True)), ("identifier", models.CharField(blank=True, max_length=300, null=True)), ( "currency", models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to="ethereum_money.EthereumToken", ), ), ( "sender", models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name="transfers_sent", to=settings.AUTH_USER_MODEL, ), ), ], options={"abstract": False,}, ), migrations.CreateModel( name="UserBalanceEntry", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ( "amount", hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32 ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ( "currency", models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to="ethereum_money.EthereumToken", ), ), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="balance_entries", to=settings.AUTH_USER_MODEL, ), ), ], options={"abstract": False,}, ), migrations.CreateModel( name="UserReserve", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ( "amount", hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32 ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ( "currency", models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to="ethereum_money.EthereumToken", ), ), ( "user", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="reserves", to=settings.AUTH_USER_MODEL, ), ), ], options={"abstract": False,}, ), migrations.CreateModel( name="HubSite", fields=[], options={"proxy": True, "indexes": [], "constraints": [],}, bases=("sites.site",), managers=[("objects", django.contrib.sites.models.SiteManager()),], ), migrations.CreateModel( name="ExternalTransfer", fields=[ ( "transfer_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.Transfer", ), ), ( "recipient_address", hub20.apps.blockchain.fields.EthereumAddressField(db_index=True), ), ], options={"abstract": False,}, bases=("core.transfer",), ), migrations.CreateModel( name="InternalPayment", fields=[ ( "payment_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.Payment", ), ), ("memo", models.TextField(blank=True, null=True)), ], options={"abstract": False,}, bases=("core.payment",), ), migrations.CreateModel( name="InternalPaymentRoute", fields=[ ( "paymentroute_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.PaymentRoute", ), ), ], options={"abstract": False,}, bases=("core.paymentroute",), ), migrations.CreateModel( name="StoreRSAKeyPair", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ("public_key_pem", models.TextField()), ("private_key_pem", models.TextField()), ( "store", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name="rsa", to="core.Store", ), ), ], ), migrations.AddField( model_name="payment", name="route", field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to="core.PaymentRoute" ), ), migrations.CreateModel( name="BlockchainTransaction", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ( "transaction_hash", hub20.apps.blockchain.fields.HexField( db_index=True, max_length=64, unique=True ), ), ( "transfer", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name="chain_transaction", to="core.Transfer", ), ), ], options={"abstract": False,}, ), migrations.CreateModel( name="UserTransferReserve", fields=[ ( "userreserve_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.UserReserve", ), ), ( "transfer", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name="reserve", to="core.Transfer", ), ), ], options={"abstract": False,}, bases=("core.userreserve",), ), migrations.CreateModel( name="TransferEvent", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ( "status", model_utils.fields.StatusField( choices=[ ("scheduled", "scheduled"), ("failed", "failed"), ("canceled", "canceled"), ("executed", "executed"), ("confirmed", "confirmed"), ], default="scheduled", max_length=100, no_check_for_status=True, verbose_name="status", ), ), ( "status_changed", model_utils.fields.MonitorField( default=django.utils.timezone.now, monitor="status", verbose_name="status changed", ), ), ( "transfer", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="events", to="core.Transfer", ), ), ], options={"get_latest_by": "created", "unique_together": {("transfer", "status")},}, ), migrations.CreateModel( name="RaidenTransaction", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID" ), ), ( "created", model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name="created" ), ), ( "modified", model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name="modified" ), ), ("identifier", models.PositiveIntegerField()), ( "channel", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="raiden.Channel" ), ), ( "transfer", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name="raiden_transaction", to="core.Transfer", ), ), ], options={"unique_together": {("channel", "identifier")},}, ), migrations.CreateModel( name="RaidenPayment", fields=[ ( "payment_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.Payment", ), ), ( "payment", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to="raiden.Payment" ), ), ], options={"abstract": False,}, bases=("core.payment",), ), migrations.CreateModel( name="PaymentCredit", fields=[ ( "userbalanceentry_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.UserBalanceEntry", ), ), ( "payment", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name="credit", to="core.Payment", ), ), ], options={"abstract": False,}, bases=("core.userbalanceentry",), ), migrations.CreateModel( name="InternalTransfer", fields=[ ( "transfer_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.Transfer", ), ), ( "receiver", models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, related_name="transfers_received", to=settings.AUTH_USER_MODEL, ), ), ], options={"abstract": False,}, bases=("core.transfer",), ), migrations.CreateModel( name="Checkout", fields=[ ( "paymentorder_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.PaymentOrder", ), ), ("external_identifier", models.TextField()), ("requester_ip", models.GenericIPAddressField(null=True)), ( "store", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="core.Store" ), ), ], options={"abstract": False,}, bases=("core.paymentorder",), ), migrations.CreateModel( name="BlockchainPaymentRoute", fields=[ ( "paymentroute_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.PaymentRoute", ), ), ( "payment_window", django.contrib.postgres.fields.ranges.IntegerRangeField( default=hub20.apps.core.models.payments.calculate_blockchain_payment_window ), ), ( "account", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="payment_routes", to=settings.ETHEREUM_ACCOUNT_MODEL, ), ), ], options={"abstract": False,}, bases=("core.paymentroute",), ), migrations.CreateModel( name="BlockchainPayment", fields=[ ( "payment_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.Payment", ), ), ( "transaction", models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to="blockchain.Transaction" ), ), ], options={"abstract": False,}, bases=("core.payment",), ), migrations.CreateModel( name="RaidenPaymentRoute", fields=[ ( "paymentroute_ptr", models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to="core.PaymentRoute", ), ), ( "payment_window", models.DurationField( default=hub20.apps.core.models.payments.calculate_raiden_payment_window ), ), ( "identifier", models.BigIntegerField( default=hub20.apps.core.models.payments.generate_payment_order_id, unique=True, ), ), ( "raiden", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="payment_routes", to="raiden.Raiden", ), ), ], options={"unique_together": {("raiden", "identifier")},}, bases=("core.paymentroute",), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('sites', '0002_alter_domain_unique'), ('django_simple_file_handler', '0006_auto_20190429_1949'), ] operations = [ migrations.CreateModel( name='BulkEmail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True, verbose_name='last updated')), ('headline', models.CharField(max_length=254)), ('body_text', ckeditor.fields.RichTextField()), ('publication_date', models.DateField(default=django.utils.timezone.localdate)), ('deletion_date', models.DateField(blank=True, default=django_simple_bulk_emailer.models. get_deletion_date, null=True)), ('published', models.BooleanField(default=False)), ('is_updated', models.BooleanField(default=False, verbose_name='has been updated')), ('sendable', models.BooleanField(default=False)), ('sending', models.BooleanField(default=False)), ('sent', models.BooleanField(default=False)), ('send_history', models.TextField(blank=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='EmailTracker', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True, verbose_name='last updated')), ('subject', models.CharField(max_length=254)), ('subscription_name', models.CharField(max_length=254)), ('send_complete', models.DateTimeField(default=django.utils.timezone.now)), ('number_sent', models.PositiveIntegerField(default=0)), ('json_data', models.TextField(blank=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='SiteProfile', fields=[ ('site_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='sites.Site')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True, verbose_name='last updated')), ('protocol', models.CharField(default='https://', max_length=254)), ], options={ 'abstract': False, }, bases=('sites.site', models.Model), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), migrations.CreateModel( name='Subscription', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True, verbose_name='last updated')), ('list_name', models.CharField(max_length=254)), ('descriptive_text', ckeditor.fields.RichTextField( blank=True, verbose_name='descriptive text (if using page views)')), ('list_slug', models.CharField(blank=True, max_length=254)), ('publicly_visible', models.BooleanField(default=False)), ('use_pages', models.BooleanField(default=True, verbose_name='use page view')), ('email_directory', models.CharField( default='django_simple_bulk_emailer/subscription/emails', max_length=254, verbose_name='email template directory')), ('page_directory', models.CharField( default='django_simple_bulk_emailer/subscription/pages', max_length=254, verbose_name='page template directory')), ('associated_model', models.CharField( default='django_simple_bulk_emailer.models.BulkEmail', max_length=254)), ('mc_sync', models.BooleanField(default=False, verbose_name='MailChimp sync')), ('mc_user', models.CharField(default='username', max_length=254, verbose_name='MailChimp username')), ('mc_api', models.CharField(default='API_key', max_length=254, verbose_name='MailChimp API key')), ('mc_list', models.CharField(default='list_ID', max_length=254, verbose_name='MailChimp audience ID')), ('sort_order', models.PositiveIntegerField(default=0, verbose_name='order')), ], options={ 'ordering': ['sort_order'], }, ), migrations.CreateModel( name='Subscriber', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True, verbose_name='last updated')), ('subscriber_key', models.CharField(max_length=254)), ('first_name', models.CharField(default='Anonymous', max_length=254)), ('last_name', models.CharField(default='Subscriber', max_length=254)), ('subscriber_email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('mc_email', models.EmailField(blank=True, max_length=254, verbose_name='MailChimp email address')), ('mc_synced', models.BooleanField(default=False)), ('subscriptions', models.ManyToManyField( blank=True, to='django_simple_bulk_emailer.Subscription')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='MonthlyStat', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True, verbose_name='last updated')), ('year_int', models.PositiveIntegerField()), ('month_int', models.PositiveIntegerField()), ('stat_data', models.TextField(blank=True)), ('current_trackers', models.ManyToManyField( related_name='current', to='django_simple_bulk_emailer.EmailTracker')), ('older_trackers', models.ManyToManyField( related_name='older', to='django_simple_bulk_emailer.EmailTracker')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='EmailImage', fields=[ ('processedimage_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='django_simple_file_handler.ProcessedImage')), ('description', models.CharField(default='Image', max_length=254, verbose_name='screen reader description')), ('caption', models.TextField(blank=True, verbose_name='image caption (optional)')), ('image_width', models.PositiveIntegerField()), ('bulk_email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emailimage', to='django_simple_bulk_emailer.BulkEmail')), ], options={ 'verbose_name': 'image (optional)', 'verbose_name_plural': 'image (optional)', }, bases=('django_simple_file_handler.processedimage', ), ), migrations.CreateModel( name='EmailDocument', fields=[ ('temporarydocument_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='django_simple_file_handler.TemporaryDocument')), ('sort_order', models.PositiveIntegerField(default=0, verbose_name='order')), ('bulk_email', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='django_simple_bulk_emailer.BulkEmail')), ], options={ 'verbose_name': 'document', 'ordering': ['sort_order'], }, bases=('django_simple_file_handler.temporarydocument', ), ), migrations.AddField( model_name='bulkemail', name='subscription_list', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='django_simple_bulk_emailer.Subscription'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('blockchain', '0001_initial'), ('ethereum_money', '0001_initial'), ('raiden', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('sites', '0002_alter_domain_unique'), ] operations = [ migrations.CreateModel( name='PaymentOrder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32)), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('currency', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='ethereum_money.EthereumToken')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Store', fields=[ ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('name', models.CharField(max_length=300)), ('url', models.URLField()), ('accepted_currencies', models.ManyToManyField(to='ethereum_money.EthereumToken')), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Transfer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32)), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('memo', models.TextField(blank=True, null=True)), ('identifier', models.CharField(blank=True, max_length=300, null=True)), ('currency', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='ethereum_money.EthereumToken')), ('sender', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='transfers_sent', to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='UserReserve', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32)), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('currency', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='ethereum_money.EthereumToken')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='reserves', to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='HubSite', fields=[], options={ 'proxy': True, 'indexes': [], 'constraints': [], }, bases=('sites.site', ), managers=[ ('objects', django.contrib.sites.models.SiteManager()), ], ), migrations.CreateModel( name='ExternalTransfer', fields=[ ('transfer_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Transfer')), ('recipient_address', hub20.apps.blockchain.fields.EthereumAddressField( db_index=True)), ], options={ 'abstract': False, }, bases=('core.transfer', ), ), migrations.CreateModel( name='Wallet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('account', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='ethereum_money.EthereumAccount')), ], ), migrations.CreateModel( name='UserBalanceEntry', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32)), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('currency', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='ethereum_money.EthereumToken')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='balance_entries', to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='StoreRSAKeyPair', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('public_key_pem', models.TextField()), ('private_key_pem', models.TextField()), ('store', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='rsa', to='core.Store')), ], ), migrations.CreateModel( name='PaymentOrderMethod', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('expiration_time', models.DateTimeField()), ('identifier', models.BigIntegerField(default=hub20.apps.core.models. payments.generate_payment_order_id, unique=True)), ('order', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='payment_method', to='core.PaymentOrder')), ('raiden', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to='raiden.Raiden')), ('wallet', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='core.Wallet')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Payment', fields=[ ('amount', hub20.apps.ethereum_money.models.EthereumTokenAmountField( decimal_places=18, max_digits=32)), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('currency', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='ethereum_money.EthereumToken')), ('order', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='core.PaymentOrder')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='Checkout', fields=[ ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), ('external_identifier', models.TextField()), ('requester_ip', models.GenericIPAddressField(null=True)), ('payment_order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.PaymentOrder')), ('store', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.Store')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='BlockchainTransaction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('transaction_hash', hub20.apps.blockchain.fields.HexField(db_index=True, max_length=64, unique=True)), ('transfer', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='chain_transaction', to='core.Transfer')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='UserTransferReserve', fields=[ ('userreserve_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.UserReserve')), ('transfer', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='reserve', to='core.Transfer')), ], options={ 'abstract': False, }, bases=('core.userreserve', ), ), migrations.CreateModel( name='TransferEvent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('status', model_utils.fields.StatusField(choices=[ ('scheduled', 'scheduled'), ('failed', 'failed'), ('canceled', 'canceled'), ('executed', 'executed'), ('confirmed', 'confirmed') ], default='scheduled', max_length=100, no_check_for_status=True, verbose_name='status')), ('status_changed', model_utils.fields.MonitorField( default=django.utils.timezone.now, monitor='status', verbose_name='status changed')), ('transfer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='core.Transfer')), ], options={ 'get_latest_by': 'created', 'unique_together': {('transfer', 'status')}, }, ), migrations.CreateModel( name='RaidenTransaction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('identifier', models.PositiveIntegerField()), ('channel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='raiden.Channel')), ('transfer', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='raiden_transaction', to='core.Transfer')), ], options={ 'unique_together': {('channel', 'identifier')}, }, ), migrations.CreateModel( name='RaidenPayment', fields=[ ('payment_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Payment')), ('payment', models.OneToOneField( on_delete=django.db.models.deletion.PROTECT, to='raiden.Payment')), ], options={ 'abstract': False, }, bases=('core.payment', ), ), migrations.CreateModel( name='PaymentOrderEvent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', model_utils.fields.AutoCreatedField( default=django.utils.timezone.now, editable=False, verbose_name='created')), ('modified', model_utils.fields.AutoLastModifiedField( default=django.utils.timezone.now, editable=False, verbose_name='modified')), ('status', model_utils.fields.StatusField(choices=[ ('requested', 'requested'), ('partial', 'partial'), ('received', 'received'), ('confirmed', 'confirmed'), ('expired', 'expired'), ('canceled', 'canceled'), ('voided', 'voided') ], default='requested', max_length=100, no_check_for_status=True, verbose_name='status')), ('status_changed', model_utils.fields.MonitorField( default=django.utils.timezone.now, monitor='status', verbose_name='status changed')), ('order', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='events', to='core.PaymentOrder')), ], options={ 'get_latest_by': 'created', 'unique_together': {('order', 'status')}, }, ), migrations.CreateModel( name='InternalTransfer', fields=[ ('transfer_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Transfer')), ('receiver', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='transfers_received', to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, bases=('core.transfer', ), ), migrations.CreateModel( name='InternalPayment', fields=[ ('payment_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Payment')), ('memo', models.TextField(blank=True, null=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, bases=('core.payment', ), ), migrations.CreateModel( name='BlockchainPayment', fields=[ ('payment_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Payment')), ('transaction', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='blockchain.Transaction')), ], options={ 'abstract': False, }, bases=('core.payment', ), ), ]