# Generated by Django 6.0.1 on 2026-01-21 17:40 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('rarity', models.CharField(blank=True, max_length=50)), ('image_url', models.URLField(blank=True, max_length=500)), ('scryfall_id', models.CharField(blank=True, max_length=100, null=True)), ('tcgplayer_id', models.CharField(blank=True, max_length=100, null=True)), ('collector_number', models.CharField(blank=True, max_length=50)), ], ), migrations.CreateModel( name='Cart', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('insurance', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='CartItem', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.PositiveIntegerField(default=1)), ], ), migrations.CreateModel( name='Game', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True)), ('slug', models.SlugField(unique=True)), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.CharField(choices=[('pending', 'Pending'), ('paid', 'Paid'), ('shipped', 'Shipped'), ('cancelled', 'Cancelled')], default='pending', max_length=20)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('total_price', models.DecimalField(decimal_places=2, default=0, max_digits=12)), ('stripe_payment_intent', models.CharField(blank=True, max_length=100)), ('shipping_address', models.TextField(blank=True)), ('insurance_purchased', models.BooleanField(default=False)), ('proxy_service', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='OrderItem', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('price_at_purchase', models.DecimalField(decimal_places=2, max_digits=10)), ('quantity', models.PositiveIntegerField(default=1)), ], ), migrations.CreateModel( name='PackListing', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('price', models.DecimalField(decimal_places=2, max_digits=10)), ('image_url', models.URLField(blank=True, max_length=500)), ], ), migrations.CreateModel( name='Seller', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('store_name', models.CharField(max_length=100, unique=True)), ('slug', models.SlugField(unique=True)), ('description', models.TextField(blank=True)), ('contact_email', models.EmailField(blank=True, max_length=254)), ('contact_phone', models.CharField(blank=True, max_length=20)), ('business_address', models.TextField(blank=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Set', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('code', models.CharField(blank=True, max_length=20)), ('release_date', models.DateField(blank=True, null=True)), ], ), migrations.CreateModel( name='VaultItem', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('quantity', models.PositiveIntegerField(default=1)), ('added_at', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='VirtualPack', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.CharField(choices=[('sealed', 'Sealed'), ('opened', 'Opened')], default='sealed', max_length=10)), ('created_at', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Bounty', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('target_price', models.DecimalField(decimal_places=2, max_digits=10)), ('quantity_wanted', models.PositiveIntegerField(default=1)), ('is_active', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('card', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bounties', to='store.card')), ], ), migrations.CreateModel( name='CardListing', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('condition', models.CharField(choices=[('NM', 'Near Mint'), ('LP', 'Lightly Played'), ('MP', 'Moderately Played'), ('HP', 'Heavily Played')], default='NM', max_length=2)), ('price', models.DecimalField(decimal_places=2, max_digits=10)), ('quantity', models.PositiveIntegerField(default=0)), ('market_price', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)), ('is_foil', models.BooleanField(default=False)), ('card', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='listings', to='store.card')), ], ), ]