Go back to cookies :(
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
# Generated by Django 5.1 on 2024-08-15 03:42
|
||||
# Generated by Django 5.1 on 2024-08-16 02:38
|
||||
|
||||
import django.contrib.auth.models
|
||||
import django.contrib.auth.validators
|
||||
import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
from django.db.migrations.operations.base import Operation
|
||||
|
||||
@ -98,8 +97,6 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
),
|
||||
("date_joined", models.DateTimeField(default=django.utils.timezone.now, verbose_name="date joined")),
|
||||
("subscribe_to_news", models.BooleanField(default=False, help_text="Subscribe to news")),
|
||||
("subscribe_to_new_games", models.BooleanField(default=False, help_text="Subscribe to new games")),
|
||||
(
|
||||
"groups",
|
||||
models.ManyToManyField(
|
||||
@ -132,22 +129,6 @@ class Migration(migrations.Migration):
|
||||
("objects", django.contrib.auth.models.UserManager()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="DiscordWebhook",
|
||||
fields=[
|
||||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||||
("url", models.URLField()),
|
||||
("name", models.CharField(max_length=255)),
|
||||
(
|
||||
"user",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="discord_webhooks",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="Channel",
|
||||
fields=[
|
||||
@ -169,28 +150,6 @@ class Migration(migrations.Migration):
|
||||
to="core.game",
|
||||
),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="GameSubscription",
|
||||
fields=[
|
||||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||||
("game", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="core.game")),
|
||||
("user", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
("webhook", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="core.discordwebhook")),
|
||||
],
|
||||
options={
|
||||
"unique_together": {("user", "game")},
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="user",
|
||||
name="subscribed_games",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
related_name="subscribed_users",
|
||||
through="core.GameSubscription",
|
||||
to="core.game",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="game",
|
||||
name="org",
|
||||
@ -201,28 +160,6 @@ class Migration(migrations.Migration):
|
||||
to="core.owner",
|
||||
),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="OwnerSubscription",
|
||||
fields=[
|
||||
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||||
("owner", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="core.owner")),
|
||||
("user", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
("webhook", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="core.discordwebhook")),
|
||||
],
|
||||
options={
|
||||
"unique_together": {("user", "owner")},
|
||||
},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="user",
|
||||
name="subscribed_owners",
|
||||
field=models.ManyToManyField(
|
||||
blank=True,
|
||||
related_name="subscribed_users",
|
||||
through="core.OwnerSubscription",
|
||||
to="core.owner",
|
||||
),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="RewardCampaign",
|
||||
fields=[
|
||||
@ -319,4 +256,34 @@ class Migration(migrations.Migration):
|
||||
),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="Webhook",
|
||||
fields=[
|
||||
("avatar", models.TextField(null=True)),
|
||||
("channel_id", models.TextField(null=True)),
|
||||
("guild_id", models.TextField(null=True)),
|
||||
("id", models.TextField(primary_key=True, serialize=False)),
|
||||
("name", models.TextField(null=True)),
|
||||
("type", models.TextField(null=True)),
|
||||
("token", models.TextField()),
|
||||
("url", models.TextField()),
|
||||
("seen_drops", models.ManyToManyField(related_name="seen_drops", to="core.dropcampaign")),
|
||||
(
|
||||
"subscribed_live_games",
|
||||
models.ManyToManyField(related_name="subscribed_live_games", to="core.game"),
|
||||
),
|
||||
(
|
||||
"subscribed_live_owners",
|
||||
models.ManyToManyField(related_name="subscribed_live_owners", to="core.owner"),
|
||||
),
|
||||
("subscribed_new_games", models.ManyToManyField(related_name="subscribed_new_games", to="core.game")),
|
||||
(
|
||||
"subscribed_new_owners",
|
||||
models.ManyToManyField(related_name="subscribed_new_owners", to="core.owner"),
|
||||
),
|
||||
],
|
||||
options={
|
||||
"unique_together": {("id", "token")},
|
||||
},
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user