Files
offline-db/billing/migrations/0001_initial.py
google-labs-jules[bot] a957bbfe52 fix(core): auto-repair & stability improvements (#48)
- Generated missing migrations for users, billing, content, and core apps.
- Updated content/tests.py to match new Season/Episode relationship.
- Created users/tests/test_models.py and removed conflicting users/tests.py.
- Fixed Wallet.__str__ formatting.
- Current Focus Mode: A
- Changes Made: Generated migrations, refactored tests, fixed model method.
- Impact on System: Restored database consistency and test suite stability.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-01-19 10:36:54 +00:00

62 lines
2.0 KiB
Python

# Generated by Django 6.0.1 on 2026-01-19 10:31
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="ShopierPayment",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("amount", models.DecimalField(decimal_places=2, max_digits=10)),
("transaction_id", models.CharField(max_length=100, unique=True)),
(
"status",
models.CharField(
choices=[
("pending", "Pending"),
("success", "Success"),
("failed", "Failed"),
],
default="pending",
max_length=10,
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("processed_at", models.DateTimeField(blank=True, null=True)),
("is_distributed", models.BooleanField(default=False)),
],
),
migrations.CreateModel(
name="SubscriptionPlan",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=100)),
("price", models.DecimalField(decimal_places=2, max_digits=6)),
("duration_days", models.PositiveIntegerField(default=30)),
],
),
]