# Generated by Django 5.1.4 on 2024-12-31 15:26 import django.db.models.deletion import uuid from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('resources', '0001_initial'), ] operations = [ migrations.CreateModel( name='EmailSignup', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=254, unique=True)), ('date_added', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='EmailVerification', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=254, unique=True)), ('verification_token', models.UUIDField(default=uuid.uuid4, editable=False)), ('created_at', models.DateTimeField(auto_now_add=True)), ('is_verified', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('stripe_product_id', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='ShoppingCart', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ], ), migrations.CreateModel( name='Subscription', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_active', models.BooleanField(default=False)), ('start_date', models.DateTimeField(blank=True, null=True)), ('end_date', models.DateTimeField(blank=True, null=True)), ], ), migrations.CreateModel( name='SubscriptionPlan', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ('description', models.TextField()), ('allowed_downloads', models.PositiveIntegerField()), ], ), migrations.CreateModel( name='CartItem', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('added_at', models.DateTimeField(auto_now_add=True)), ('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='resources.resource')), ], ), migrations.CreateModel( name='Price', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('price', models.IntegerField(default=0)), ('stripe_price_id', models.CharField(max_length=100)), ('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='price_obj', to='resources.resource')), ], ), ]