WIP better import drops
This commit is contained in:
parent
0400fed26a
commit
69fa30748a
10 changed files with 399 additions and 40 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 5.2.7 on 2025-10-13 00:36
|
||||
# Generated by Django 5.2.8 on 2025-12-01 20:17
|
||||
from __future__ import annotations
|
||||
|
||||
import django.db.models.deletion
|
||||
|
|
@ -7,11 +7,7 @@ from django.db import models
|
|||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
"""Initial migration.
|
||||
|
||||
Args:
|
||||
migrations (migrations.Migration): The base class for all migrations.
|
||||
"""
|
||||
"""Initial Django migration for the twitch app schema."""
|
||||
|
||||
initial = True
|
||||
|
||||
|
|
@ -22,7 +18,7 @@ class Migration(migrations.Migration):
|
|||
name="Channel",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
"twitch_id",
|
||||
models.TextField(help_text="The unique Twitch identifier for the channel.", primary_key=True, serialize=False, verbose_name="Channel ID"),
|
||||
),
|
||||
("name", models.TextField(help_text="The lowercase username of the channel.", verbose_name="Username")),
|
||||
|
|
@ -37,7 +33,7 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name="DropBenefit",
|
||||
fields=[
|
||||
("id", models.TextField(help_text="Unique Twitch identifier for the benefit.", primary_key=True, serialize=False)),
|
||||
("twitch_id", models.TextField(help_text="Unique Twitch identifier for the benefit.", primary_key=True, serialize=False)),
|
||||
("name", models.TextField(blank=True, default="N/A", help_text="Name of the drop benefit.")),
|
||||
("image_asset_url", models.URLField(blank=True, default="", help_text="URL to the benefit's image asset.", max_length=500)),
|
||||
(
|
||||
|
|
@ -61,7 +57,8 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name="Game",
|
||||
fields=[
|
||||
("id", models.TextField(primary_key=True, serialize=False, verbose_name="Game ID")),
|
||||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||||
("twitch_id", models.TextField(unique=True, verbose_name="Twitch game ID")),
|
||||
("slug", models.TextField(blank=True, default="", help_text="Short unique identifier for the game.", max_length=200, verbose_name="Slug")),
|
||||
("name", models.TextField(blank=True, default="", verbose_name="Name")),
|
||||
("display_name", models.TextField(blank=True, default="", verbose_name="Display name")),
|
||||
|
|
@ -81,7 +78,7 @@ class Migration(migrations.Migration):
|
|||
name="Organization",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
"twitch_id",
|
||||
models.TextField(
|
||||
help_text="The unique Twitch identifier for the organization.",
|
||||
primary_key=True,
|
||||
|
|
@ -113,7 +110,7 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name="DropCampaign",
|
||||
fields=[
|
||||
("id", models.TextField(help_text="Unique Twitch identifier for the campaign.", primary_key=True, serialize=False)),
|
||||
("twitch_id", models.TextField(help_text="Unique Twitch identifier for the campaign.", primary_key=True, serialize=False)),
|
||||
("name", models.TextField(help_text="Name of the drop campaign.")),
|
||||
("description", models.TextField(blank=True, help_text="Detailed description of the campaign.")),
|
||||
("details_url", models.URLField(blank=True, default="", help_text="URL with campaign details.", max_length=500)),
|
||||
|
|
@ -169,7 +166,7 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name="TimeBasedDrop",
|
||||
fields=[
|
||||
("id", models.TextField(help_text="Unique Twitch identifier for the time-based drop.", primary_key=True, serialize=False)),
|
||||
("twitch_id", models.TextField(help_text="Unique Twitch identifier for the time-based drop.", primary_key=True, serialize=False)),
|
||||
("name", models.TextField(help_text="Name of the time-based drop.")),
|
||||
(
|
||||
"required_minutes_watched",
|
||||
|
|
@ -215,7 +212,7 @@ class Migration(migrations.Migration):
|
|||
migrations.CreateModel(
|
||||
name="TwitchGameData",
|
||||
fields=[
|
||||
("id", models.TextField(primary_key=True, serialize=False, verbose_name="Twitch Game ID")),
|
||||
("twitch_id", models.TextField(primary_key=True, serialize=False, verbose_name="Twitch Game ID")),
|
||||
("name", models.TextField(blank=True, default="", verbose_name="Name")),
|
||||
(
|
||||
"box_art_url",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue