# Generated by Django 5.1.6 on 2025-04-21 10:18 import django.db.models.deletion import django_tidb.fields from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('labs', '0014_billinguserprofile_billingstripepaymentmethod'), ] operations = [ migrations.CreateModel( name='BillingStripeCountryAccountMapping', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=8)), ('country', models.CharField(max_length=2)), ('stripe_account_id', models.CharField(max_length=255)), ], options={ 'db_table': 'billing_stripe_country_account_mapping', }, ), migrations.CreateModel( name='BillingCreditOrder', fields=[ ('id', django_tidb.fields.BigAutoRandomField(primary_key=True, range=64, serialize=False, shard_bits=5)), ('quantity', models.IntegerField()), ('discount', models.DecimalField(decimal_places=2, default=0, max_digits=4)), ('currency', models.CharField(default='usd', max_length=3)), ('amount_total', models.DecimalField(decimal_places=2, max_digits=10)), ('product_amount', models.DecimalField(decimal_places=2, max_digits=10)), ('tax_amount', models.DecimalField(decimal_places=2, default=0, max_digits=10)), ('third_party_id', models.CharField(max_length=255)), ('third_party_type', models.CharField(choices=[('stripe_payment_intent', 'Stripe Payment Intent')], default='stripe_payment_intent', max_length=32)), ('status', models.CharField(choices=[('created', 'Created'), ('cancelled', 'Cancelled'), ('processing', 'Processing'), ('requires_action', 'Requires Action'), ('succeeded', 'Succeeded'), ('failed', 'Failed')], default='created', max_length=32)), ('status_details', models.JSONField(default=dict)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'billing_credit_orders', }, ), ]