Initial commit

This commit is contained in:
kddd21a
2026-07-29 10:47:40 +00:00
commit 402c3ec6ed
171 changed files with 10536 additions and 0 deletions
@@ -0,0 +1,51 @@
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("accounts", "0003_dailymissionclaim"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name="PremiumEntitlement",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
(
"source",
models.CharField(
choices=[
("admin", "Admin grant"),
("payment", "One-time payment"),
("promotion", "Promotion"),
],
default="admin",
max_length=20,
),
),
("order_reference", models.CharField(blank=True, max_length=120)),
("granted_at", models.DateTimeField(auto_now_add=True)),
("revoked_at", models.DateTimeField(blank=True, null=True)),
("notes", models.TextField(blank=True)),
(
"user",
models.OneToOneField(
on_delete=django.db.models.deletion.CASCADE,
related_name="premium_entitlement",
to=settings.AUTH_USER_MODEL,
),
),
],
),
]