Update release notes and deploy workspace
This commit is contained in:
@@ -1,833 +0,0 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Backend.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260617060000_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.11")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.AwardResult", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("CandidateId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("CategoryName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int>("SeasonId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CandidateId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("Results");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateId = 8,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateId = 9,
|
||||
CategoryName = "Bestes Live Event",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CandidateId = 10,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CandidateId = 11,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
CandidateId = 12,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
CandidateId = 13,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Candidate", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("CategoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ChannelSlug")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("DisplayName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("character varying(40)");
|
||||
|
||||
b.Property<int>("SeasonId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("Candidates");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@kurainu",
|
||||
DisplayName = "Kurainu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@shiroch",
|
||||
DisplayName = "Shiro Ch.",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@kurainu",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@aoisakura",
|
||||
DisplayName = "Aoi Sakura Showcase",
|
||||
Platform = "YouTube",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
CategoryId = 3,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
CategoryId = 4,
|
||||
ChannelSlug = "@moonrelay",
|
||||
DisplayName = "Moonrelay",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
CategoryId = 5,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
CategoryId = 6,
|
||||
ChannelSlug = "@kurainu",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
CategoryId = 7,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 11,
|
||||
CategoryId = 8,
|
||||
ChannelSlug = "@aoisakura",
|
||||
DisplayName = "Aoi Sakura",
|
||||
Platform = "YouTube",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 12,
|
||||
CategoryId = 9,
|
||||
ChannelSlug = "@starbyte",
|
||||
DisplayName = "Starbyte",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 13,
|
||||
CategoryId = 10,
|
||||
ChannelSlug = "@tenshivox",
|
||||
DisplayName = "Tenshi Vox",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Description")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("GroupName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(80)
|
||||
.HasColumnType("character varying(80)");
|
||||
|
||||
b.Property<int>("MaxNomineesPerUser")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int>("SeasonId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Slug")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("SortOrder")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("SeasonId", "Slug")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Categories");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Description = "Die groesste Auszeichnung des Jahres.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Description = "Events, Konzerte und 3D-Shows.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 1,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
Description = "Der lustigste oder emotionalste Clip des Jahres.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
Description = "Die aktivste und freundlichste Community.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Beste Community",
|
||||
SeasonId = 1,
|
||||
Slug = "beste-community",
|
||||
SortOrder = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 2,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
Description = "Archivkategorie 2023.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 4,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Nomination", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("CandidateId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("CandidateText")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int>("CategoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTimeOffset>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int>("SeasonId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("SubmittedByTwitchId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CandidateId");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("Nominations");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateText = "Hoshimi Miyu",
|
||||
CategoryId = 1,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 13, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
SubmittedByTwitchId = "twitch_hoshi"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateText = "Kurainu 3D Live",
|
||||
CategoryId = 2,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 14, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
SubmittedByTwitchId = "twitch_kurainu"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Season", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("CurrentPhase")
|
||||
.IsRequired()
|
||||
.HasMaxLength(60)
|
||||
.HasColumnType("character varying(60)");
|
||||
|
||||
b.Property<bool>("IsCommunityOnly")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsCurrent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<DateOnly>("NominationEndsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly>("NominationStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly>("ReviewEndsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly>("ReviewStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly>("ShowDate")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly>("VotingEndsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly>("VotingStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("Year")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Seasons");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CurrentPhase = "Community Voting",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = true,
|
||||
Name = "VTuber Star Awards 2026",
|
||||
NominationEndsAt = new DateOnly(2026, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2026, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2026, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2026, 7, 1),
|
||||
ShowDate = new DateOnly(2026, 7, 20),
|
||||
VotingEndsAt = new DateOnly(2026, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2026, 6, 1),
|
||||
Year = 2026
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2025",
|
||||
NominationEndsAt = new DateOnly(2025, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2025, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2025, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2025, 7, 1),
|
||||
ShowDate = new DateOnly(2025, 7, 20),
|
||||
VotingEndsAt = new DateOnly(2025, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2025, 6, 1),
|
||||
Year = 2025
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2024",
|
||||
NominationEndsAt = new DateOnly(2024, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2024, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2024, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2024, 7, 1),
|
||||
ShowDate = new DateOnly(2024, 7, 20),
|
||||
VotingEndsAt = new DateOnly(2024, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2024, 6, 1),
|
||||
Year = 2024
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2023",
|
||||
NominationEndsAt = new DateOnly(2023, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2023, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2023, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2023, 7, 1),
|
||||
ShowDate = new DateOnly(2023, 7, 20),
|
||||
VotingEndsAt = new DateOnly(2023, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2023, 6, 1),
|
||||
Year = 2023
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteBallot", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("SeasonId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("Status")
|
||||
.IsRequired()
|
||||
.HasMaxLength(30)
|
||||
.HasColumnType("character varying(30)");
|
||||
|
||||
b.Property<DateTimeOffset>("SubmittedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("SubmittedByTwitchId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("VoteBallots");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_1"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 5, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_2"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteEntry", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("BallotId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("CandidateId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int>("CategoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BallotId");
|
||||
|
||||
b.HasIndex("CandidateId");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.ToTable("VoteEntries");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
BallotId = 1,
|
||||
CandidateId = 1,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
BallotId = 1,
|
||||
CandidateId = 4,
|
||||
CategoryId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
BallotId = 2,
|
||||
CandidateId = 2,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
BallotId = 2,
|
||||
CandidateId = 6,
|
||||
CategoryId = 3
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.AwardResult", b =>
|
||||
{
|
||||
b.HasOne("Backend.Domain.Candidate", "Candidate")
|
||||
.WithMany()
|
||||
.HasForeignKey("CandidateId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.Season", "Season")
|
||||
.WithMany("Results")
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Candidate");
|
||||
|
||||
b.Navigation("Season");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Candidate", b =>
|
||||
{
|
||||
b.HasOne("Backend.Domain.Category", "Category")
|
||||
.WithMany("Candidates")
|
||||
.HasForeignKey("CategoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.Season", "Season")
|
||||
.WithMany()
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("Season");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
{
|
||||
b.HasOne("Backend.Domain.Season", "Season")
|
||||
.WithMany("Categories")
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Season");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Nomination", b =>
|
||||
{
|
||||
b.HasOne("Backend.Domain.Candidate", "Candidate")
|
||||
.WithMany()
|
||||
.HasForeignKey("CandidateId");
|
||||
|
||||
b.HasOne("Backend.Domain.Category", "Category")
|
||||
.WithMany()
|
||||
.HasForeignKey("CategoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.Season", "Season")
|
||||
.WithMany()
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Candidate");
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("Season");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteBallot", b =>
|
||||
{
|
||||
b.HasOne("Backend.Domain.Season", "Season")
|
||||
.WithMany()
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Season");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteEntry", b =>
|
||||
{
|
||||
b.HasOne("Backend.Domain.VoteBallot", "Ballot")
|
||||
.WithMany("Entries")
|
||||
.HasForeignKey("BallotId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.Candidate", "Candidate")
|
||||
.WithMany()
|
||||
.HasForeignKey("CandidateId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.Category", "Category")
|
||||
.WithMany()
|
||||
.HasForeignKey("CategoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Ballot");
|
||||
|
||||
b.Navigation("Candidate");
|
||||
|
||||
b.Navigation("Category");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
{
|
||||
b.Navigation("Candidates");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Season", b =>
|
||||
{
|
||||
b.Navigation("Categories");
|
||||
|
||||
b.Navigation("Results");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteBallot", b =>
|
||||
{
|
||||
b.Navigation("Entries");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,395 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitialCreate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Seasons",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Year = table.Column<int>(type: "integer", nullable: false),
|
||||
Name = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
IsCurrent = table.Column<bool>(type: "boolean", nullable: false),
|
||||
IsCommunityOnly = table.Column<bool>(type: "boolean", nullable: false),
|
||||
CurrentPhase = table.Column<string>(type: "character varying(60)", maxLength: 60, nullable: false),
|
||||
NominationStartsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
NominationEndsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
VotingStartsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
VotingEndsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
ReviewStartsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
ReviewEndsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
ShowDate = table.Column<DateOnly>(type: "date", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Seasons", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Categories",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
GroupName = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
Name = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Slug = table.Column<string>(type: "text", nullable: false),
|
||||
Description = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
SortOrder = table.Column<int>(type: "integer", nullable: false),
|
||||
MaxNomineesPerUser = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Categories", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Categories_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VoteBallots",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
SubmittedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Status = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false),
|
||||
SubmittedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VoteBallots", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteBallots_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Candidates",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: false),
|
||||
DisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
ChannelSlug = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Platform = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Candidates", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Candidates_Categories_CategoryId",
|
||||
column: x => x.CategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Candidates_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Nominations",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: false),
|
||||
SubmittedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
CandidateId = table.Column<int>(type: "integer", nullable: true),
|
||||
CandidateText = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Nominations", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_Candidates_CandidateId",
|
||||
column: x => x.CandidateId,
|
||||
principalTable: "Candidates",
|
||||
principalColumn: "Id");
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_Categories_CategoryId",
|
||||
column: x => x.CategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Results",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
CandidateId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Results", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Results_Candidates_CandidateId",
|
||||
column: x => x.CandidateId,
|
||||
principalTable: "Candidates",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Results_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VoteEntries",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
BallotId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: false),
|
||||
CandidateId = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VoteEntries", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteEntries_Candidates_CandidateId",
|
||||
column: x => x.CandidateId,
|
||||
principalTable: "Candidates",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteEntries_Categories_CategoryId",
|
||||
column: x => x.CategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteEntries_VoteBallots_BallotId",
|
||||
column: x => x.BallotId,
|
||||
principalTable: "VoteBallots",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Seasons",
|
||||
columns: new[] { "Id", "CurrentPhase", "IsCommunityOnly", "IsCurrent", "Name", "NominationEndsAt", "NominationStartsAt", "ReviewEndsAt", "ReviewStartsAt", "ShowDate", "VotingEndsAt", "VotingStartsAt", "Year" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, "Community Voting", true, true, "VTuber Star Awards 2026", new DateOnly(2026, 5, 31), new DateOnly(2026, 5, 1), new DateOnly(2026, 7, 10), new DateOnly(2026, 7, 1), new DateOnly(2026, 7, 20), new DateOnly(2026, 6, 30), new DateOnly(2026, 6, 1), 2026 },
|
||||
{ 2, "Archived", true, false, "VTuber Star Awards 2025", new DateOnly(2025, 5, 31), new DateOnly(2025, 5, 1), new DateOnly(2025, 7, 10), new DateOnly(2025, 7, 1), new DateOnly(2025, 7, 20), new DateOnly(2025, 6, 30), new DateOnly(2025, 6, 1), 2025 },
|
||||
{ 3, "Archived", true, false, "VTuber Star Awards 2024", new DateOnly(2024, 5, 31), new DateOnly(2024, 5, 1), new DateOnly(2024, 7, 10), new DateOnly(2024, 7, 1), new DateOnly(2024, 7, 20), new DateOnly(2024, 6, 30), new DateOnly(2024, 6, 1), 2024 },
|
||||
{ 4, "Archived", true, false, "VTuber Star Awards 2023", new DateOnly(2023, 5, 31), new DateOnly(2023, 5, 1), new DateOnly(2023, 7, 10), new DateOnly(2023, 7, 1), new DateOnly(2023, 7, 20), new DateOnly(2023, 6, 30), new DateOnly(2023, 6, 1), 2023 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Categories",
|
||||
columns: new[] { "Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, "Die groesste Auszeichnung des Jahres.", "Main Awards", 3, "VTuber des Jahres", 1, "vtuber-des-jahres", 1 },
|
||||
{ 2, "Events, Konzerte und 3D-Shows.", "Performance", 3, "Bestes Live Event", 1, "bestes-live-event", 2 },
|
||||
{ 3, "Der lustigste oder emotionalste Clip des Jahres.", "Clips & Highlights", 3, "Clip des Jahres", 1, "clip-des-jahres", 3 },
|
||||
{ 4, "Die aktivste und freundlichste Community.", "Main Awards", 3, "Beste Community", 1, "beste-community", 4 },
|
||||
{ 5, "Archivkategorie 2025.", "Main Awards", 3, "VTuber des Jahres", 2, "vtuber-des-jahres", 1 },
|
||||
{ 6, "Archivkategorie 2025.", "Performance", 3, "Bestes Live Event", 2, "bestes-live-event", 2 },
|
||||
{ 7, "Archivkategorie 2025.", "Clips & Highlights", 3, "Clip des Jahres", 2, "clip-des-jahres", 3 },
|
||||
{ 8, "Archivkategorie 2024.", "Main Awards", 3, "VTuber des Jahres", 3, "vtuber-des-jahres", 1 },
|
||||
{ 9, "Archivkategorie 2024.", "Clips & Highlights", 3, "Clip des Jahres", 3, "clip-des-jahres", 2 },
|
||||
{ 10, "Archivkategorie 2023.", "Main Awards", 3, "VTuber des Jahres", 4, "vtuber-des-jahres", 1 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "VoteBallots",
|
||||
columns: new[] { "Id", "SeasonId", "Status", "SubmittedAt", "SubmittedByTwitchId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, 1, "submitted", new DateTimeOffset(new DateTime(2026, 6, 11, 12, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), "twitch_vote_1" },
|
||||
{ 2, 1, "submitted", new DateTimeOffset(new DateTime(2026, 6, 11, 12, 5, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), "twitch_vote_2" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Candidates",
|
||||
columns: new[] { "Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, 1, "@hoshimimiyu", "Hoshimi Miyu", "Twitch", 1 },
|
||||
{ 2, 1, "@kurainu", "Kurainu", "Twitch", 1 },
|
||||
{ 3, 1, "@shiroch", "Shiro Ch.", "Twitch", 1 },
|
||||
{ 4, 2, "@kurainu", "Kurainu 3D Live", "Twitch", 1 },
|
||||
{ 5, 2, "@aoisakura", "Aoi Sakura Showcase", "YouTube", 1 },
|
||||
{ 6, 3, "@pyonkichikingdom", "Pyonkichi Kingdom", "Twitch", 1 },
|
||||
{ 7, 4, "@moonrelay", "Moonrelay", "Twitch", 1 },
|
||||
{ 8, 5, "@hoshimimiyu", "Hoshimi Miyu", "Twitch", 2 },
|
||||
{ 9, 6, "@kurainu", "Kurainu 3D Live", "Twitch", 2 },
|
||||
{ 10, 7, "@pyonkichikingdom", "Pyonkichi Kingdom", "Twitch", 2 },
|
||||
{ 11, 8, "@aoisakura", "Aoi Sakura", "YouTube", 3 },
|
||||
{ 12, 9, "@starbyte", "Starbyte", "Twitch", 3 },
|
||||
{ 13, 10, "@tenshivox", "Tenshi Vox", "Twitch", 4 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Nominations",
|
||||
columns: new[] { "Id", "CandidateId", "CandidateText", "CategoryId", "CreatedAt", "SeasonId", "SubmittedByTwitchId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, null, "Hoshimi Miyu", 1, new DateTimeOffset(new DateTime(2026, 6, 10, 13, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "twitch_hoshi" },
|
||||
{ 2, null, "Kurainu 3D Live", 2, new DateTimeOffset(new DateTime(2026, 6, 10, 14, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), 1, "twitch_kurainu" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Results",
|
||||
columns: new[] { "Id", "CandidateId", "CategoryName", "SeasonId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, 8, "VTuber des Jahres", 2 },
|
||||
{ 2, 9, "Bestes Live Event", 2 },
|
||||
{ 3, 10, "Clip des Jahres", 2 },
|
||||
{ 4, 11, "VTuber des Jahres", 3 },
|
||||
{ 5, 12, "Clip des Jahres", 3 },
|
||||
{ 6, 13, "VTuber des Jahres", 4 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "VoteEntries",
|
||||
columns: new[] { "Id", "BallotId", "CandidateId", "CategoryId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1, 1, 1, 1 },
|
||||
{ 2, 1, 4, 2 },
|
||||
{ 3, 2, 2, 1 },
|
||||
{ 4, 2, 6, 3 }
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Candidates_CategoryId",
|
||||
table: "Candidates",
|
||||
column: "CategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Candidates_SeasonId",
|
||||
table: "Candidates",
|
||||
column: "SeasonId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Categories_SeasonId_Slug",
|
||||
table: "Categories",
|
||||
columns: new[] { "SeasonId", "Slug" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_CandidateId",
|
||||
table: "Nominations",
|
||||
column: "CandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_CategoryId",
|
||||
table: "Nominations",
|
||||
column: "CategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId",
|
||||
table: "Nominations",
|
||||
column: "SeasonId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_CandidateId",
|
||||
table: "Results",
|
||||
column: "CandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_SeasonId",
|
||||
table: "Results",
|
||||
column: "SeasonId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Seasons_Year",
|
||||
table: "Seasons",
|
||||
column: "Year",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteBallots_SeasonId",
|
||||
table: "VoteBallots",
|
||||
column: "SeasonId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteEntries_BallotId",
|
||||
table: "VoteEntries",
|
||||
column: "BallotId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteEntries_CandidateId",
|
||||
table: "VoteEntries",
|
||||
column: "CandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteEntries_CategoryId",
|
||||
table: "VoteEntries",
|
||||
column: "CategoryId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "Nominations");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Results");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VoteEntries");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Candidates");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VoteBallots");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Categories");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Seasons");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,42 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddClipReviewWorkflow : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
ADD COLUMN IF NOT EXISTS "ReviewNote" character varying(500) NULL;
|
||||
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
ADD COLUMN IF NOT EXISTS "ReviewedByTwitchId" character varying(120) NULL;
|
||||
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
ADD COLUMN IF NOT EXISTS "ReviewedAt" timestamp with time zone NULL;
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
DROP COLUMN IF EXISTS "ReviewNote";
|
||||
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
DROP COLUMN IF EXISTS "ReviewedByTwitchId";
|
||||
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
DROP COLUMN IF EXISTS "ReviewedAt";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,95 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddNominationReviewWorkflow : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Nominations_SeasonId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ReviewNote",
|
||||
table: "Nominations",
|
||||
type: "character varying(500)",
|
||||
maxLength: 500,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "ReviewedAt",
|
||||
table: "Nominations",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ReviewedByTwitchId",
|
||||
table: "Nominations",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "Status",
|
||||
table: "Nominations",
|
||||
type: "character varying(20)",
|
||||
maxLength: 20,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Nominations",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "ReviewNote", "ReviewedAt", "ReviewedByTwitchId", "Status" },
|
||||
values: new object[] { null, null, null, "pending" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Nominations",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
columns: new[] { "ReviewNote", "ReviewedAt", "ReviewedByTwitchId", "Status" },
|
||||
values: new object[] { null, null, null, "pending" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId_Status",
|
||||
table: "Nominations",
|
||||
columns: new[] { "SeasonId", "Status" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Nominations_SeasonId_Status",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReviewNote",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReviewedAt",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReviewedByTwitchId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Status",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId",
|
||||
table: "Nominations",
|
||||
column: "SeasonId");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,93 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddAwardResultCategoryLock : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Results_SeasonId",
|
||||
table: "Results");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "CategoryId",
|
||||
table: "Results",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
UPDATE "Results" AS r
|
||||
SET "CategoryId" = c."Id"
|
||||
FROM "Categories" AS c
|
||||
WHERE r."SeasonId" = c."SeasonId"
|
||||
AND lower(trim(r."CategoryName")) = lower(trim(c."Name"));
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF EXISTS (SELECT 1 FROM "Results" WHERE "CategoryId" IS NULL) THEN
|
||||
RAISE EXCEPTION 'Could not backfill CategoryId for one or more rows in Results.';
|
||||
END IF;
|
||||
END $$;
|
||||
""");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "CategoryId",
|
||||
table: "Results",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_CategoryId",
|
||||
table: "Results",
|
||||
column: "CategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_SeasonId_CategoryId",
|
||||
table: "Results",
|
||||
columns: new[] { "SeasonId", "CategoryId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Results_Categories_CategoryId",
|
||||
table: "Results",
|
||||
column: "CategoryId",
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Results_Categories_CategoryId",
|
||||
table: "Results");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Results_CategoryId",
|
||||
table: "Results");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Results_SeasonId_CategoryId",
|
||||
table: "Results");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CategoryId",
|
||||
table: "Results");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_SeasonId",
|
||||
table: "Results",
|
||||
column: "SeasonId");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,58 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSeasonShowStreamUrl : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ShowStreamUrl",
|
||||
table: "Seasons",
|
||||
type: "character varying(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "ShowStreamUrl",
|
||||
value: "https://twitch.tv/jayuhime");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
column: "ShowStreamUrl",
|
||||
value: "https://twitch.tv/jayuhime");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 3,
|
||||
column: "ShowStreamUrl",
|
||||
value: "https://youtube.com/c/Jayuhime");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 4,
|
||||
column: "ShowStreamUrl",
|
||||
value: "https://twitch.tv/jayuhime");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShowStreamUrl",
|
||||
table: "Seasons");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,48 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSiteSettings : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "SiteSettings",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
HostDisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
HostTagline = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
NewsletterUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
PrivacyEmail = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
ImprintUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
ContactUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
SponsorsUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
SocialLinksJson = table.Column<string>(type: "text", nullable: false),
|
||||
FaqJson = table.Column<string>(type: "text", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_SiteSettings", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "SiteSettings",
|
||||
columns: new[] { "Id", "ContactUrl", "FaqJson", "HostDisplayName", "HostTagline", "ImprintUrl", "NewsletterUrl", "PrivacyEmail", "SocialLinksJson", "SponsorsUrl" },
|
||||
values: new object[] { 1, "https://vtuber-star-awards.de/kontakt", "[{\"question\":\"Wer darf mitmachen?\",\"answer\":\"Jede:r mit einem Twitch-Account. Einmal einloggen gen\\u00FCgt \\u2013 kein extra Konto, kein Papierkram.\"},{\"question\":\"Wie werden die Gewinner bestimmt?\",\"answer\":\"Komplett durch eure Stimmen. Die Community entscheidet, wer auf die B\\u00FChne darf.\"},{\"question\":\"Kann ich meine Wahl noch \\u00E4ndern?\",\"answer\":\"Ja. Bis zum Ende der Voting-Phase kannst du Nominierungen und Stimmen anpassen.\"},{\"question\":\"Wann und wo findet die Show statt?\",\"answer\":\"Die gro\\u00DFe Live-Show wird von Jayuhime gehostet und live auf den verkn\\u00FCpften Plattformen \\u00FCbertragen.\"}]", "Jayuhime", "VTuber & Award Host", "https://vtuber-star-awards.de/impressum", "https://vtuber-star-awards.de/newsletter", "datenschutz@vtuber-star-awards.de", "[{\"label\":\"Twitch\",\"platform\":\"twitch\",\"url\":\"https://twitch.tv/jayuhime\"},{\"label\":\"YouTube\",\"platform\":\"youtube\",\"url\":\"https://youtube.com/c/Jayuhime\"},{\"label\":\"X\",\"platform\":\"x\",\"url\":\"https://x.com/jayuhime\"},{\"label\":\"Instagram\",\"platform\":\"instagram\",\"url\":\"https://instagram.com/jayuhime\"},{\"label\":\"Discord\",\"platform\":\"discord\",\"url\":\"https://discord.gg/jayuhime\"}]", "https://vtuber-star-awards.de/partner" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "SiteSettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1213
File diff suppressed because it is too large
Load Diff
@@ -1,58 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddPrivacyPolicyContentMetadata : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PrivacyPolicyContent",
|
||||
table: "SiteSettings",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "PrivacyPolicyUpdatedAt",
|
||||
table: "SiteSettings",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "PrivacyPolicyUpdatedBy",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "PrivacyPolicyContent", "PrivacyPolicyUpdatedAt", "PrivacyPolicyUpdatedBy" },
|
||||
values: new object[] { "Verantwortliche:r\nVTuber Star Awards, vertreten durch Jayuhime. Kontakt: datenschutz@vtuber-star-awards.de\n\nWelche Daten wir verarbeiten\nBei Teilnahme (Voting, Nominierung, Clip-Einreichung) verarbeiten wir ausschließlich deine Twitch-User-ID sowie den Zeitstempel deiner Aktion.\nFür Show-Erinnerungen speichern wir optional deine E-Mail-Adresse.\n\nRechtsgrundlage\nVerarbeitung auf Basis von Art. 6 Abs. 1 lit. b DSGVO. Für optionale Erinnerungen gilt Art. 6 Abs. 1 lit. a DSGVO.\n\nZweck der Verarbeitung\nDurchführung des VTuber Star Awards, Sicherstellung fairer Abstimmung, Spam-Prävention sowie Admin-Review von Einreichungen.\n\nLöschfristen\nAlle Teilnahmedaten werden spätestens 6 Monate nach der Award-Show automatisch gelöscht. E-Mail-Adressen werden nach der Show entfernt.\n\nDeine Rechte\nDu hast das Recht auf Auskunft, Löschung, Berichtigung, Widerspruch und Beschwerde bei der zuständigen Aufsichtsbehörde.\n\nWeitergabe an Dritte\nKeine Weitergabe zu Werbezwecken. Technische Dienstleister verarbeiten Daten ausschließlich im Rahmen der Auftragsverarbeitung.", new DateTimeOffset(new DateTime(2026, 6, 23, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), "seed" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PrivacyPolicyContent",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PrivacyPolicyUpdatedAt",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "PrivacyPolicyUpdatedBy",
|
||||
table: "SiteSettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,143 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddOperationalSiteSettings : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DemoLoginDisplayName",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DemoLoginEmail",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(180)",
|
||||
maxLength: 180,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "DemoLoginEnabled",
|
||||
table: "SiteSettings",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "DemoLoginManagedByDatabase",
|
||||
table: "SiteSettings",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DemoLoginPasswordHash",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DemoLoginPasswordSalt",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(80)",
|
||||
maxLength: 80,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "DemoLoginTwitchUserId",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "MaintenanceMessage",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(600)",
|
||||
maxLength: 600,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "MaintenanceModeEnabled",
|
||||
table: "SiteSettings",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "MaintenanceTitle",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "DemoLoginDisplayName", "DemoLoginEmail", "DemoLoginEnabled", "DemoLoginManagedByDatabase", "DemoLoginPasswordHash", "DemoLoginPasswordSalt", "DemoLoginTwitchUserId", "MaintenanceMessage", "MaintenanceModeEnabled", "MaintenanceTitle" },
|
||||
values: new object[] { "Jayuhime Admin", "", false, false, "", "", "jayuhime_admin", "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.", false, "Sternenpause" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DemoLoginDisplayName",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DemoLoginEmail",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DemoLoginEnabled",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DemoLoginManagedByDatabase",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DemoLoginPasswordHash",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DemoLoginPasswordSalt",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "DemoLoginTwitchUserId",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MaintenanceMessage",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MaintenanceModeEnabled",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "MaintenanceTitle",
|
||||
table: "SiteSettings");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,57 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSeasonShowStartsAt : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE "Seasons"
|
||||
ADD COLUMN IF NOT EXISTS "ShowStartsAt" time without time zone NOT NULL DEFAULT TIME '20:00:00';
|
||||
""");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "ShowStartsAt",
|
||||
value: new TimeOnly(20, 0, 0));
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
column: "ShowStartsAt",
|
||||
value: new TimeOnly(20, 0, 0));
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 3,
|
||||
column: "ShowStartsAt",
|
||||
value: new TimeOnly(20, 0, 0));
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 4,
|
||||
column: "ShowStartsAt",
|
||||
value: new TimeOnly(20, 0, 0));
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShowStartsAt",
|
||||
table: "Seasons");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,54 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddClipCandidateLink : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
ADD COLUMN IF NOT EXISTS "CandidateId" integer NULL;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF to_regclass('"ClipSubmissions"') IS NOT NULL THEN
|
||||
CREATE INDEX IF NOT EXISTS "IX_ClipSubmissions_CandidateId"
|
||||
ON "ClipSubmissions" ("CandidateId");
|
||||
|
||||
IF NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM pg_constraint
|
||||
WHERE conname = 'FK_ClipSubmissions_Candidates_CandidateId'
|
||||
) THEN
|
||||
ALTER TABLE "ClipSubmissions"
|
||||
ADD CONSTRAINT "FK_ClipSubmissions_Candidates_CandidateId"
|
||||
FOREIGN KEY ("CandidateId") REFERENCES "Candidates" ("Id")
|
||||
ON DELETE SET NULL;
|
||||
END IF;
|
||||
END IF;
|
||||
END $$;
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
DROP CONSTRAINT IF EXISTS "FK_ClipSubmissions_Candidates_CandidateId";
|
||||
|
||||
DROP INDEX IF EXISTS "IX_ClipSubmissions_CandidateId";
|
||||
|
||||
ALTER TABLE IF EXISTS "ClipSubmissions"
|
||||
DROP COLUMN IF EXISTS "CandidateId";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
using Backend.Data;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260624150500_AddRiskFlagReviewNote")]
|
||||
public partial class AddRiskFlagReviewNote : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "RiskFlags"
|
||||
ADD COLUMN IF NOT EXISTS "ReviewNote" character varying(500) NULL;
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "RiskFlags"
|
||||
DROP COLUMN IF EXISTS "ReviewNote";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
using Backend.Data;
|
||||
using Backend.Services;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260624162000_AddRiskRulesJson")]
|
||||
public partial class AddRiskRulesJson : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
$"""
|
||||
ALTER TABLE IF EXISTS "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "RiskRulesJson" text NOT NULL DEFAULT '{RiskRuleSettings.Serialize(RiskRuleSettings.Defaults).Replace("'", "''")}';
|
||||
|
||||
UPDATE "SiteSettings"
|
||||
SET "RiskRulesJson" = '{RiskRuleSettings.Serialize(RiskRuleSettings.Defaults).Replace("'", "''")}'
|
||||
WHERE "RiskRulesJson" IS NULL OR btrim("RiskRulesJson") = '' OR "RiskRulesJson" = '[]';
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "RiskRulesJson";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
using Backend.Data;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260625110000_AddFooterPageContent")]
|
||||
public partial class AddFooterPageContent : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
var imprintContent = SeedCatalog.DefaultImprintContent.Replace("'", "''");
|
||||
var contactContent = SeedCatalog.DefaultContactContent.Replace("'", "''");
|
||||
var sponsorsContent = SeedCatalog.DefaultSponsorsContent.Replace("'", "''");
|
||||
|
||||
migrationBuilder.Sql(
|
||||
$"""
|
||||
ALTER TABLE IF EXISTS "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ImprintContent" text NOT NULL DEFAULT '',
|
||||
ADD COLUMN IF NOT EXISTS "ContactContent" text NOT NULL DEFAULT '',
|
||||
ADD COLUMN IF NOT EXISTS "SponsorsContent" text NOT NULL DEFAULT '';
|
||||
|
||||
UPDATE "SiteSettings"
|
||||
SET "ImprintContent" = '{imprintContent}'
|
||||
WHERE "ImprintContent" IS NULL OR btrim("ImprintContent") = '';
|
||||
|
||||
UPDATE "SiteSettings"
|
||||
SET "ContactContent" = '{contactContent}'
|
||||
WHERE "ContactContent" IS NULL OR btrim("ContactContent") = '';
|
||||
|
||||
UPDATE "SiteSettings"
|
||||
SET "SponsorsContent" = '{sponsorsContent}'
|
||||
WHERE "SponsorsContent" IS NULL OR btrim("SponsorsContent") = '';
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
ALTER TABLE IF EXISTS "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ImprintContent",
|
||||
DROP COLUMN IF EXISTS "ContactContent",
|
||||
DROP COLUMN IF EXISTS "SponsorsContent";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,79 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddTeamManagement : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TeamMembers",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Login = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
DisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Role = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
PasswordHash = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
PasswordSalt = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
MustChangePassword = table.Column<bool>(type: "boolean", nullable: false),
|
||||
IsActive = table.Column<bool>(type: "boolean", nullable: false),
|
||||
CreatedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
UpdatedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
UpdatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
LastLoginAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
PasswordResetAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TeamMembers", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TeamRolePermissions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Role = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
PermissionsJson = table.Column<string>(type: "text", nullable: false),
|
||||
UpdatedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
UpdatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TeamRolePermissions", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TeamMembers_Login",
|
||||
table: "TeamMembers",
|
||||
column: "Login",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TeamRolePermissions_Role",
|
||||
table: "TeamRolePermissions",
|
||||
column: "Role",
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "TeamMembers");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TeamRolePermissions");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
using System;
|
||||
using Backend.Data;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260625153000_AddCreatorRoleAndTeamTwitchBinding")]
|
||||
public partial class AddCreatorRoleAndTeamTwitchBinding : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BoundTwitchDisplayName",
|
||||
table: "TeamMembers",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "BoundTwitchUserId",
|
||||
table: "TeamMembers",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "TwitchBoundAt",
|
||||
table: "TeamMembers",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TeamMembers_BoundTwitchUserId",
|
||||
table: "TeamMembers",
|
||||
column: "BoundTwitchUserId",
|
||||
unique: true,
|
||||
filter: "\"BoundTwitchUserId\" IS NOT NULL");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_TeamMembers_BoundTwitchUserId",
|
||||
table: "TeamMembers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BoundTwitchDisplayName",
|
||||
table: "TeamMembers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "BoundTwitchUserId",
|
||||
table: "TeamMembers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TwitchBoundAt",
|
||||
table: "TeamMembers");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1471
File diff suppressed because it is too large
Load Diff
@@ -1,135 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddVoteBallotSubmitterUniqueIndex : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_VoteBallots_SeasonId",
|
||||
table: "VoteBallots");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "TwitchAuthManagedByDatabase",
|
||||
table: "SiteSettings",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TwitchClientId",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TwitchClientSecret",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(180)",
|
||||
maxLength: 180,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TwitchRedirectUri",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(400)",
|
||||
maxLength: 400,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TwitchScope",
|
||||
table: "SiteSettings",
|
||||
type: "character varying(300)",
|
||||
maxLength: 300,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "TwitchAuthManagedByDatabase", "TwitchClientId", "TwitchClientSecret", "TwitchRedirectUri", "TwitchScope" },
|
||||
values: new object[] { false, "", "", "", "" });
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
DELETE FROM "VoteEntries"
|
||||
WHERE "BallotId" IN (
|
||||
SELECT "Id"
|
||||
FROM (
|
||||
SELECT
|
||||
"Id",
|
||||
ROW_NUMBER() OVER (
|
||||
PARTITION BY "SeasonId", "SubmittedByTwitchId"
|
||||
ORDER BY "SubmittedAt" DESC, "Id" DESC
|
||||
) AS duplicate_rank
|
||||
FROM "VoteBallots"
|
||||
) ranked_ballots
|
||||
WHERE duplicate_rank > 1
|
||||
);
|
||||
|
||||
DELETE FROM "VoteBallots"
|
||||
WHERE "Id" IN (
|
||||
SELECT "Id"
|
||||
FROM (
|
||||
SELECT
|
||||
"Id",
|
||||
ROW_NUMBER() OVER (
|
||||
PARTITION BY "SeasonId", "SubmittedByTwitchId"
|
||||
ORDER BY "SubmittedAt" DESC, "Id" DESC
|
||||
) AS duplicate_rank
|
||||
FROM "VoteBallots"
|
||||
) ranked_ballots
|
||||
WHERE duplicate_rank > 1
|
||||
);
|
||||
""");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteBallots_SeasonId_SubmittedByTwitchId",
|
||||
table: "VoteBallots",
|
||||
columns: new[] { "SeasonId", "SubmittedByTwitchId" },
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_VoteBallots_SeasonId_SubmittedByTwitchId",
|
||||
table: "VoteBallots");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TwitchAuthManagedByDatabase",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TwitchClientId",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TwitchClientSecret",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TwitchRedirectUri",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TwitchScope",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteBallots_SeasonId",
|
||||
table: "VoteBallots",
|
||||
column: "SeasonId");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1527
File diff suppressed because it is too large
Load Diff
@@ -1,177 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddCandidatePreparationFields : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "AcceptanceNote",
|
||||
table: "Candidates",
|
||||
type: "character varying(500)",
|
||||
maxLength: 500,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "AcceptanceStatus",
|
||||
table: "Candidates",
|
||||
type: "character varying(30)",
|
||||
maxLength: 30,
|
||||
nullable: false,
|
||||
defaultValue: "open");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ClipCompilationPlatform",
|
||||
table: "Candidates",
|
||||
type: "character varying(40)",
|
||||
maxLength: 40,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ClipCompilationTitle",
|
||||
table: "Candidates",
|
||||
type: "character varying(200)",
|
||||
maxLength: 200,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ClipCompilationUrl",
|
||||
table: "Candidates",
|
||||
type: "character varying(500)",
|
||||
maxLength: 500,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ClipEmbedStatus",
|
||||
table: "Candidates",
|
||||
type: "character varying(30)",
|
||||
maxLength: 30,
|
||||
nullable: false,
|
||||
defaultValue: "unchecked");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 3,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 4,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 5,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 6,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 7,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 8,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 9,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 10,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 11,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 12,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 13,
|
||||
columns: new[] { "AcceptanceNote", "AcceptanceStatus", "ClipCompilationPlatform", "ClipCompilationTitle", "ClipCompilationUrl", "ClipEmbedStatus" },
|
||||
values: new object[] { null, "open", null, null, null, "unchecked" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AcceptanceNote",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AcceptanceStatus",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClipCompilationPlatform",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClipCompilationTitle",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClipCompilationUrl",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ClipEmbedStatus",
|
||||
table: "Candidates");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,35 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddWorkflowRulesJson : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "WorkflowRulesJson" text NOT NULL DEFAULT '[]';
|
||||
""");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "WorkflowRulesJson",
|
||||
value: "[{\"key\":\"max_finalists_per_category\",\"label\":\"Finale Kandidat:innen pro Kategorie\",\"enabled\":true,\"limit\":4,\"mode\":\"block\",\"description\":\"Begrenzt, wie viele finale Kandidat:innen in einer Kategorie vorbereitet werden.\"},{\"key\":\"max_candidate_appearances\",\"label\":\"Kandidaturen pro Person\",\"enabled\":true,\"limit\":2,\"mode\":\"warn\",\"description\":\"Warnt oder blockiert, wenn dieselbe Person in zu vielen Kategorien final auftaucht.\"},{\"key\":\"max_winner_placements\",\"label\":\"Gewinnerpl\\u00E4tze pro Person\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn dieselbe Person mehrfach als Gewinner:in gesetzt wird.\"}]");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "WorkflowRulesJson";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1552
File diff suppressed because it is too large
Load Diff
@@ -1,55 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddOptionalClipFeatureSettings : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ClipReviewEnabled" boolean NOT NULL DEFAULT true;
|
||||
""");
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ClipSubmissionDisabledMessage" character varying(240) NOT NULL DEFAULT 'Clip-Einreichungen sind aktuell geschlossen.';
|
||||
""");
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ClipSubmissionsEnabled" boolean NOT NULL DEFAULT false;
|
||||
""");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "ClipReviewEnabled", "ClipSubmissionDisabledMessage" },
|
||||
values: new object[] { true, "Clip-Einreichungen sind aktuell geschlossen." });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ClipReviewEnabled";
|
||||
""");
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ClipSubmissionDisabledMessage";
|
||||
""");
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ClipSubmissionsEnabled";
|
||||
""");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,36 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddNominationLinkBlacklist : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "NominationLinkBlacklistJson",
|
||||
table: "SiteSettings",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "[]");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "NominationLinkBlacklistJson",
|
||||
value: "[{\"Url\":\"https://kick.com/\"},{\"Url\":\"https://www.twitch.tv/\"},{\"Url\":\"https://www.youtube.com/\"}]");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "NominationLinkBlacklistJson",
|
||||
table: "SiteSettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,152 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddClipAdminMenuVisible : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ClipAdminMenuVisible" boolean NOT NULL DEFAULT FALSE;
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ShowactApplicationDisabledMessage" character varying(240) NOT NULL DEFAULT '';
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ShowactApplicationsEnabled" boolean NOT NULL DEFAULT FALSE;
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ShowactsContent" text NOT NULL DEFAULT '';
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "ShowactsUrl" character varying(400) NOT NULL DEFAULT '';
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
ADD COLUMN IF NOT EXISTS "SponsorsVisible" boolean NOT NULL DEFAULT TRUE;
|
||||
""");
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
CREATE TABLE IF NOT EXISTS "ShowactApplications" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"SeasonId" integer NOT NULL,
|
||||
"ArtistName" character varying(120) NOT NULL,
|
||||
"ContactEmail" character varying(180) NOT NULL,
|
||||
"ContactDiscord" character varying(120) NOT NULL,
|
||||
"PlatformUrl" character varying(500) NOT NULL,
|
||||
"PerformanceType" character varying(80) NOT NULL,
|
||||
"Description" character varying(1000) NOT NULL,
|
||||
"TechnicalNotes" character varying(1000) NOT NULL,
|
||||
"ReferenceUrl" character varying(500) NOT NULL,
|
||||
"Status" character varying(20) NOT NULL,
|
||||
"ReviewNote" character varying(500) NULL,
|
||||
"ReviewedByTwitchId" character varying(120) NULL,
|
||||
"CreatedFromIp" character varying(80) NOT NULL,
|
||||
"UserAgent" character varying(400) NOT NULL,
|
||||
"CreatedAt" timestamp with time zone NOT NULL,
|
||||
"ReviewedAt" timestamp with time zone NULL
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "Sponsors" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"SeasonId" integer NOT NULL,
|
||||
"Name" character varying(120) NOT NULL,
|
||||
"WebsiteUrl" character varying(500) NOT NULL,
|
||||
"LogoUrl" character varying(500) NOT NULL,
|
||||
"Description" character varying(500) NOT NULL,
|
||||
"Tier" character varying(80) NOT NULL,
|
||||
"SortOrder" integer NOT NULL,
|
||||
"IsVisible" boolean NOT NULL,
|
||||
"CreatedAt" timestamp with time zone NOT NULL,
|
||||
"UpdatedAt" timestamp with time zone NULL
|
||||
);
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM pg_constraint
|
||||
WHERE conname = 'FK_ShowactApplications_Seasons_SeasonId'
|
||||
) THEN
|
||||
ALTER TABLE "ShowactApplications"
|
||||
ADD CONSTRAINT "FK_ShowactApplications_Seasons_SeasonId"
|
||||
FOREIGN KEY ("SeasonId") REFERENCES "Seasons" ("Id")
|
||||
ON DELETE CASCADE;
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM pg_constraint
|
||||
WHERE conname = 'FK_Sponsors_Seasons_SeasonId'
|
||||
) THEN
|
||||
ALTER TABLE "Sponsors"
|
||||
ADD CONSTRAINT "FK_Sponsors_Seasons_SeasonId"
|
||||
FOREIGN KEY ("SeasonId") REFERENCES "Seasons" ("Id")
|
||||
ON DELETE CASCADE;
|
||||
END IF;
|
||||
END $$;
|
||||
""");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "ClipAdminMenuVisible", "ShowactApplicationDisabledMessage", "ShowactsContent", "ShowactsUrl", "SponsorsVisible", "WorkflowRulesJson" },
|
||||
values: new object[] { true, "Showact-Bewerbungen sind aktuell geschlossen.", "Informationen zu Showact-Bewerbungen, Ablauf und Kontakt fuer die Award-Show.", "https://vtuber-star-awards.de/showacts", true, "[{\"key\":\"max_finalists_per_category\",\"label\":\"Finale Kandidat:innen pro Kategorie\",\"enabled\":true,\"limit\":4,\"mode\":\"block\",\"description\":\"Begrenzt, wie viele finale Kandidat:innen in einer Kategorie vorbereitet werden.\"},{\"key\":\"max_candidate_appearances\",\"label\":\"Kandidaturen pro Person\",\"enabled\":true,\"limit\":2,\"mode\":\"warn\",\"description\":\"Warnt oder blockiert, wenn dieselbe Person in zu vielen Kategorien final auftaucht.\"},{\"key\":\"max_winner_placements\",\"label\":\"Gewinnerpl\\u00E4tze pro Person\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn dieselbe Person mehrfach als Gewinner:in gesetzt wird.\"},{\"key\":\"winner_requires_clip\",\"label\":\"Gewinner braucht Clip-Link\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn ein Gewinner ohne gepflegten YouTube-/Twitch-Clip gesetzt wird.\"}]" });
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
CREATE INDEX IF NOT EXISTS "IX_ShowactApplications_SeasonId_Status"
|
||||
ON "ShowactApplications" ("SeasonId", "Status");
|
||||
|
||||
CREATE INDEX IF NOT EXISTS "IX_Sponsors_SeasonId_IsVisible_SortOrder"
|
||||
ON "Sponsors" ("SeasonId", "IsVisible", "SortOrder");
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql("""
|
||||
DROP TABLE IF EXISTS "ShowactApplications";
|
||||
|
||||
DROP TABLE IF EXISTS "Sponsors";
|
||||
""");
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ClipAdminMenuVisible";
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ShowactApplicationDisabledMessage";
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ShowactApplicationsEnabled";
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ShowactsContent";
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "ShowactsUrl";
|
||||
|
||||
ALTER TABLE "SiteSettings"
|
||||
DROP COLUMN IF EXISTS "SponsorsVisible";
|
||||
""");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "WorkflowRulesJson",
|
||||
value: "[{\"key\":\"max_finalists_per_category\",\"label\":\"Finale Kandidat:innen pro Kategorie\",\"enabled\":true,\"limit\":4,\"mode\":\"block\",\"description\":\"Begrenzt, wie viele finale Kandidat:innen in einer Kategorie vorbereitet werden.\"},{\"key\":\"max_candidate_appearances\",\"label\":\"Kandidaturen pro Person\",\"enabled\":true,\"limit\":2,\"mode\":\"warn\",\"description\":\"Warnt oder blockiert, wenn dieselbe Person in zu vielen Kategorien final auftaucht.\"},{\"key\":\"max_winner_placements\",\"label\":\"Gewinnerpl\\u00E4tze pro Person\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn dieselbe Person mehrfach als Gewinner:in gesetzt wird.\"}]");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1768
File diff suppressed because it is too large
Load Diff
@@ -1,47 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddShareUrls : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ShareDiscordUrl",
|
||||
table: "SiteSettings",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ShareXUrl",
|
||||
table: "SiteSettings",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "ShareDiscordUrl", "ShareXUrl" },
|
||||
values: new object[] { "", "" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShareDiscordUrl",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShareXUrl",
|
||||
table: "SiteSettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,47 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddShowactDynamicForm : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ShowactFormSchemaJson",
|
||||
table: "SiteSettings",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "FieldResponsesJson",
|
||||
table: "ShowactApplications",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "ShowactFormSchemaJson",
|
||||
value: "[]");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShowactFormSchemaJson",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "FieldResponsesJson",
|
||||
table: "ShowactApplications");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddCategoryViewerRanges : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ViewerRangeMax",
|
||||
table: "Categories",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "ViewerRangeMin",
|
||||
table: "Categories",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 3,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 4,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 5,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 6,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 7,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 8,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 9,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Categories",
|
||||
keyColumn: "Id",
|
||||
keyValue: 10,
|
||||
columns: new[] { "ViewerRangeMax", "ViewerRangeMin" },
|
||||
values: new object[] { null, null });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ViewerRangeMax",
|
||||
table: "Categories");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ViewerRangeMin",
|
||||
table: "Categories");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSessionIdleTimeoutSettings : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SessionIdleTimeoutHours",
|
||||
table: "SiteSettings",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 3);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "SessionIdleTimeoutHours",
|
||||
value: 3);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SessionIdleTimeoutHours",
|
||||
table: "SiteSettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
-1799
File diff suppressed because it is too large
Load Diff
@@ -1,57 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSeasonSubcategoryTemplates : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "SubcategoryTemplatesJson",
|
||||
table: "Seasons",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "[]");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "SubcategoryTemplatesJson",
|
||||
value: "[]");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
column: "SubcategoryTemplatesJson",
|
||||
value: "[]");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 3,
|
||||
column: "SubcategoryTemplatesJson",
|
||||
value: "[]");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Seasons",
|
||||
keyColumn: "Id",
|
||||
keyValue: 4,
|
||||
column: "SubcategoryTemplatesJson",
|
||||
value: "[]");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SubcategoryTemplatesJson",
|
||||
table: "Seasons");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,388 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddNominationGroupTrackerIdentity : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Nominations_Categories_CategoryId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "CategoryId",
|
||||
table: "Nominations",
|
||||
type: "integer",
|
||||
nullable: true,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "AvgViewers",
|
||||
table: "Nominations",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "CategoryGroupName",
|
||||
table: "Nominations",
|
||||
type: "character varying(80)",
|
||||
maxLength: 80,
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ResolvedChannel",
|
||||
table: "Nominations",
|
||||
type: "character varying(120)",
|
||||
maxLength: 120,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "ResolvedPlatform",
|
||||
table: "Nominations",
|
||||
type: "character varying(40)",
|
||||
maxLength: 40,
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "StreamerIdentityId",
|
||||
table: "Nominations",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "SuggestedCategoryId",
|
||||
table: "Nominations",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "TrackerCheckedAt",
|
||||
table: "Nominations",
|
||||
type: "timestamp with time zone",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "TrackerStatus",
|
||||
table: "Nominations",
|
||||
type: "character varying(40)",
|
||||
maxLength: 40,
|
||||
nullable: false,
|
||||
defaultValue: "pending");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "NominationTally",
|
||||
table: "Candidates",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "StreamerIdentityId",
|
||||
table: "Candidates",
|
||||
type: "integer",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "StreamerIdentities",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Platform = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
Login = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
NormalizedKey = table.Column<string>(type: "character varying(180)", maxLength: 180, nullable: false),
|
||||
DisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
ProfileUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
LastResolvedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_StreamerIdentities", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 3,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 4,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 5,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 6,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 7,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 8,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 9,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 10,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 11,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 12,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Candidates",
|
||||
keyColumn: "Id",
|
||||
keyValue: 13,
|
||||
column: "StreamerIdentityId",
|
||||
value: null);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Nominations",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "AvgViewers", "CategoryGroupName", "ResolvedChannel", "ResolvedPlatform", "StreamerIdentityId", "SuggestedCategoryId", "TrackerCheckedAt", "TrackerStatus" },
|
||||
values: new object[] { null, "", null, null, null, null, null, "pending" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Nominations",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2,
|
||||
columns: new[] { "AvgViewers", "CategoryGroupName", "ResolvedChannel", "ResolvedPlatform", "StreamerIdentityId", "SuggestedCategoryId", "TrackerCheckedAt", "TrackerStatus" },
|
||||
values: new object[] { null, "", null, null, null, null, null, "pending" });
|
||||
|
||||
migrationBuilder.Sql("""
|
||||
UPDATE "Nominations" n
|
||||
SET "CategoryGroupName" = c."GroupName"
|
||||
FROM "Categories" c
|
||||
WHERE n."CategoryId" = c."Id"
|
||||
AND COALESCE(n."CategoryGroupName", '') = '';
|
||||
""");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId_CategoryGroupName_Status",
|
||||
table: "Nominations",
|
||||
columns: new[] { "SeasonId", "CategoryGroupName", "Status" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId_StreamerIdentityId_CategoryGroupName",
|
||||
table: "Nominations",
|
||||
columns: new[] { "SeasonId", "StreamerIdentityId", "CategoryGroupName" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_StreamerIdentityId",
|
||||
table: "Nominations",
|
||||
column: "StreamerIdentityId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SuggestedCategoryId",
|
||||
table: "Nominations",
|
||||
column: "SuggestedCategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Candidates_StreamerIdentityId",
|
||||
table: "Candidates",
|
||||
column: "StreamerIdentityId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_StreamerIdentities_NormalizedKey",
|
||||
table: "StreamerIdentities",
|
||||
column: "NormalizedKey",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Candidates_StreamerIdentities_StreamerIdentityId",
|
||||
table: "Candidates",
|
||||
column: "StreamerIdentityId",
|
||||
principalTable: "StreamerIdentities",
|
||||
principalColumn: "Id");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Nominations_Categories_CategoryId",
|
||||
table: "Nominations",
|
||||
column: "CategoryId",
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.SetNull);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Nominations_Categories_SuggestedCategoryId",
|
||||
table: "Nominations",
|
||||
column: "SuggestedCategoryId",
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.SetNull);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Nominations_StreamerIdentities_StreamerIdentityId",
|
||||
table: "Nominations",
|
||||
column: "StreamerIdentityId",
|
||||
principalTable: "StreamerIdentities",
|
||||
principalColumn: "Id");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Candidates_StreamerIdentities_StreamerIdentityId",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Nominations_Categories_CategoryId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Nominations_Categories_SuggestedCategoryId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "FK_Nominations_StreamerIdentities_StreamerIdentityId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "StreamerIdentities");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Nominations_SeasonId_CategoryGroupName_Status",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Nominations_SeasonId_StreamerIdentityId_CategoryGroupName",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Nominations_StreamerIdentityId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Nominations_SuggestedCategoryId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_Candidates_StreamerIdentityId",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "AvgViewers",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "CategoryGroupName",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ResolvedChannel",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ResolvedPlatform",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StreamerIdentityId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SuggestedCategoryId",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrackerCheckedAt",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "TrackerStatus",
|
||||
table: "Nominations");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "NominationTally",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StreamerIdentityId",
|
||||
table: "Candidates");
|
||||
|
||||
migrationBuilder.AlterColumn<int>(
|
||||
name: "CategoryId",
|
||||
table: "Nominations",
|
||||
type: "integer",
|
||||
nullable: false,
|
||||
defaultValue: 0,
|
||||
oldClrType: typeof(int),
|
||||
oldType: "integer",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "FK_Nominations_Categories_CategoryId",
|
||||
table: "Nominations",
|
||||
column: "CategoryId",
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddShowactApplicationSchedule : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<DateOnly>(
|
||||
name: "ShowactApplicationEndsAt",
|
||||
table: "SiteSettings",
|
||||
type: "date",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<DateOnly>(
|
||||
name: "ShowactApplicationStartsAt",
|
||||
table: "SiteSettings",
|
||||
type: "date",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "SiteSettings",
|
||||
keyColumn: "Id",
|
||||
keyValue: 1,
|
||||
columns: new[] { "ShowactApplicationEndsAt", "ShowactApplicationStartsAt" },
|
||||
values: new object[] { null, null });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShowactApplicationEndsAt",
|
||||
table: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ShowactApplicationStartsAt",
|
||||
table: "SiteSettings");
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,36 +0,0 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddSeasonWorkflowRulesJson : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "WorkflowRulesJson",
|
||||
table: "Seasons",
|
||||
type: "text",
|
||||
nullable: false,
|
||||
defaultValue: "[]");
|
||||
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
UPDATE "Seasons"
|
||||
SET "WorkflowRulesJson" = COALESCE(NULLIF((SELECT "WorkflowRulesJson" FROM "SiteSettings" WHERE "Id" = 1), ''), '[]')
|
||||
WHERE COALESCE("WorkflowRulesJson", '') = '';
|
||||
""");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "WorkflowRulesJson",
|
||||
table: "Seasons");
|
||||
}
|
||||
}
|
||||
}
|
||||
+149
-531
@@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260628161949_AddShowactApplicationSchedule")]
|
||||
partial class AddShowactApplicationSchedule
|
||||
[Migration("20260629142009_InitialCleanBaseline")]
|
||||
partial class InitialCleanBaseline
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -112,56 +112,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Results");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateId = 8,
|
||||
CategoryId = 5,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateId = 9,
|
||||
CategoryId = 6,
|
||||
CategoryName = "Bestes Live Event",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CandidateId = 10,
|
||||
CategoryId = 7,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CandidateId = 11,
|
||||
CategoryId = 8,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
CandidateId = 12,
|
||||
CategoryId = 9,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
CandidateId = 13,
|
||||
CategoryId = 10,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Candidate", b =>
|
||||
@@ -240,164 +190,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("StreamerIdentityId");
|
||||
|
||||
b.ToTable("Candidates");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@shiroch",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Shiro Ch.",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura Showcase",
|
||||
NominationTally = 0,
|
||||
Platform = "YouTube",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 3,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 4,
|
||||
ChannelSlug = "@moonrelay",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Moonrelay",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 5,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 6,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 7,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 11,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 8,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura",
|
||||
NominationTally = 0,
|
||||
Platform = "YouTube",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 12,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 9,
|
||||
ChannelSlug = "@starbyte",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Starbyte",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 13,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 10,
|
||||
ChannelSlug = "@tenshivox",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Tenshi Vox",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
@@ -448,118 +240,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Categories");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Description = "Die groesste Auszeichnung des Jahres.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Description = "Events, Konzerte und 3D-Shows.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 1,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
Description = "Der lustigste oder emotionalste Clip des Jahres.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
Description = "Die aktivste und freundlichste Community.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Beste Community",
|
||||
SeasonId = 1,
|
||||
Slug = "beste-community",
|
||||
SortOrder = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 2,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
Description = "Archivkategorie 2023.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 4,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ClipSubmission", b =>
|
||||
@@ -668,6 +348,18 @@ namespace Backend.Migrations
|
||||
b.Property<DateTimeOffset>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int?>("FollowersGained")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursStreamed")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursWatched")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("PeakViewers")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ResolvedChannel")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
@@ -720,6 +412,30 @@ namespace Backend.Migrations
|
||||
.HasColumnType("character varying(40)")
|
||||
.HasDefaultValue("pending");
|
||||
|
||||
b.Property<string>("TrackingFlagsJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<string>("TrackingReviewNote")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("character varying(1000)");
|
||||
|
||||
b.Property<string>("TrackingReviewStatus")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(30)
|
||||
.HasColumnType("character varying(30)")
|
||||
.HasDefaultValue("clear");
|
||||
|
||||
b.Property<DateTimeOffset?>("TrackingReviewedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("TrackingReviewedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CandidateId");
|
||||
@@ -737,32 +453,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("SeasonId", "StreamerIdentityId", "CategoryGroupName");
|
||||
|
||||
b.ToTable("Nominations");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateText = "Hoshimi Miyu",
|
||||
CategoryGroupName = "",
|
||||
CategoryId = 1,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 13, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_hoshi",
|
||||
TrackerStatus = "pending"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateText = "Kurainu 3D Live",
|
||||
CategoryGroupName = "",
|
||||
CategoryId = 2,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 14, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_kurainu",
|
||||
TrackerStatus = "pending"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.RiskFlag", b =>
|
||||
@@ -859,6 +549,11 @@ namespace Backend.Migrations
|
||||
b.Property<bool>("IsCurrent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsDemo")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(false);
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
@@ -882,11 +577,6 @@ namespace Backend.Migrations
|
||||
b.Property<TimeOnly>("ShowStartsAt")
|
||||
.HasColumnType("time without time zone");
|
||||
|
||||
b.Property<string>("ShowStreamUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("SubcategoryTemplatesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -899,6 +589,19 @@ namespace Backend.Migrations
|
||||
b.Property<DateOnly>("VotingStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateTimeOffset?>("WinnersPublishedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("WinnersPublishedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -908,84 +611,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Seasons");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CurrentPhase = "Community Voting",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = true,
|
||||
Name = "VTuber Star Awards 2026",
|
||||
NominationEndsAt = new DateOnly(2026, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2026, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2026, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2026, 7, 1),
|
||||
ShowDate = new DateOnly(2026, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2026, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2026, 6, 1),
|
||||
Year = 2026
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2025",
|
||||
NominationEndsAt = new DateOnly(2025, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2025, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2025, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2025, 7, 1),
|
||||
ShowDate = new DateOnly(2025, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2025, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2025, 6, 1),
|
||||
Year = 2025
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2024",
|
||||
NominationEndsAt = new DateOnly(2024, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2024, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2024, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2024, 7, 1),
|
||||
ShowDate = new DateOnly(2024, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://youtube.com/c/Jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2024, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2024, 6, 1),
|
||||
Year = 2024
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2023",
|
||||
NominationEndsAt = new DateOnly(2023, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2023, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2023, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2023, 7, 1),
|
||||
ShowDate = new DateOnly(2023, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2023, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2023, 6, 1),
|
||||
Year = 2023
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ShowactApplication", b =>
|
||||
@@ -1087,6 +712,14 @@ namespace Backend.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("AwardsSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("AwardsSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("ClipAdminMenuVisible")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1274,6 +907,80 @@ namespace Backend.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(true);
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<string>("StreamBannerEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerLockedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<bool>("StreamBannerUseCompletedContent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingReviewNotes")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<bool>("TwitchAuthManagedByDatabase")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1297,6 +1004,11 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("character varying(300)");
|
||||
|
||||
b.Property<string>("ViewerStatsProviderBaseUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1306,58 +1018,6 @@ namespace Backend.Migrations
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("SiteSettings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
ClipAdminMenuVisible = true,
|
||||
ClipReviewEnabled = true,
|
||||
ClipSubmissionDisabledMessage = "Clip-Einreichungen sind aktuell geschlossen.",
|
||||
ClipSubmissionsEnabled = false,
|
||||
ContactContent = "Kontakt zum Award-Team\nDu hast Fragen zur Nominierung, zum Voting, zu Clips oder zur Show? Schreib dem Team ueber die hinterlegte Kontaktseite.\n\nDatenschutzfragen\nFuer Datenschutzanfragen nutze bitte die Datenschutz-E-Mail aus diesem Footer.\n\nCommunity & Kooperationen\nSocial Links und Partneranfragen werden vom Admin-Team gepflegt und koordiniert.",
|
||||
ContactUrl = "https://vtuber-star-awards.de/kontakt",
|
||||
DemoLoginDisplayName = "Jayuhime Admin",
|
||||
DemoLoginEmail = "",
|
||||
DemoLoginEnabled = false,
|
||||
DemoLoginManagedByDatabase = false,
|
||||
DemoLoginPasswordHash = "",
|
||||
DemoLoginPasswordSalt = "",
|
||||
DemoLoginTwitchUserId = "jayuhime_admin",
|
||||
FaqJson = "[{\"question\":\"Wer darf nominiert werden?\",\"answer\":\"Jede:r aktive deutschsprachige VTuber kann nominiert werden \\u2014 unabh\\u00E4ngig von Follower-Zahl oder Plattform. Die Community schl\\u00E4gt in der Nominierungsphase ihre Favorit:innen vor.\"},{\"question\":\"Wie funktioniert das Voting?\",\"answer\":\"Du meldest dich ausschlie\\u00DFlich mit deinem Twitch-Account an \\u2014 nur so kannst du teilnehmen. Das h\\u00E4lt das Voting fair und bot-frei. Danach vergibst du pro Kategorie eine Stimme, \\u00E4nderbar bis zum Ende der Phase.\"},{\"question\":\"Was kostet die Teilnahme?\",\"answer\":\"Gar nichts. Nominieren, voten und die Show schauen ist komplett kostenlos \\u2014 der VTuber Star Award ist ein Community-Event von Fans f\\u00FCr Fans.\"},{\"question\":\"Wann und wo findet die Award-Show statt?\",\"answer\":\"Die gro\\u00DFe Live-Show wird von Jayuhime gehostet und auf Twitch \\u0026 YouTube gestreamt. Den genauen Termin findest du im Countdown oben \\u2014 sei live dabei, wenn die Stars gek\\u00FCrt werden!\"},{\"question\":\"Ich wurde nominiert \\u2014 was nun?\",\"answer\":\"Gl\\u00FCckwunsch! Du erh\\u00E4ltst eine Benachrichtigung mit allen Infos. Teile deine Nominierung gern mit deiner Community und ruf zum Voten auf \\u2014 jede Stimme z\\u00E4hlt.\"}]",
|
||||
HostDisplayName = "Jayuhime",
|
||||
HostTagline = "VTuber & Award Host",
|
||||
ImprintContent = "Anbieter\nVTuber Star Awards, vertreten durch Jayuhime.\n\nKontakt\nNutze fuer organisatorische Fragen bitte die Kontaktseite oder die hinterlegte Kontaktadresse.\n\nHinweis\nDieses Impressum ist ein redaktioneller Platzhalter und sollte vor dem Livegang mit den tatsaechlichen Anbieterangaben ersetzt werden.",
|
||||
ImprintUrl = "https://vtuber-star-awards.de/impressum",
|
||||
MaintenanceMessage = "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.",
|
||||
MaintenanceModeEnabled = false,
|
||||
MaintenanceTitle = "Sternenpause",
|
||||
NewsletterUrl = "https://vtuber-star-awards.de/newsletter",
|
||||
NominationLinkBlacklistJson = "[{\"Url\":\"https://kick.com/\"},{\"Url\":\"https://www.twitch.tv/\"},{\"Url\":\"https://www.youtube.com/\"}]",
|
||||
PrivacyEmail = "datenschutz@vtuber-star-awards.de",
|
||||
PrivacyPolicyContent = "Verantwortliche:r\nVTuber Star Awards, vertreten durch Jayuhime. Kontakt: datenschutz@vtuber-star-awards.de\n\nWelche Daten wir verarbeiten\nBei Teilnahme (Voting, Nominierung, Clip-Einreichung) verarbeiten wir ausschließlich deine Twitch-User-ID sowie den Zeitstempel deiner Aktion.\nFür Show-Erinnerungen speichern wir optional deine E-Mail-Adresse.\n\nRechtsgrundlage\nVerarbeitung auf Basis von Art. 6 Abs. 1 lit. b DSGVO. Für optionale Erinnerungen gilt Art. 6 Abs. 1 lit. a DSGVO.\n\nZweck der Verarbeitung\nDurchführung des VTuber Star Awards, Sicherstellung fairer Abstimmung, Spam-Prävention sowie Admin-Review von Einreichungen.\n\nLöschfristen\nAlle Teilnahmedaten werden spätestens 6 Monate nach der Award-Show automatisch gelöscht. E-Mail-Adressen werden nach der Show entfernt.\n\nDeine Rechte\nDu hast das Recht auf Auskunft, Löschung, Berichtigung, Widerspruch und Beschwerde bei der zuständigen Aufsichtsbehörde.\n\nWeitergabe an Dritte\nKeine Weitergabe zu Werbezwecken. Technische Dienstleister verarbeiten Daten ausschließlich im Rahmen der Auftragsverarbeitung.",
|
||||
PrivacyPolicyUpdatedAt = new DateTimeOffset(new DateTime(2026, 6, 23, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
PrivacyPolicyUpdatedBy = "seed",
|
||||
RiskRulesJson = "[{\"key\":\"resubmitted_ballot\",\"label\":\"Ballot erneut gespeichert\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User sein Voting erneut speichert.\"},{\"key\":\"rapid_vote_updates\",\"label\":\"Voting-Burst\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr schnell mehrere Voting-Aenderungen ausloest.\"},{\"key\":\"resubmitted_nomination\",\"label\":\"Nominierung erneut eingereicht\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User in derselben Kategorie erneut nominiert.\"},{\"key\":\"rapid_nomination_burst\",\"label\":\"Nominierungs-Burst\",\"enabled\":true,\"threshold\":10,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Nominierungen in kurzer Zeit sendet.\"},{\"key\":\"duplicate_clip_submission\",\"label\":\"Doppelter Clip\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn ein User denselben Clip erneut einreicht.\"},{\"key\":\"rapid_clip_burst\",\"label\":\"Clip-Burst\",\"enabled\":true,\"threshold\":5,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Clips in kurzer Zeit sendet.\"},{\"key\":\"rapid_login_ip\",\"label\":\"Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere neue Sessions von derselben IP entstehen.\"},{\"key\":\"rapid_demo_login_ip\",\"label\":\"Demo-Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere Demo-Admin-Sessions von derselben IP entstehen.\"}]",
|
||||
SessionIdleTimeoutHours = 3,
|
||||
ShareDiscordUrl = "",
|
||||
ShareXUrl = "",
|
||||
ShowactApplicationDisabledMessage = "Showact-Bewerbungen sind aktuell geschlossen.",
|
||||
ShowactApplicationsEnabled = false,
|
||||
ShowactFormSchemaJson = "[]",
|
||||
ShowactsContent = "Informationen zu Showact-Bewerbungen, Ablauf und Kontakt fuer die Award-Show.",
|
||||
ShowactsUrl = "https://vtuber-star-awards.de/showacts",
|
||||
SocialLinksJson = "[{\"label\":\"Twitch\",\"platform\":\"twitch\",\"url\":\"https://twitch.tv/jayuhime\",\"icon\":\"twitch\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"YouTube\",\"platform\":\"youtube\",\"url\":\"https://youtube.com/c/Jayuhime\",\"icon\":\"youtube\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"X\",\"platform\":\"x\",\"url\":\"https://x.com/jayuhime\",\"icon\":\"x\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Instagram\",\"platform\":\"instagram\",\"url\":\"https://instagram.com/jayuhime\",\"icon\":\"instagram\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Discord\",\"platform\":\"discord\",\"url\":\"https://discord.gg/jayuhime\",\"icon\":\"discord\",\"showOnHost\":true,\"showOnCommunity\":true}]",
|
||||
SponsorsContent = "Sponsoren & Partner\nHier koennen Sponsor:innen, Medienpartner, Community-Partner und Supporter des VTuber Star Awards vorgestellt werden.\n\nPartner werden im Rahmen der Show und auf den oeffentlichen Kontaktflaechen genannt, sobald sie final bestaetigt sind.",
|
||||
SponsorsUrl = "https://vtuber-star-awards.de/partner",
|
||||
SponsorsVisible = true,
|
||||
TwitchAuthManagedByDatabase = false,
|
||||
TwitchClientId = "",
|
||||
TwitchClientSecret = "",
|
||||
TwitchRedirectUri = "",
|
||||
TwitchScope = "",
|
||||
WorkflowRulesJson = "[{\"key\":\"max_finalists_per_category\",\"label\":\"Finale Kandidat:innen pro Kategorie\",\"enabled\":true,\"limit\":4,\"mode\":\"block\",\"description\":\"Begrenzt, wie viele finale Kandidat:innen in einer Kategorie vorbereitet werden.\"},{\"key\":\"max_candidate_appearances\",\"label\":\"Kandidaturen pro Person\",\"enabled\":true,\"limit\":2,\"mode\":\"warn\",\"description\":\"Warnt oder blockiert, wenn dieselbe Person in zu vielen Kategorien final auftaucht.\"},{\"key\":\"max_winner_placements\",\"label\":\"Gewinnerpl\\u00E4tze pro Person\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn dieselbe Person mehrfach als Gewinner:in gesetzt wird.\"},{\"key\":\"winner_requires_clip\",\"label\":\"Gewinner braucht Clip-Link\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn ein Gewinner ohne gepflegten YouTube-/Twitch-Clip gesetzt wird.\"}]"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Sponsor", b =>
|
||||
@@ -1656,24 +1316,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("VoteBallots");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_1"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 5, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_2"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteEntry", b =>
|
||||
@@ -1702,36 +1344,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.ToTable("VoteEntries");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
BallotId = 1,
|
||||
CandidateId = 1,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
BallotId = 1,
|
||||
CandidateId = 4,
|
||||
CategoryId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
BallotId = 2,
|
||||
CandidateId = 2,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
BallotId = 2,
|
||||
CandidateId = 6,
|
||||
CategoryId = 3
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.AwardResult", b =>
|
||||
@@ -1804,6 +1416,12 @@ namespace Backend.Migrations
|
||||
.HasForeignKey("CandidateId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.HasOne("Backend.Domain.Season", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Candidate");
|
||||
});
|
||||
|
||||
@@ -0,0 +1,795 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class InitialCleanBaseline : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "AdminAuditEntries",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
AdminTwitchUserId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
ActionType = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
EntityType = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
EntityId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Summary = table.Column<string>(type: "character varying(240)", maxLength: 240, nullable: false),
|
||||
MetadataJson = table.Column<string>(type: "text", nullable: false),
|
||||
CreatedFromIp = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
UserAgent = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_AdminAuditEntries", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Seasons",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Year = table.Column<int>(type: "integer", nullable: false),
|
||||
Name = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
IsDemo = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
|
||||
IsCurrent = table.Column<bool>(type: "boolean", nullable: false),
|
||||
IsCommunityOnly = table.Column<bool>(type: "boolean", nullable: false),
|
||||
CurrentPhase = table.Column<string>(type: "character varying(60)", maxLength: 60, nullable: false),
|
||||
NominationStartsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
NominationEndsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
VotingStartsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
VotingEndsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
ReviewStartsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
ReviewEndsAt = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
ShowDate = table.Column<DateOnly>(type: "date", nullable: false),
|
||||
ShowStartsAt = table.Column<TimeOnly>(type: "time without time zone", nullable: false),
|
||||
WinnersPublishedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
WinnersPublishedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
SubcategoryTemplatesJson = table.Column<string>(type: "text", nullable: false, defaultValue: "[]"),
|
||||
WorkflowRulesJson = table.Column<string>(type: "text", nullable: false, defaultValue: "[]")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Seasons", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "SiteSettings",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
HostDisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
HostTagline = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
NewsletterUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
ShareXUrl = table.Column<string>(type: "text", nullable: false),
|
||||
ShareDiscordUrl = table.Column<string>(type: "text", nullable: false),
|
||||
PrivacyEmail = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
PrivacyPolicyContent = table.Column<string>(type: "text", nullable: false),
|
||||
PrivacyPolicyUpdatedBy = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
PrivacyPolicyUpdatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
ImprintUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
ImprintContent = table.Column<string>(type: "text", nullable: false),
|
||||
ContactUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
ContactContent = table.Column<string>(type: "text", nullable: false),
|
||||
SponsorsUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
SponsorsContent = table.Column<string>(type: "text", nullable: false),
|
||||
ShowactsUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
ShowactsContent = table.Column<string>(type: "text", nullable: false, defaultValue: ""),
|
||||
StreamBannerEyebrow = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
StreamBannerTitle = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
StreamBannerText = table.Column<string>(type: "text", nullable: false),
|
||||
StreamBannerLiveButtonLabel = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
StreamBannerLiveButtonUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
StreamBannerLockedButtonLabel = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
StreamBannerUseCompletedContent = table.Column<bool>(type: "boolean", nullable: false),
|
||||
StreamBannerCompletedEyebrow = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
StreamBannerCompletedTitle = table.Column<string>(type: "character varying(160)", maxLength: 160, nullable: false),
|
||||
StreamBannerCompletedText = table.Column<string>(type: "text", nullable: false),
|
||||
StreamBannerCompletedButtonLabel = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
StreamBannerCompletedButtonUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
AwardsSectionTitle = table.Column<string>(type: "text", nullable: false),
|
||||
AwardsSectionDescription = table.Column<string>(type: "text", nullable: false),
|
||||
SubcategoriesSectionTitle = table.Column<string>(type: "text", nullable: false),
|
||||
SubcategoriesSectionDescription = table.Column<string>(type: "text", nullable: false),
|
||||
SocialLinksJson = table.Column<string>(type: "text", nullable: false),
|
||||
FaqJson = table.Column<string>(type: "text", nullable: false),
|
||||
RiskRulesJson = table.Column<string>(type: "text", nullable: false),
|
||||
WorkflowRulesJson = table.Column<string>(type: "text", nullable: false, defaultValue: "[]"),
|
||||
TrackingRulesJson = table.Column<string>(type: "text", nullable: false, defaultValue: "[]"),
|
||||
ViewerStatsProviderBaseUrl = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
TrackingReviewNotes = table.Column<string>(type: "text", nullable: false),
|
||||
NominationLinkBlacklistJson = table.Column<string>(type: "text", nullable: false, defaultValue: "[]"),
|
||||
ClipSubmissionsEnabled = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
|
||||
ClipReviewEnabled = table.Column<bool>(type: "boolean", nullable: false, defaultValue: true),
|
||||
ClipAdminMenuVisible = table.Column<bool>(type: "boolean", nullable: false),
|
||||
ClipSubmissionDisabledMessage = table.Column<string>(type: "character varying(240)", maxLength: 240, nullable: false),
|
||||
ShowactApplicationsEnabled = table.Column<bool>(type: "boolean", nullable: false, defaultValue: false),
|
||||
ShowactApplicationStartsAt = table.Column<DateOnly>(type: "date", nullable: true),
|
||||
ShowactApplicationEndsAt = table.Column<DateOnly>(type: "date", nullable: true),
|
||||
ShowactApplicationDisabledMessage = table.Column<string>(type: "character varying(240)", maxLength: 240, nullable: false),
|
||||
ShowactFormSchemaJson = table.Column<string>(type: "text", nullable: false),
|
||||
SponsorsVisible = table.Column<bool>(type: "boolean", nullable: false, defaultValue: true),
|
||||
DemoLoginManagedByDatabase = table.Column<bool>(type: "boolean", nullable: false),
|
||||
DemoLoginEnabled = table.Column<bool>(type: "boolean", nullable: false),
|
||||
DemoLoginEmail = table.Column<string>(type: "character varying(180)", maxLength: 180, nullable: false),
|
||||
DemoLoginPasswordHash = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
DemoLoginPasswordSalt = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
DemoLoginTwitchUserId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
DemoLoginDisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
TwitchAuthManagedByDatabase = table.Column<bool>(type: "boolean", nullable: false),
|
||||
TwitchClientId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
TwitchClientSecret = table.Column<string>(type: "character varying(180)", maxLength: 180, nullable: false),
|
||||
TwitchRedirectUri = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
TwitchScope = table.Column<string>(type: "character varying(300)", maxLength: 300, nullable: false),
|
||||
SessionIdleTimeoutHours = table.Column<int>(type: "integer", nullable: false, defaultValue: 3),
|
||||
MaintenanceModeEnabled = table.Column<bool>(type: "boolean", nullable: false),
|
||||
MaintenanceTitle = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
MaintenanceMessage = table.Column<string>(type: "character varying(600)", maxLength: 600, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_SiteSettings", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "StreamerIdentities",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Platform = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
Login = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
NormalizedKey = table.Column<string>(type: "character varying(180)", maxLength: 180, nullable: false),
|
||||
DisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
ProfileUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
LastResolvedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_StreamerIdentities", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TeamMembers",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Login = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
DisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Role = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
PasswordHash = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
PasswordSalt = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
BoundTwitchUserId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
BoundTwitchDisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
MustChangePassword = table.Column<bool>(type: "boolean", nullable: false),
|
||||
IsActive = table.Column<bool>(type: "boolean", nullable: false),
|
||||
CreatedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
UpdatedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
UpdatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
LastLoginAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
TwitchBoundAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
PasswordResetAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TeamMembers", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "TeamRolePermissions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
Role = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
PermissionsJson = table.Column<string>(type: "text", nullable: false),
|
||||
UpdatedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
UpdatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_TeamRolePermissions", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "UserSessions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "uuid", nullable: false),
|
||||
SessionToken = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
TwitchUserId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
DisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Role = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
CreatedFromIp = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
UserAgent = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
LastSeenAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
IsActive = table.Column<bool>(type: "boolean", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_UserSessions", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Categories",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
GroupName = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
Name = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Slug = table.Column<string>(type: "text", nullable: false),
|
||||
Description = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
SortOrder = table.Column<int>(type: "integer", nullable: false),
|
||||
MaxNomineesPerUser = table.Column<int>(type: "integer", nullable: false),
|
||||
ViewerRangeMin = table.Column<int>(type: "integer", nullable: true),
|
||||
ViewerRangeMax = table.Column<int>(type: "integer", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Categories", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Categories_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "RiskFlags",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: true),
|
||||
TwitchUserId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
Source = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
Type = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
Severity = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
|
||||
Status = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
|
||||
Summary = table.Column<string>(type: "character varying(240)", maxLength: 240, nullable: false),
|
||||
CreatedFromIp = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
UserAgent = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
MetadataJson = table.Column<string>(type: "text", nullable: false),
|
||||
ReviewNote = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
ReviewedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
ReviewedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_RiskFlags", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_RiskFlags_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ShowactApplications",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
ArtistName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
ContactEmail = table.Column<string>(type: "character varying(180)", maxLength: 180, nullable: false),
|
||||
ContactDiscord = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
PlatformUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
||||
PerformanceType = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
Description = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: false),
|
||||
TechnicalNotes = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: false),
|
||||
ReferenceUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
||||
FieldResponsesJson = table.Column<string>(type: "text", nullable: false),
|
||||
Status = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
|
||||
ReviewNote = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
ReviewedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
CreatedFromIp = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
UserAgent = table.Column<string>(type: "character varying(400)", maxLength: 400, nullable: false),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
ReviewedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ShowactApplications", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_ShowactApplications_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Sponsors",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
Name = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
WebsiteUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
||||
LogoUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
||||
Description = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
||||
Tier = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
SortOrder = table.Column<int>(type: "integer", nullable: false),
|
||||
IsVisible = table.Column<bool>(type: "boolean", nullable: false),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
UpdatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Sponsors", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Sponsors_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VoteBallots",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
SubmittedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Status = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false),
|
||||
SubmittedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VoteBallots", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteBallots_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Candidates",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: false),
|
||||
StreamerIdentityId = table.Column<int>(type: "integer", nullable: true),
|
||||
DisplayName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
ChannelSlug = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Platform = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
NominationTally = table.Column<int>(type: "integer", nullable: false, defaultValue: 0),
|
||||
AcceptanceStatus = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false, defaultValue: "open"),
|
||||
AcceptanceNote = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
ClipCompilationUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
ClipCompilationTitle = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true),
|
||||
ClipCompilationPlatform = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
|
||||
ClipEmbedStatus = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false, defaultValue: "unchecked")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Candidates", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Candidates_Categories_CategoryId",
|
||||
column: x => x.CategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Candidates_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Candidates_StreamerIdentities_StreamerIdentityId",
|
||||
column: x => x.StreamerIdentityId,
|
||||
principalTable: "StreamerIdentities",
|
||||
principalColumn: "Id");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ClipSubmissions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: true),
|
||||
CandidateId = table.Column<int>(type: "integer", nullable: true),
|
||||
SubmittedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
ClipUrl = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: false),
|
||||
Title = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: false),
|
||||
Creator = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
Platform = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
|
||||
Status = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
|
||||
ReviewNote = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
ReviewedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
CreatedFromIp = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
ReviewedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ClipSubmissions", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_ClipSubmissions_Candidates_CandidateId",
|
||||
column: x => x.CandidateId,
|
||||
principalTable: "Candidates",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.SetNull);
|
||||
table.ForeignKey(
|
||||
name: "FK_ClipSubmissions_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Nominations",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: true),
|
||||
CategoryGroupName = table.Column<string>(type: "character varying(80)", maxLength: 80, nullable: false, defaultValue: ""),
|
||||
SubmittedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false),
|
||||
CandidateId = table.Column<int>(type: "integer", nullable: true),
|
||||
StreamerIdentityId = table.Column<int>(type: "integer", nullable: true),
|
||||
SuggestedCategoryId = table.Column<int>(type: "integer", nullable: true),
|
||||
CandidateText = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
StreamUrl = table.Column<string>(type: "character varying(300)", maxLength: 300, nullable: true),
|
||||
ResolvedChannel = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
ResolvedPlatform = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true),
|
||||
AvgViewers = table.Column<int>(type: "integer", nullable: true),
|
||||
HoursStreamed = table.Column<int>(type: "integer", nullable: true),
|
||||
HoursWatched = table.Column<int>(type: "integer", nullable: true),
|
||||
PeakViewers = table.Column<int>(type: "integer", nullable: true),
|
||||
FollowersGained = table.Column<int>(type: "integer", nullable: true),
|
||||
TrackerStatus = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false, defaultValue: "pending"),
|
||||
TrackerCheckedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
TrackingReviewStatus = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: false, defaultValue: "clear"),
|
||||
TrackingFlagsJson = table.Column<string>(type: "text", nullable: false, defaultValue: "[]"),
|
||||
TrackingReviewNote = table.Column<string>(type: "character varying(1000)", maxLength: 1000, nullable: true),
|
||||
TrackingReviewedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
TrackingReviewedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true),
|
||||
Status = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false),
|
||||
ReviewNote = table.Column<string>(type: "character varying(500)", maxLength: 500, nullable: true),
|
||||
ReviewedByTwitchId = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: true),
|
||||
CreatedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: false),
|
||||
ReviewedAt = table.Column<DateTimeOffset>(type: "timestamp with time zone", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Nominations", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_Candidates_CandidateId",
|
||||
column: x => x.CandidateId,
|
||||
principalTable: "Candidates",
|
||||
principalColumn: "Id");
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_Categories_CategoryId",
|
||||
column: x => x.CategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.SetNull);
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_Categories_SuggestedCategoryId",
|
||||
column: x => x.SuggestedCategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.SetNull);
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Nominations_StreamerIdentities_StreamerIdentityId",
|
||||
column: x => x.StreamerIdentityId,
|
||||
principalTable: "StreamerIdentities",
|
||||
principalColumn: "Id");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Results",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
SeasonId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: false),
|
||||
CandidateId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryName = table.Column<string>(type: "character varying(120)", maxLength: 120, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Results", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Results_Candidates_CandidateId",
|
||||
column: x => x.CandidateId,
|
||||
principalTable: "Candidates",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Results_Categories_CategoryId",
|
||||
column: x => x.CategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Results_Seasons_SeasonId",
|
||||
column: x => x.SeasonId,
|
||||
principalTable: "Seasons",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VoteEntries",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<int>(type: "integer", nullable: false)
|
||||
.Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
||||
BallotId = table.Column<int>(type: "integer", nullable: false),
|
||||
CategoryId = table.Column<int>(type: "integer", nullable: false),
|
||||
CandidateId = table.Column<int>(type: "integer", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VoteEntries", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteEntries_Candidates_CandidateId",
|
||||
column: x => x.CandidateId,
|
||||
principalTable: "Candidates",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteEntries_Categories_CategoryId",
|
||||
column: x => x.CategoryId,
|
||||
principalTable: "Categories",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_VoteEntries_VoteBallots_BallotId",
|
||||
column: x => x.BallotId,
|
||||
principalTable: "VoteBallots",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Candidates_CategoryId",
|
||||
table: "Candidates",
|
||||
column: "CategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Candidates_SeasonId",
|
||||
table: "Candidates",
|
||||
column: "SeasonId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Candidates_StreamerIdentityId",
|
||||
table: "Candidates",
|
||||
column: "StreamerIdentityId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Categories_SeasonId_Slug",
|
||||
table: "Categories",
|
||||
columns: new[] { "SeasonId", "Slug" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ClipSubmissions_CandidateId",
|
||||
table: "ClipSubmissions",
|
||||
column: "CandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ClipSubmissions_SeasonId_Status",
|
||||
table: "ClipSubmissions",
|
||||
columns: new[] { "SeasonId", "Status" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_CandidateId",
|
||||
table: "Nominations",
|
||||
column: "CandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_CategoryId",
|
||||
table: "Nominations",
|
||||
column: "CategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId_CategoryGroupName_Status",
|
||||
table: "Nominations",
|
||||
columns: new[] { "SeasonId", "CategoryGroupName", "Status" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId_Status",
|
||||
table: "Nominations",
|
||||
columns: new[] { "SeasonId", "Status" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SeasonId_StreamerIdentityId_CategoryGroupName",
|
||||
table: "Nominations",
|
||||
columns: new[] { "SeasonId", "StreamerIdentityId", "CategoryGroupName" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_StreamerIdentityId",
|
||||
table: "Nominations",
|
||||
column: "StreamerIdentityId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nominations_SuggestedCategoryId",
|
||||
table: "Nominations",
|
||||
column: "SuggestedCategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_CandidateId",
|
||||
table: "Results",
|
||||
column: "CandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_CategoryId",
|
||||
table: "Results",
|
||||
column: "CategoryId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Results_SeasonId_CategoryId",
|
||||
table: "Results",
|
||||
columns: new[] { "SeasonId", "CategoryId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_RiskFlags_SeasonId",
|
||||
table: "RiskFlags",
|
||||
column: "SeasonId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Seasons_Year",
|
||||
table: "Seasons",
|
||||
column: "Year",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ShowactApplications_SeasonId_Status",
|
||||
table: "ShowactApplications",
|
||||
columns: new[] { "SeasonId", "Status" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Sponsors_SeasonId_IsVisible_SortOrder",
|
||||
table: "Sponsors",
|
||||
columns: new[] { "SeasonId", "IsVisible", "SortOrder" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_StreamerIdentities_NormalizedKey",
|
||||
table: "StreamerIdentities",
|
||||
column: "NormalizedKey",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TeamMembers_BoundTwitchUserId",
|
||||
table: "TeamMembers",
|
||||
column: "BoundTwitchUserId",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TeamMembers_Login",
|
||||
table: "TeamMembers",
|
||||
column: "Login",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_TeamRolePermissions_Role",
|
||||
table: "TeamRolePermissions",
|
||||
column: "Role",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_UserSessions_SessionToken",
|
||||
table: "UserSessions",
|
||||
column: "SessionToken",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteBallots_SeasonId_SubmittedByTwitchId",
|
||||
table: "VoteBallots",
|
||||
columns: new[] { "SeasonId", "SubmittedByTwitchId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteEntries_BallotId",
|
||||
table: "VoteEntries",
|
||||
column: "BallotId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteEntries_CandidateId",
|
||||
table: "VoteEntries",
|
||||
column: "CandidateId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VoteEntries_CategoryId",
|
||||
table: "VoteEntries",
|
||||
column: "CategoryId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "AdminAuditEntries");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "ClipSubmissions");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Nominations");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Results");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "RiskFlags");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "ShowactApplications");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "SiteSettings");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Sponsors");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TeamMembers");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "TeamRolePermissions");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "UserSessions");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VoteEntries");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Candidates");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VoteBallots");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Categories");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "StreamerIdentities");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Seasons");
|
||||
}
|
||||
}
|
||||
}
|
||||
+282
-511
@@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260628092717_AddSessionIdleTimeoutSettings")]
|
||||
partial class AddSessionIdleTimeoutSettings
|
||||
[Migration("20260629142744_SeedApplicationDefaults")]
|
||||
partial class SeedApplicationDefaults
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -112,56 +112,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Results");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateId = 8,
|
||||
CategoryId = 5,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateId = 9,
|
||||
CategoryId = 6,
|
||||
CategoryName = "Bestes Live Event",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CandidateId = 10,
|
||||
CategoryId = 7,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CandidateId = 11,
|
||||
CategoryId = 8,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
CandidateId = 12,
|
||||
CategoryId = 9,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
CandidateId = 13,
|
||||
CategoryId = 10,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Candidate", b =>
|
||||
@@ -215,6 +165,11 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int>("NominationTally")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasDefaultValue(0);
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
@@ -223,158 +178,18 @@ namespace Backend.Migrations
|
||||
b.Property<int>("SeasonId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("StreamerIdentityId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("Candidates");
|
||||
b.HasIndex("StreamerIdentityId");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@shiroch",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Shiro Ch.",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura Showcase",
|
||||
Platform = "YouTube",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 3,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 4,
|
||||
ChannelSlug = "@moonrelay",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Moonrelay",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 5,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 6,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 7,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 11,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 8,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura",
|
||||
Platform = "YouTube",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 12,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 9,
|
||||
ChannelSlug = "@starbyte",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Starbyte",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 13,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 10,
|
||||
ChannelSlug = "@tenshivox",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Tenshi Vox",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 4
|
||||
});
|
||||
b.ToTable("Candidates");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
@@ -425,118 +240,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Categories");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Description = "Die groesste Auszeichnung des Jahres.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Description = "Events, Konzerte und 3D-Shows.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 1,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
Description = "Der lustigste oder emotionalste Clip des Jahres.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
Description = "Die aktivste und freundlichste Community.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Beste Community",
|
||||
SeasonId = 1,
|
||||
Slug = "beste-community",
|
||||
SortOrder = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 2,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
Description = "Archivkategorie 2023.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 4,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ClipSubmission", b =>
|
||||
@@ -622,6 +325,9 @@ namespace Backend.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("AvgViewers")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("CandidateId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -629,12 +335,39 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int>("CategoryId")
|
||||
b.Property<string>("CategoryGroupName")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(80)
|
||||
.HasColumnType("character varying(80)")
|
||||
.HasDefaultValue("");
|
||||
|
||||
b.Property<int?>("CategoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTimeOffset>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int?>("FollowersGained")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursStreamed")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursWatched")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("PeakViewers")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ResolvedChannel")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("ResolvedPlatform")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("character varying(40)");
|
||||
|
||||
b.Property<string>("ReviewNote")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("character varying(500)");
|
||||
@@ -658,42 +391,68 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("character varying(300)");
|
||||
|
||||
b.Property<int?>("StreamerIdentityId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("SubmittedByTwitchId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int?>("SuggestedCategoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTimeOffset?>("TrackerCheckedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("TrackerStatus")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("character varying(40)")
|
||||
.HasDefaultValue("pending");
|
||||
|
||||
b.Property<string>("TrackingFlagsJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<string>("TrackingReviewNote")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("character varying(1000)");
|
||||
|
||||
b.Property<string>("TrackingReviewStatus")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(30)
|
||||
.HasColumnType("character varying(30)")
|
||||
.HasDefaultValue("clear");
|
||||
|
||||
b.Property<DateTimeOffset?>("TrackingReviewedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("TrackingReviewedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CandidateId");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.HasIndex("StreamerIdentityId");
|
||||
|
||||
b.HasIndex("SuggestedCategoryId");
|
||||
|
||||
b.HasIndex("SeasonId", "Status");
|
||||
|
||||
b.ToTable("Nominations");
|
||||
b.HasIndex("SeasonId", "CategoryGroupName", "Status");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateText = "Hoshimi Miyu",
|
||||
CategoryId = 1,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 13, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_hoshi"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateText = "Kurainu 3D Live",
|
||||
CategoryId = 2,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 14, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_kurainu"
|
||||
});
|
||||
b.HasIndex("SeasonId", "StreamerIdentityId", "CategoryGroupName");
|
||||
|
||||
b.ToTable("Nominations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.RiskFlag", b =>
|
||||
@@ -790,6 +549,11 @@ namespace Backend.Migrations
|
||||
b.Property<bool>("IsCurrent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsDemo")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(false);
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
@@ -813,10 +577,11 @@ namespace Backend.Migrations
|
||||
b.Property<TimeOnly>("ShowStartsAt")
|
||||
.HasColumnType("time without time zone");
|
||||
|
||||
b.Property<string>("ShowStreamUrl")
|
||||
b.Property<string>("SubcategoryTemplatesJson")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<DateOnly>("VotingEndsAt")
|
||||
.HasColumnType("date");
|
||||
@@ -824,6 +589,19 @@ namespace Backend.Migrations
|
||||
b.Property<DateOnly>("VotingStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateTimeOffset?>("WinnersPublishedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("WinnersPublishedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -833,80 +611,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Seasons");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CurrentPhase = "Community Voting",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = true,
|
||||
Name = "VTuber Star Awards 2026",
|
||||
NominationEndsAt = new DateOnly(2026, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2026, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2026, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2026, 7, 1),
|
||||
ShowDate = new DateOnly(2026, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
VotingEndsAt = new DateOnly(2026, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2026, 6, 1),
|
||||
Year = 2026
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2025",
|
||||
NominationEndsAt = new DateOnly(2025, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2025, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2025, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2025, 7, 1),
|
||||
ShowDate = new DateOnly(2025, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
VotingEndsAt = new DateOnly(2025, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2025, 6, 1),
|
||||
Year = 2025
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2024",
|
||||
NominationEndsAt = new DateOnly(2024, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2024, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2024, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2024, 7, 1),
|
||||
ShowDate = new DateOnly(2024, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://youtube.com/c/Jayuhime",
|
||||
VotingEndsAt = new DateOnly(2024, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2024, 6, 1),
|
||||
Year = 2024
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2023",
|
||||
NominationEndsAt = new DateOnly(2023, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2023, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2023, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2023, 7, 1),
|
||||
ShowDate = new DateOnly(2023, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
VotingEndsAt = new DateOnly(2023, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2023, 6, 1),
|
||||
Year = 2023
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ShowactApplication", b =>
|
||||
@@ -1008,6 +712,14 @@ namespace Backend.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("AwardsSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("AwardsSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("ClipAdminMenuVisible")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1151,6 +863,12 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(240)
|
||||
.HasColumnType("character varying(240)");
|
||||
|
||||
b.Property<DateOnly?>("ShowactApplicationEndsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly?>("ShowactApplicationStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<bool>("ShowactApplicationsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
@@ -1189,6 +907,80 @@ namespace Backend.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(true);
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<string>("StreamBannerEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerLockedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<bool>("StreamBannerUseCompletedContent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingReviewNotes")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<bool>("TwitchAuthManagedByDatabase")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1212,6 +1004,11 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("character varying(300)");
|
||||
|
||||
b.Property<string>("ViewerStatsProviderBaseUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1221,58 +1018,6 @@ namespace Backend.Migrations
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("SiteSettings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
ClipAdminMenuVisible = true,
|
||||
ClipReviewEnabled = true,
|
||||
ClipSubmissionDisabledMessage = "Clip-Einreichungen sind aktuell geschlossen.",
|
||||
ClipSubmissionsEnabled = false,
|
||||
ContactContent = "Kontakt zum Award-Team\nDu hast Fragen zur Nominierung, zum Voting, zu Clips oder zur Show? Schreib dem Team ueber die hinterlegte Kontaktseite.\n\nDatenschutzfragen\nFuer Datenschutzanfragen nutze bitte die Datenschutz-E-Mail aus diesem Footer.\n\nCommunity & Kooperationen\nSocial Links und Partneranfragen werden vom Admin-Team gepflegt und koordiniert.",
|
||||
ContactUrl = "https://vtuber-star-awards.de/kontakt",
|
||||
DemoLoginDisplayName = "Jayuhime Admin",
|
||||
DemoLoginEmail = "",
|
||||
DemoLoginEnabled = false,
|
||||
DemoLoginManagedByDatabase = false,
|
||||
DemoLoginPasswordHash = "",
|
||||
DemoLoginPasswordSalt = "",
|
||||
DemoLoginTwitchUserId = "jayuhime_admin",
|
||||
FaqJson = "[{\"question\":\"Wer darf nominiert werden?\",\"answer\":\"Jede:r aktive deutschsprachige VTuber kann nominiert werden \\u2014 unabh\\u00E4ngig von Follower-Zahl oder Plattform. Die Community schl\\u00E4gt in der Nominierungsphase ihre Favorit:innen vor.\"},{\"question\":\"Wie funktioniert das Voting?\",\"answer\":\"Du meldest dich ausschlie\\u00DFlich mit deinem Twitch-Account an \\u2014 nur so kannst du teilnehmen. Das h\\u00E4lt das Voting fair und bot-frei. Danach vergibst du pro Kategorie eine Stimme, \\u00E4nderbar bis zum Ende der Phase.\"},{\"question\":\"Was kostet die Teilnahme?\",\"answer\":\"Gar nichts. Nominieren, voten und die Show schauen ist komplett kostenlos \\u2014 der VTuber Star Award ist ein Community-Event von Fans f\\u00FCr Fans.\"},{\"question\":\"Wann und wo findet die Award-Show statt?\",\"answer\":\"Die gro\\u00DFe Live-Show wird von Jayuhime gehostet und auf Twitch \\u0026 YouTube gestreamt. Den genauen Termin findest du im Countdown oben \\u2014 sei live dabei, wenn die Stars gek\\u00FCrt werden!\"},{\"question\":\"Ich wurde nominiert \\u2014 was nun?\",\"answer\":\"Gl\\u00FCckwunsch! Du erh\\u00E4ltst eine Benachrichtigung mit allen Infos. Teile deine Nominierung gern mit deiner Community und ruf zum Voten auf \\u2014 jede Stimme z\\u00E4hlt.\"}]",
|
||||
HostDisplayName = "Jayuhime",
|
||||
HostTagline = "VTuber & Award Host",
|
||||
ImprintContent = "Anbieter\nVTuber Star Awards, vertreten durch Jayuhime.\n\nKontakt\nNutze fuer organisatorische Fragen bitte die Kontaktseite oder die hinterlegte Kontaktadresse.\n\nHinweis\nDieses Impressum ist ein redaktioneller Platzhalter und sollte vor dem Livegang mit den tatsaechlichen Anbieterangaben ersetzt werden.",
|
||||
ImprintUrl = "https://vtuber-star-awards.de/impressum",
|
||||
MaintenanceMessage = "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.",
|
||||
MaintenanceModeEnabled = false,
|
||||
MaintenanceTitle = "Sternenpause",
|
||||
NewsletterUrl = "https://vtuber-star-awards.de/newsletter",
|
||||
NominationLinkBlacklistJson = "[{\"Url\":\"https://kick.com/\"},{\"Url\":\"https://www.twitch.tv/\"},{\"Url\":\"https://www.youtube.com/\"}]",
|
||||
PrivacyEmail = "datenschutz@vtuber-star-awards.de",
|
||||
PrivacyPolicyContent = "Verantwortliche:r\nVTuber Star Awards, vertreten durch Jayuhime. Kontakt: datenschutz@vtuber-star-awards.de\n\nWelche Daten wir verarbeiten\nBei Teilnahme (Voting, Nominierung, Clip-Einreichung) verarbeiten wir ausschließlich deine Twitch-User-ID sowie den Zeitstempel deiner Aktion.\nFür Show-Erinnerungen speichern wir optional deine E-Mail-Adresse.\n\nRechtsgrundlage\nVerarbeitung auf Basis von Art. 6 Abs. 1 lit. b DSGVO. Für optionale Erinnerungen gilt Art. 6 Abs. 1 lit. a DSGVO.\n\nZweck der Verarbeitung\nDurchführung des VTuber Star Awards, Sicherstellung fairer Abstimmung, Spam-Prävention sowie Admin-Review von Einreichungen.\n\nLöschfristen\nAlle Teilnahmedaten werden spätestens 6 Monate nach der Award-Show automatisch gelöscht. E-Mail-Adressen werden nach der Show entfernt.\n\nDeine Rechte\nDu hast das Recht auf Auskunft, Löschung, Berichtigung, Widerspruch und Beschwerde bei der zuständigen Aufsichtsbehörde.\n\nWeitergabe an Dritte\nKeine Weitergabe zu Werbezwecken. Technische Dienstleister verarbeiten Daten ausschließlich im Rahmen der Auftragsverarbeitung.",
|
||||
PrivacyPolicyUpdatedAt = new DateTimeOffset(new DateTime(2026, 6, 23, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
PrivacyPolicyUpdatedBy = "seed",
|
||||
RiskRulesJson = "[{\"key\":\"resubmitted_ballot\",\"label\":\"Ballot erneut gespeichert\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User sein Voting erneut speichert.\"},{\"key\":\"rapid_vote_updates\",\"label\":\"Voting-Burst\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr schnell mehrere Voting-Aenderungen ausloest.\"},{\"key\":\"resubmitted_nomination\",\"label\":\"Nominierung erneut eingereicht\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User in derselben Kategorie erneut nominiert.\"},{\"key\":\"rapid_nomination_burst\",\"label\":\"Nominierungs-Burst\",\"enabled\":true,\"threshold\":10,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Nominierungen in kurzer Zeit sendet.\"},{\"key\":\"duplicate_clip_submission\",\"label\":\"Doppelter Clip\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn ein User denselben Clip erneut einreicht.\"},{\"key\":\"rapid_clip_burst\",\"label\":\"Clip-Burst\",\"enabled\":true,\"threshold\":5,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Clips in kurzer Zeit sendet.\"},{\"key\":\"rapid_login_ip\",\"label\":\"Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere neue Sessions von derselben IP entstehen.\"},{\"key\":\"rapid_demo_login_ip\",\"label\":\"Demo-Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere Demo-Admin-Sessions von derselben IP entstehen.\"}]",
|
||||
SessionIdleTimeoutHours = 3,
|
||||
ShareDiscordUrl = "",
|
||||
ShareXUrl = "",
|
||||
ShowactApplicationDisabledMessage = "Showact-Bewerbungen sind aktuell geschlossen.",
|
||||
ShowactApplicationsEnabled = false,
|
||||
ShowactFormSchemaJson = "[]",
|
||||
ShowactsContent = "Informationen zu Showact-Bewerbungen, Ablauf und Kontakt fuer die Award-Show.",
|
||||
ShowactsUrl = "https://vtuber-star-awards.de/showacts",
|
||||
SocialLinksJson = "[{\"label\":\"Twitch\",\"platform\":\"twitch\",\"url\":\"https://twitch.tv/jayuhime\",\"icon\":\"twitch\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"YouTube\",\"platform\":\"youtube\",\"url\":\"https://youtube.com/c/Jayuhime\",\"icon\":\"youtube\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"X\",\"platform\":\"x\",\"url\":\"https://x.com/jayuhime\",\"icon\":\"x\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Instagram\",\"platform\":\"instagram\",\"url\":\"https://instagram.com/jayuhime\",\"icon\":\"instagram\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Discord\",\"platform\":\"discord\",\"url\":\"https://discord.gg/jayuhime\",\"icon\":\"discord\",\"showOnHost\":true,\"showOnCommunity\":true}]",
|
||||
SponsorsContent = "Sponsoren & Partner\nHier koennen Sponsor:innen, Medienpartner, Community-Partner und Supporter des VTuber Star Awards vorgestellt werden.\n\nPartner werden im Rahmen der Show und auf den oeffentlichen Kontaktflaechen genannt, sobald sie final bestaetigt sind.",
|
||||
SponsorsUrl = "https://vtuber-star-awards.de/partner",
|
||||
SponsorsVisible = true,
|
||||
TwitchAuthManagedByDatabase = false,
|
||||
TwitchClientId = "",
|
||||
TwitchClientSecret = "",
|
||||
TwitchRedirectUri = "",
|
||||
TwitchScope = "",
|
||||
WorkflowRulesJson = "[{\"key\":\"max_finalists_per_category\",\"label\":\"Finale Kandidat:innen pro Kategorie\",\"enabled\":true,\"limit\":4,\"mode\":\"block\",\"description\":\"Begrenzt, wie viele finale Kandidat:innen in einer Kategorie vorbereitet werden.\"},{\"key\":\"max_candidate_appearances\",\"label\":\"Kandidaturen pro Person\",\"enabled\":true,\"limit\":2,\"mode\":\"warn\",\"description\":\"Warnt oder blockiert, wenn dieselbe Person in zu vielen Kategorien final auftaucht.\"},{\"key\":\"max_winner_placements\",\"label\":\"Gewinnerpl\\u00E4tze pro Person\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn dieselbe Person mehrfach als Gewinner:in gesetzt wird.\"},{\"key\":\"winner_requires_clip\",\"label\":\"Gewinner braucht Clip-Link\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn ein Gewinner ohne gepflegten YouTube-/Twitch-Clip gesetzt wird.\"}]"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Sponsor", b =>
|
||||
@@ -1330,6 +1075,49 @@ namespace Backend.Migrations
|
||||
b.ToTable("Sponsors");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.StreamerIdentity", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("DisplayName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<DateTimeOffset?>("LastResolvedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Login")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("NormalizedKey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(180)
|
||||
.HasColumnType("character varying(180)");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("character varying(40)");
|
||||
|
||||
b.Property<string>("ProfileUrl")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("character varying(500)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("NormalizedKey")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("StreamerIdentities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.TeamMember", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -1528,24 +1316,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("VoteBallots");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_1"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 5, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_2"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteEntry", b =>
|
||||
@@ -1574,36 +1344,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.ToTable("VoteEntries");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
BallotId = 1,
|
||||
CandidateId = 1,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
BallotId = 1,
|
||||
CandidateId = 4,
|
||||
CategoryId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
BallotId = 2,
|
||||
CandidateId = 2,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
BallotId = 2,
|
||||
CandidateId = 6,
|
||||
CategoryId = 3
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.AwardResult", b =>
|
||||
@@ -1647,9 +1387,15 @@ namespace Backend.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.StreamerIdentity", "StreamerIdentity")
|
||||
.WithMany("Candidates")
|
||||
.HasForeignKey("StreamerIdentityId");
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("Season");
|
||||
|
||||
b.Navigation("StreamerIdentity");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
@@ -1670,6 +1416,12 @@ namespace Backend.Migrations
|
||||
.HasForeignKey("CandidateId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.HasOne("Backend.Domain.Season", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Candidate");
|
||||
});
|
||||
|
||||
@@ -1682,8 +1434,7 @@ namespace Backend.Migrations
|
||||
b.HasOne("Backend.Domain.Category", "Category")
|
||||
.WithMany()
|
||||
.HasForeignKey("CategoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.HasOne("Backend.Domain.Season", "Season")
|
||||
.WithMany()
|
||||
@@ -1691,11 +1442,24 @@ namespace Backend.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.StreamerIdentity", "StreamerIdentity")
|
||||
.WithMany("Nominations")
|
||||
.HasForeignKey("StreamerIdentityId");
|
||||
|
||||
b.HasOne("Backend.Domain.Category", "SuggestedCategory")
|
||||
.WithMany()
|
||||
.HasForeignKey("SuggestedCategoryId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.Navigation("Candidate");
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("Season");
|
||||
|
||||
b.Navigation("StreamerIdentity");
|
||||
|
||||
b.Navigation("SuggestedCategory");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.RiskFlag", b =>
|
||||
@@ -1779,6 +1543,13 @@ namespace Backend.Migrations
|
||||
b.Navigation("Results");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.StreamerIdentity", b =>
|
||||
{
|
||||
b.Navigation("Candidates");
|
||||
|
||||
b.Navigation("Nominations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteBallot", b =>
|
||||
{
|
||||
b.Navigation("Entries");
|
||||
@@ -0,0 +1,168 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations;
|
||||
|
||||
public partial class SeedApplicationDefaults : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
INSERT INTO "SiteSettings" (
|
||||
"Id",
|
||||
"HostDisplayName",
|
||||
"HostTagline",
|
||||
"NewsletterUrl",
|
||||
"ShareXUrl",
|
||||
"ShareDiscordUrl",
|
||||
"PrivacyEmail",
|
||||
"PrivacyPolicyContent",
|
||||
"ImprintUrl",
|
||||
"ImprintContent",
|
||||
"ContactUrl",
|
||||
"ContactContent",
|
||||
"SponsorsUrl",
|
||||
"SponsorsContent",
|
||||
"ShowactsUrl",
|
||||
"ShowactsContent",
|
||||
"StreamBannerEyebrow",
|
||||
"StreamBannerTitle",
|
||||
"StreamBannerText",
|
||||
"StreamBannerLiveButtonLabel",
|
||||
"StreamBannerLiveButtonUrl",
|
||||
"StreamBannerLockedButtonLabel",
|
||||
"StreamBannerUseCompletedContent",
|
||||
"StreamBannerCompletedEyebrow",
|
||||
"StreamBannerCompletedTitle",
|
||||
"StreamBannerCompletedText",
|
||||
"StreamBannerCompletedButtonLabel",
|
||||
"StreamBannerCompletedButtonUrl",
|
||||
"AwardsSectionTitle",
|
||||
"AwardsSectionDescription",
|
||||
"SubcategoriesSectionTitle",
|
||||
"SubcategoriesSectionDescription",
|
||||
"SocialLinksJson",
|
||||
"FaqJson",
|
||||
"RiskRulesJson",
|
||||
"WorkflowRulesJson",
|
||||
"TrackingRulesJson",
|
||||
"ViewerStatsProviderBaseUrl",
|
||||
"TrackingReviewNotes",
|
||||
"NominationLinkBlacklistJson",
|
||||
"ClipSubmissionsEnabled",
|
||||
"ClipReviewEnabled",
|
||||
"ClipAdminMenuVisible",
|
||||
"ClipSubmissionDisabledMessage",
|
||||
"ShowactApplicationsEnabled",
|
||||
"ShowactApplicationStartsAt",
|
||||
"ShowactApplicationEndsAt",
|
||||
"ShowactApplicationDisabledMessage",
|
||||
"ShowactFormSchemaJson",
|
||||
"SponsorsVisible",
|
||||
"DemoLoginManagedByDatabase",
|
||||
"DemoLoginEnabled",
|
||||
"DemoLoginEmail",
|
||||
"DemoLoginPasswordHash",
|
||||
"DemoLoginPasswordSalt",
|
||||
"DemoLoginTwitchUserId",
|
||||
"DemoLoginDisplayName",
|
||||
"TwitchAuthManagedByDatabase",
|
||||
"TwitchClientId",
|
||||
"TwitchClientSecret",
|
||||
"TwitchRedirectUri",
|
||||
"TwitchScope",
|
||||
"SessionIdleTimeoutHours",
|
||||
"MaintenanceModeEnabled",
|
||||
"MaintenanceTitle",
|
||||
"MaintenanceMessage"
|
||||
)
|
||||
VALUES (
|
||||
1,
|
||||
'Jayuhime',
|
||||
'VTuber Star Awards',
|
||||
'',
|
||||
'https://x.com/intent/tweet',
|
||||
'https://discord.gg/',
|
||||
'privacy@example.invalid',
|
||||
'Diese lokale Baseline enthaelt nur nicht-geheime Platzhalter. Pflege produktive Datenschutztexte vor dem Go-live im Admin-Panel.',
|
||||
'/impressum',
|
||||
'Impressumsdaten werden vor dem Go-live im Admin-Panel gepflegt.',
|
||||
'/kontakt',
|
||||
'Fragen zu den Awards und Partnerschaften koennen ueber die offiziellen Kontaktkanaele gestellt werden.',
|
||||
'/sponsoren',
|
||||
'Partner und Sponsoren der aktuellen Award-Season.',
|
||||
'/showacts',
|
||||
'Showact-Bewerbungen fuer das Finale werden hier verwaltet.',
|
||||
'Finale live',
|
||||
'Die Award-Show startet im Livestream',
|
||||
'Wenn das Finale freigeschaltet ist, fuehrt dieser Button zum offiziellen Stream. Der Link wird zentral im Landingpage Stream-Banner gepflegt.',
|
||||
'Zum finalen Stream',
|
||||
'https://twitch.tv/jayuhime',
|
||||
'Stream noch nicht freigegeben',
|
||||
TRUE,
|
||||
'Finale abgeschlossen',
|
||||
'Danke fuer diese Award-Nacht',
|
||||
'Die Gewinner:innen bleiben im Archiv sichtbar. Highlights und VODs koennen hier verlinkt werden.',
|
||||
'Highlights ansehen',
|
||||
'',
|
||||
'Award-Kategorien',
|
||||
'Die Kategorien bilden Community-Leistung, Content-Qualitaet und besondere Momente der Season ab.',
|
||||
'Unterkategorien',
|
||||
'Unterkategorien helfen dem Team, Nominierungen sauber zu reviewen und faire Finalfelder zu bauen.',
|
||||
'[{"label":"Twitch","url":"https://twitch.tv/jayuhime"},{"label":"Discord","url":"https://discord.gg/"},{"label":"X","url":"https://x.com/"}]',
|
||||
'[{"question":"Wann startet die naechste Phase?","answer":"Die aktuellen Termine stehen auf der Landingpage und im Admin-Jahresplan."},{"question":"Wie werden Gewinner:innen bestimmt?","answer":"Nominierungen, Review und Voting laufen phasenweise. Das Team prueft Finalfelder vor der Veroeffentlichung."},{"question":"Wo pflege ich den finalen Stream-Link?","answer":"Der Stream-Link wird zentral im Landingpage Stream-Banner gepflegt."}]',
|
||||
'[]',
|
||||
'[]',
|
||||
'[]',
|
||||
'https://twitchtracker.com/api',
|
||||
'Automatische TwitchTracker-Werte dienen als Review-Hilfe. Bei fehlenden oder unvollstaendigen Daten entscheidet das Team manuell.',
|
||||
'[{"pattern":"localhost","reason":"Lokale Testlinks werden im Review blockiert."},{"pattern":"example.com","reason":"Platzhalterlinks sollen nicht als echte Nominierung freigegeben werden."}]',
|
||||
TRUE,
|
||||
TRUE,
|
||||
TRUE,
|
||||
'Clip-Einreichungen sind aktuell geschlossen.',
|
||||
TRUE,
|
||||
DATE '2026-06-01',
|
||||
DATE '2026-08-15',
|
||||
'Showact-Bewerbungen sind aktuell geschlossen.',
|
||||
'[{"key":"performanceLength","label":"Geplante Laenge","type":"text","required":true},{"key":"contentRating","label":"Content-Hinweise","type":"textarea","required":false}]',
|
||||
TRUE,
|
||||
FALSE,
|
||||
FALSE,
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'jayuhime_admin',
|
||||
'Jayuhime Admin',
|
||||
FALSE,
|
||||
'',
|
||||
'',
|
||||
'',
|
||||
'user:read:email',
|
||||
3,
|
||||
FALSE,
|
||||
'Sternenpause',
|
||||
'Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.'
|
||||
)
|
||||
ON CONFLICT ("Id") DO NOTHING;
|
||||
|
||||
SELECT setval(pg_get_serial_sequence('"SiteSettings"', 'Id'), COALESCE((SELECT MAX("Id") FROM "SiteSettings"), 1));
|
||||
"""
|
||||
);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
DELETE FROM "SiteSettings"
|
||||
WHERE "Id" = 1
|
||||
AND "HostDisplayName" = 'Jayuhime'
|
||||
AND "DemoLoginPasswordHash" = ''
|
||||
AND "TwitchClientSecret" = '';
|
||||
"""
|
||||
);
|
||||
}
|
||||
}
|
||||
+287
-510
@@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260628091734_AddCategoryViewerRanges")]
|
||||
partial class AddCategoryViewerRanges
|
||||
[Migration("20260629142749_SeedRealisticDemoScenario")]
|
||||
partial class SeedRealisticDemoScenario
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -112,56 +112,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Results");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateId = 8,
|
||||
CategoryId = 5,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateId = 9,
|
||||
CategoryId = 6,
|
||||
CategoryName = "Bestes Live Event",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CandidateId = 10,
|
||||
CategoryId = 7,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CandidateId = 11,
|
||||
CategoryId = 8,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
CandidateId = 12,
|
||||
CategoryId = 9,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
CandidateId = 13,
|
||||
CategoryId = 10,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Candidate", b =>
|
||||
@@ -215,6 +165,11 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int>("NominationTally")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasDefaultValue(0);
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
@@ -223,158 +178,18 @@ namespace Backend.Migrations
|
||||
b.Property<int>("SeasonId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("StreamerIdentityId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.HasIndex("SeasonId");
|
||||
|
||||
b.ToTable("Candidates");
|
||||
b.HasIndex("StreamerIdentityId");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@shiroch",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Shiro Ch.",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura Showcase",
|
||||
Platform = "YouTube",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 3,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 4,
|
||||
ChannelSlug = "@moonrelay",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Moonrelay",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 5,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 6,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 7,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 11,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 8,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura",
|
||||
Platform = "YouTube",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 12,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 9,
|
||||
ChannelSlug = "@starbyte",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Starbyte",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 13,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 10,
|
||||
ChannelSlug = "@tenshivox",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Tenshi Vox",
|
||||
Platform = "Twitch",
|
||||
SeasonId = 4
|
||||
});
|
||||
b.ToTable("Candidates");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
@@ -425,118 +240,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Categories");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Description = "Die groesste Auszeichnung des Jahres.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Description = "Events, Konzerte und 3D-Shows.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 1,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
Description = "Der lustigste oder emotionalste Clip des Jahres.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
Description = "Die aktivste und freundlichste Community.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Beste Community",
|
||||
SeasonId = 1,
|
||||
Slug = "beste-community",
|
||||
SortOrder = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 2,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
Description = "Archivkategorie 2023.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 4,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ClipSubmission", b =>
|
||||
@@ -622,6 +325,9 @@ namespace Backend.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("AvgViewers")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("CandidateId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -629,12 +335,39 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int>("CategoryId")
|
||||
b.Property<string>("CategoryGroupName")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(80)
|
||||
.HasColumnType("character varying(80)")
|
||||
.HasDefaultValue("");
|
||||
|
||||
b.Property<int?>("CategoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTimeOffset>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int?>("FollowersGained")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursStreamed")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursWatched")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("PeakViewers")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ResolvedChannel")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("ResolvedPlatform")
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("character varying(40)");
|
||||
|
||||
b.Property<string>("ReviewNote")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("character varying(500)");
|
||||
@@ -658,42 +391,68 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("character varying(300)");
|
||||
|
||||
b.Property<int?>("StreamerIdentityId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("SubmittedByTwitchId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<int?>("SuggestedCategoryId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<DateTimeOffset?>("TrackerCheckedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("TrackerStatus")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("character varying(40)")
|
||||
.HasDefaultValue("pending");
|
||||
|
||||
b.Property<string>("TrackingFlagsJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<string>("TrackingReviewNote")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("character varying(1000)");
|
||||
|
||||
b.Property<string>("TrackingReviewStatus")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(30)
|
||||
.HasColumnType("character varying(30)")
|
||||
.HasDefaultValue("clear");
|
||||
|
||||
b.Property<DateTimeOffset?>("TrackingReviewedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("TrackingReviewedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CandidateId");
|
||||
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.HasIndex("StreamerIdentityId");
|
||||
|
||||
b.HasIndex("SuggestedCategoryId");
|
||||
|
||||
b.HasIndex("SeasonId", "Status");
|
||||
|
||||
b.ToTable("Nominations");
|
||||
b.HasIndex("SeasonId", "CategoryGroupName", "Status");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateText = "Hoshimi Miyu",
|
||||
CategoryId = 1,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 13, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_hoshi"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateText = "Kurainu 3D Live",
|
||||
CategoryId = 2,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 14, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_kurainu"
|
||||
});
|
||||
b.HasIndex("SeasonId", "StreamerIdentityId", "CategoryGroupName");
|
||||
|
||||
b.ToTable("Nominations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.RiskFlag", b =>
|
||||
@@ -790,6 +549,11 @@ namespace Backend.Migrations
|
||||
b.Property<bool>("IsCurrent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsDemo")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(false);
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
@@ -813,10 +577,11 @@ namespace Backend.Migrations
|
||||
b.Property<TimeOnly>("ShowStartsAt")
|
||||
.HasColumnType("time without time zone");
|
||||
|
||||
b.Property<string>("ShowStreamUrl")
|
||||
b.Property<string>("SubcategoryTemplatesJson")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<DateOnly>("VotingEndsAt")
|
||||
.HasColumnType("date");
|
||||
@@ -824,6 +589,19 @@ namespace Backend.Migrations
|
||||
b.Property<DateOnly>("VotingStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateTimeOffset?>("WinnersPublishedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("WinnersPublishedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -833,80 +611,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Seasons");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CurrentPhase = "Community Voting",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = true,
|
||||
Name = "VTuber Star Awards 2026",
|
||||
NominationEndsAt = new DateOnly(2026, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2026, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2026, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2026, 7, 1),
|
||||
ShowDate = new DateOnly(2026, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
VotingEndsAt = new DateOnly(2026, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2026, 6, 1),
|
||||
Year = 2026
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2025",
|
||||
NominationEndsAt = new DateOnly(2025, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2025, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2025, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2025, 7, 1),
|
||||
ShowDate = new DateOnly(2025, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
VotingEndsAt = new DateOnly(2025, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2025, 6, 1),
|
||||
Year = 2025
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2024",
|
||||
NominationEndsAt = new DateOnly(2024, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2024, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2024, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2024, 7, 1),
|
||||
ShowDate = new DateOnly(2024, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://youtube.com/c/Jayuhime",
|
||||
VotingEndsAt = new DateOnly(2024, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2024, 6, 1),
|
||||
Year = 2024
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2023",
|
||||
NominationEndsAt = new DateOnly(2023, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2023, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2023, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2023, 7, 1),
|
||||
ShowDate = new DateOnly(2023, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
VotingEndsAt = new DateOnly(2023, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2023, 6, 1),
|
||||
Year = 2023
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ShowactApplication", b =>
|
||||
@@ -1008,6 +712,14 @@ namespace Backend.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("AwardsSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("AwardsSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("ClipAdminMenuVisible")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1133,6 +845,11 @@ namespace Backend.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<int>("SessionIdleTimeoutHours")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer")
|
||||
.HasDefaultValue(3);
|
||||
|
||||
b.Property<string>("ShareDiscordUrl")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
@@ -1146,6 +863,12 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(240)
|
||||
.HasColumnType("character varying(240)");
|
||||
|
||||
b.Property<DateOnly?>("ShowactApplicationEndsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly?>("ShowactApplicationStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<bool>("ShowactApplicationsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
@@ -1184,6 +907,80 @@ namespace Backend.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(true);
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<string>("StreamBannerEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerLockedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<bool>("StreamBannerUseCompletedContent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingReviewNotes")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<bool>("TwitchAuthManagedByDatabase")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1207,6 +1004,11 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("character varying(300)");
|
||||
|
||||
b.Property<string>("ViewerStatsProviderBaseUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1216,57 +1018,6 @@ namespace Backend.Migrations
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("SiteSettings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
ClipAdminMenuVisible = true,
|
||||
ClipReviewEnabled = true,
|
||||
ClipSubmissionDisabledMessage = "Clip-Einreichungen sind aktuell geschlossen.",
|
||||
ClipSubmissionsEnabled = false,
|
||||
ContactContent = "Kontakt zum Award-Team\nDu hast Fragen zur Nominierung, zum Voting, zu Clips oder zur Show? Schreib dem Team ueber die hinterlegte Kontaktseite.\n\nDatenschutzfragen\nFuer Datenschutzanfragen nutze bitte die Datenschutz-E-Mail aus diesem Footer.\n\nCommunity & Kooperationen\nSocial Links und Partneranfragen werden vom Admin-Team gepflegt und koordiniert.",
|
||||
ContactUrl = "https://vtuber-star-awards.de/kontakt",
|
||||
DemoLoginDisplayName = "Jayuhime Admin",
|
||||
DemoLoginEmail = "",
|
||||
DemoLoginEnabled = false,
|
||||
DemoLoginManagedByDatabase = false,
|
||||
DemoLoginPasswordHash = "",
|
||||
DemoLoginPasswordSalt = "",
|
||||
DemoLoginTwitchUserId = "jayuhime_admin",
|
||||
FaqJson = "[{\"question\":\"Wer darf nominiert werden?\",\"answer\":\"Jede:r aktive deutschsprachige VTuber kann nominiert werden \\u2014 unabh\\u00E4ngig von Follower-Zahl oder Plattform. Die Community schl\\u00E4gt in der Nominierungsphase ihre Favorit:innen vor.\"},{\"question\":\"Wie funktioniert das Voting?\",\"answer\":\"Du meldest dich ausschlie\\u00DFlich mit deinem Twitch-Account an \\u2014 nur so kannst du teilnehmen. Das h\\u00E4lt das Voting fair und bot-frei. Danach vergibst du pro Kategorie eine Stimme, \\u00E4nderbar bis zum Ende der Phase.\"},{\"question\":\"Was kostet die Teilnahme?\",\"answer\":\"Gar nichts. Nominieren, voten und die Show schauen ist komplett kostenlos \\u2014 der VTuber Star Award ist ein Community-Event von Fans f\\u00FCr Fans.\"},{\"question\":\"Wann und wo findet die Award-Show statt?\",\"answer\":\"Die gro\\u00DFe Live-Show wird von Jayuhime gehostet und auf Twitch \\u0026 YouTube gestreamt. Den genauen Termin findest du im Countdown oben \\u2014 sei live dabei, wenn die Stars gek\\u00FCrt werden!\"},{\"question\":\"Ich wurde nominiert \\u2014 was nun?\",\"answer\":\"Gl\\u00FCckwunsch! Du erh\\u00E4ltst eine Benachrichtigung mit allen Infos. Teile deine Nominierung gern mit deiner Community und ruf zum Voten auf \\u2014 jede Stimme z\\u00E4hlt.\"}]",
|
||||
HostDisplayName = "Jayuhime",
|
||||
HostTagline = "VTuber & Award Host",
|
||||
ImprintContent = "Anbieter\nVTuber Star Awards, vertreten durch Jayuhime.\n\nKontakt\nNutze fuer organisatorische Fragen bitte die Kontaktseite oder die hinterlegte Kontaktadresse.\n\nHinweis\nDieses Impressum ist ein redaktioneller Platzhalter und sollte vor dem Livegang mit den tatsaechlichen Anbieterangaben ersetzt werden.",
|
||||
ImprintUrl = "https://vtuber-star-awards.de/impressum",
|
||||
MaintenanceMessage = "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.",
|
||||
MaintenanceModeEnabled = false,
|
||||
MaintenanceTitle = "Sternenpause",
|
||||
NewsletterUrl = "https://vtuber-star-awards.de/newsletter",
|
||||
NominationLinkBlacklistJson = "[{\"Url\":\"https://kick.com/\"},{\"Url\":\"https://www.twitch.tv/\"},{\"Url\":\"https://www.youtube.com/\"}]",
|
||||
PrivacyEmail = "datenschutz@vtuber-star-awards.de",
|
||||
PrivacyPolicyContent = "Verantwortliche:r\nVTuber Star Awards, vertreten durch Jayuhime. Kontakt: datenschutz@vtuber-star-awards.de\n\nWelche Daten wir verarbeiten\nBei Teilnahme (Voting, Nominierung, Clip-Einreichung) verarbeiten wir ausschließlich deine Twitch-User-ID sowie den Zeitstempel deiner Aktion.\nFür Show-Erinnerungen speichern wir optional deine E-Mail-Adresse.\n\nRechtsgrundlage\nVerarbeitung auf Basis von Art. 6 Abs. 1 lit. b DSGVO. Für optionale Erinnerungen gilt Art. 6 Abs. 1 lit. a DSGVO.\n\nZweck der Verarbeitung\nDurchführung des VTuber Star Awards, Sicherstellung fairer Abstimmung, Spam-Prävention sowie Admin-Review von Einreichungen.\n\nLöschfristen\nAlle Teilnahmedaten werden spätestens 6 Monate nach der Award-Show automatisch gelöscht. E-Mail-Adressen werden nach der Show entfernt.\n\nDeine Rechte\nDu hast das Recht auf Auskunft, Löschung, Berichtigung, Widerspruch und Beschwerde bei der zuständigen Aufsichtsbehörde.\n\nWeitergabe an Dritte\nKeine Weitergabe zu Werbezwecken. Technische Dienstleister verarbeiten Daten ausschließlich im Rahmen der Auftragsverarbeitung.",
|
||||
PrivacyPolicyUpdatedAt = new DateTimeOffset(new DateTime(2026, 6, 23, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
PrivacyPolicyUpdatedBy = "seed",
|
||||
RiskRulesJson = "[{\"key\":\"resubmitted_ballot\",\"label\":\"Ballot erneut gespeichert\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User sein Voting erneut speichert.\"},{\"key\":\"rapid_vote_updates\",\"label\":\"Voting-Burst\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr schnell mehrere Voting-Aenderungen ausloest.\"},{\"key\":\"resubmitted_nomination\",\"label\":\"Nominierung erneut eingereicht\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User in derselben Kategorie erneut nominiert.\"},{\"key\":\"rapid_nomination_burst\",\"label\":\"Nominierungs-Burst\",\"enabled\":true,\"threshold\":10,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Nominierungen in kurzer Zeit sendet.\"},{\"key\":\"duplicate_clip_submission\",\"label\":\"Doppelter Clip\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn ein User denselben Clip erneut einreicht.\"},{\"key\":\"rapid_clip_burst\",\"label\":\"Clip-Burst\",\"enabled\":true,\"threshold\":5,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Clips in kurzer Zeit sendet.\"},{\"key\":\"rapid_login_ip\",\"label\":\"Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere neue Sessions von derselben IP entstehen.\"},{\"key\":\"rapid_demo_login_ip\",\"label\":\"Demo-Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere Demo-Admin-Sessions von derselben IP entstehen.\"}]",
|
||||
ShareDiscordUrl = "",
|
||||
ShareXUrl = "",
|
||||
ShowactApplicationDisabledMessage = "Showact-Bewerbungen sind aktuell geschlossen.",
|
||||
ShowactApplicationsEnabled = false,
|
||||
ShowactFormSchemaJson = "[]",
|
||||
ShowactsContent = "Informationen zu Showact-Bewerbungen, Ablauf und Kontakt fuer die Award-Show.",
|
||||
ShowactsUrl = "https://vtuber-star-awards.de/showacts",
|
||||
SocialLinksJson = "[{\"label\":\"Twitch\",\"platform\":\"twitch\",\"url\":\"https://twitch.tv/jayuhime\",\"icon\":\"twitch\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"YouTube\",\"platform\":\"youtube\",\"url\":\"https://youtube.com/c/Jayuhime\",\"icon\":\"youtube\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"X\",\"platform\":\"x\",\"url\":\"https://x.com/jayuhime\",\"icon\":\"x\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Instagram\",\"platform\":\"instagram\",\"url\":\"https://instagram.com/jayuhime\",\"icon\":\"instagram\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Discord\",\"platform\":\"discord\",\"url\":\"https://discord.gg/jayuhime\",\"icon\":\"discord\",\"showOnHost\":true,\"showOnCommunity\":true}]",
|
||||
SponsorsContent = "Sponsoren & Partner\nHier koennen Sponsor:innen, Medienpartner, Community-Partner und Supporter des VTuber Star Awards vorgestellt werden.\n\nPartner werden im Rahmen der Show und auf den oeffentlichen Kontaktflaechen genannt, sobald sie final bestaetigt sind.",
|
||||
SponsorsUrl = "https://vtuber-star-awards.de/partner",
|
||||
SponsorsVisible = true,
|
||||
TwitchAuthManagedByDatabase = false,
|
||||
TwitchClientId = "",
|
||||
TwitchClientSecret = "",
|
||||
TwitchRedirectUri = "",
|
||||
TwitchScope = "",
|
||||
WorkflowRulesJson = "[{\"key\":\"max_finalists_per_category\",\"label\":\"Finale Kandidat:innen pro Kategorie\",\"enabled\":true,\"limit\":4,\"mode\":\"block\",\"description\":\"Begrenzt, wie viele finale Kandidat:innen in einer Kategorie vorbereitet werden.\"},{\"key\":\"max_candidate_appearances\",\"label\":\"Kandidaturen pro Person\",\"enabled\":true,\"limit\":2,\"mode\":\"warn\",\"description\":\"Warnt oder blockiert, wenn dieselbe Person in zu vielen Kategorien final auftaucht.\"},{\"key\":\"max_winner_placements\",\"label\":\"Gewinnerpl\\u00E4tze pro Person\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn dieselbe Person mehrfach als Gewinner:in gesetzt wird.\"},{\"key\":\"winner_requires_clip\",\"label\":\"Gewinner braucht Clip-Link\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn ein Gewinner ohne gepflegten YouTube-/Twitch-Clip gesetzt wird.\"}]"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Sponsor", b =>
|
||||
@@ -1324,6 +1075,49 @@ namespace Backend.Migrations
|
||||
b.ToTable("Sponsors");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.StreamerIdentity", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("integer");
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("DisplayName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<DateTimeOffset?>("LastResolvedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Login")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("NormalizedKey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(180)
|
||||
.HasColumnType("character varying(180)");
|
||||
|
||||
b.Property<string>("Platform")
|
||||
.IsRequired()
|
||||
.HasMaxLength(40)
|
||||
.HasColumnType("character varying(40)");
|
||||
|
||||
b.Property<string>("ProfileUrl")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("character varying(500)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("NormalizedKey")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("StreamerIdentities");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.TeamMember", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
@@ -1522,24 +1316,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("VoteBallots");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_1"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 5, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_2"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteEntry", b =>
|
||||
@@ -1568,36 +1344,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.ToTable("VoteEntries");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
BallotId = 1,
|
||||
CandidateId = 1,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
BallotId = 1,
|
||||
CandidateId = 4,
|
||||
CategoryId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
BallotId = 2,
|
||||
CandidateId = 2,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
BallotId = 2,
|
||||
CandidateId = 6,
|
||||
CategoryId = 3
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.AwardResult", b =>
|
||||
@@ -1641,9 +1387,15 @@ namespace Backend.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.StreamerIdentity", "StreamerIdentity")
|
||||
.WithMany("Candidates")
|
||||
.HasForeignKey("StreamerIdentityId");
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("Season");
|
||||
|
||||
b.Navigation("StreamerIdentity");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
@@ -1664,6 +1416,12 @@ namespace Backend.Migrations
|
||||
.HasForeignKey("CandidateId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.HasOne("Backend.Domain.Season", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Candidate");
|
||||
});
|
||||
|
||||
@@ -1676,8 +1434,7 @@ namespace Backend.Migrations
|
||||
b.HasOne("Backend.Domain.Category", "Category")
|
||||
.WithMany()
|
||||
.HasForeignKey("CategoryId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.HasOne("Backend.Domain.Season", "Season")
|
||||
.WithMany()
|
||||
@@ -1685,11 +1442,24 @@ namespace Backend.Migrations
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("Backend.Domain.StreamerIdentity", "StreamerIdentity")
|
||||
.WithMany("Nominations")
|
||||
.HasForeignKey("StreamerIdentityId");
|
||||
|
||||
b.HasOne("Backend.Domain.Category", "SuggestedCategory")
|
||||
.WithMany()
|
||||
.HasForeignKey("SuggestedCategoryId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.Navigation("Candidate");
|
||||
|
||||
b.Navigation("Category");
|
||||
|
||||
b.Navigation("Season");
|
||||
|
||||
b.Navigation("StreamerIdentity");
|
||||
|
||||
b.Navigation("SuggestedCategory");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.RiskFlag", b =>
|
||||
@@ -1773,6 +1543,13 @@ namespace Backend.Migrations
|
||||
b.Navigation("Results");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.StreamerIdentity", b =>
|
||||
{
|
||||
b.Navigation("Candidates");
|
||||
|
||||
b.Navigation("Nominations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteBallot", b =>
|
||||
{
|
||||
b.Navigation("Entries");
|
||||
@@ -0,0 +1,257 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations;
|
||||
|
||||
public partial class SeedRealisticDemoScenario : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
INSERT INTO "Seasons" (
|
||||
"Id", "Year", "Name", "IsDemo", "IsCurrent", "IsCommunityOnly", "CurrentPhase",
|
||||
"NominationStartsAt", "NominationEndsAt", "VotingStartsAt", "VotingEndsAt",
|
||||
"ReviewStartsAt", "ReviewEndsAt", "ShowDate", "ShowStartsAt",
|
||||
"WinnersPublishedAt", "WinnersPublishedByTwitchId", "SubcategoryTemplatesJson", "WorkflowRulesJson"
|
||||
)
|
||||
VALUES
|
||||
(1000, 2025, 'VTuber Star Awards 2025 Demo Archiv', TRUE, FALSE, FALSE, 'Archiv',
|
||||
DATE '2025-04-01', DATE '2025-04-28', DATE '2025-05-10', DATE '2025-05-24',
|
||||
DATE '2025-04-29', DATE '2025-05-09', DATE '2025-06-21', TIME '20:00',
|
||||
TIMESTAMPTZ '2025-06-22 10:00:00+00', 'demo_owner', '[]', '[]'),
|
||||
(1001, 2026, 'VTuber Star Awards 2026 Demo', TRUE, TRUE, FALSE, 'Voting',
|
||||
DATE '2026-05-18', DATE '2026-06-16', DATE '2026-06-24', DATE '2026-07-19',
|
||||
DATE '2026-06-17', DATE '2026-06-23', DATE '2026-08-08', TIME '20:00',
|
||||
NULL, NULL, '[]', '[]');
|
||||
|
||||
INSERT INTO "Categories" (
|
||||
"Id", "SeasonId", "GroupName", "Name", "Slug", "Description", "SortOrder", "MaxNomineesPerUser", "ViewerRangeMin", "ViewerRangeMax"
|
||||
)
|
||||
VALUES
|
||||
(1101, 1001, 'Spotlight', 'Rising Star', 'rising-star', 'Neue oder stark gewachsene Creator:innen mit klarer Entwicklung.', 10, 2, 0, 75),
|
||||
(1102, 1001, 'Spotlight', 'Community Heart', 'community-heart', 'Creator:innen, deren Community besonders sichtbar und einladend ist.', 20, 2, 0, 200),
|
||||
(1103, 1001, 'Spotlight', 'Breakout Moment', 'breakout-moment', 'Ein einzelner Moment, Clip oder Stream, der die Season gepraegt hat.', 30, 2, 0, NULL),
|
||||
(1104, 1001, 'Content', 'Best Variety Stream', 'best-variety-stream', 'Abwechslungsreiche Streams mit sicherem roten Faden.', 40, 2, 30, 350),
|
||||
(1105, 1001, 'Content', 'Best Gaming Stream', 'best-gaming-stream', 'Gaming-Streams mit starker Moderation und guter Dramaturgie.', 50, 2, 25, 400),
|
||||
(1106, 1001, 'Content', 'Best Music Performance', 'best-music-performance', 'Live-Gesang, Instrumente oder Musikproduktion im Stream.', 60, 2, 0, 250),
|
||||
(1107, 1001, 'Content', 'Best Art Stream', 'best-art-stream', 'Art-, Design- oder Rigging-Streams mit nachvollziehbarem Prozess.', 70, 2, 0, 250),
|
||||
(1108, 1001, 'Content', 'Best Lore Project', 'best-lore-project', 'Storytelling, Lore-Events oder immersive Formatideen.', 80, 2, 0, 300),
|
||||
(1109, 1001, 'Engagement', 'Best Chat Interaction', 'best-chat-interaction', 'Besonders gute Einbindung von Chat und Community.', 90, 2, 20, 500),
|
||||
(1110, 1001, 'Engagement', 'Best Collab Energy', 'best-collab-energy', 'Kollaborationen, die alle Beteiligten staerker gemacht haben.', 100, 2, 30, 650),
|
||||
(1111, 1001, 'Engagement', 'Best Community Event', 'best-community-event', 'Community-Events mit guter Planung und nachhaltiger Wirkung.', 110, 2, 25, 750),
|
||||
(1112, 1001, 'Production', 'Best Stream Design', 'best-stream-design', 'Overlay, Szenen, Alerts und visuelle Identitaet.', 120, 2, 0, 400),
|
||||
(1113, 1001, 'Production', 'Best Original Clip', 'best-original-clip', 'Einreichbare Clips mit starkem Timing oder besonderem Moment.', 130, 2, 0, NULL),
|
||||
(1114, 1001, 'Production', 'Best Technical Glow-Up', 'best-technical-glow-up', 'Messbare Verbesserungen bei Audio, Video, Licht oder Setup.', 140, 2, 0, 300),
|
||||
(1201, 1000, 'Archiv Spotlight', 'Archiv Rising Star', 'archiv-rising-star', 'Archivkategorie fuer Gewinner-Showcase.', 10, 2, 0, 75),
|
||||
(1202, 1000, 'Archiv Content', 'Archiv Variety', 'archiv-variety', 'Archivkategorie fuer Gewinner-Showcase.', 20, 2, 0, 350),
|
||||
(1203, 1000, 'Archiv Content', 'Archiv Music', 'archiv-music', 'Archivkategorie fuer Gewinner-Showcase.', 30, 2, 0, 250),
|
||||
(1204, 1000, 'Archiv Engagement', 'Archiv Community', 'archiv-community', 'Archivkategorie fuer Gewinner-Showcase.', 40, 2, 0, 500),
|
||||
(1205, 1000, 'Archiv Production', 'Archiv Stream Design', 'archiv-stream-design', 'Archivkategorie fuer Gewinner-Showcase.', 50, 2, 0, 400),
|
||||
(1206, 1000, 'Archiv Moment', 'Archiv Clip Moment', 'archiv-clip-moment', 'Archivkategorie fuer Gewinner-Showcase.', 60, 2, 0, NULL);
|
||||
|
||||
INSERT INTO "StreamerIdentities" ("Id", "Platform", "Login", "NormalizedKey", "DisplayName", "ProfileUrl", "LastResolvedAt")
|
||||
VALUES
|
||||
(3001, 'Twitch', 'aki_lumina', 'twitch:aki_lumina', 'Aki Lumina', 'https://twitch.tv/aki_lumina', TIMESTAMPTZ '2026-06-27 12:00:00+00'),
|
||||
(3002, 'Twitch', 'mira_orbit', 'twitch:mira_orbit', 'Mira Orbit', 'https://twitch.tv/mira_orbit', TIMESTAMPTZ '2026-06-27 12:02:00+00'),
|
||||
(3003, 'Twitch', 'nova_nym', 'twitch:nova_nym', 'Nova Nym', 'https://twitch.tv/nova_nym', TIMESTAMPTZ '2026-06-27 12:04:00+00'),
|
||||
(3004, 'Twitch', 'luna_koi', 'twitch:luna_koi', 'Luna Koi', 'https://twitch.tv/luna_koi', TIMESTAMPTZ '2026-06-27 12:06:00+00'),
|
||||
(3005, 'Twitch', 'runa_bits', 'twitch:runa_bits', 'Runa Bits', 'https://twitch.tv/runa_bits', TIMESTAMPTZ '2026-06-27 12:08:00+00'),
|
||||
(3006, 'Twitch', 'sora_slate', 'twitch:sora_slate', 'Sora Slate', 'https://twitch.tv/sora_slate', TIMESTAMPTZ '2026-06-27 12:10:00+00'),
|
||||
(3007, 'Twitch', 'ember_vail', 'twitch:ember_vail', 'Ember Vail', 'https://twitch.tv/ember_vail', TIMESTAMPTZ '2026-06-27 12:12:00+00'),
|
||||
(3008, 'Twitch', 'niko_noct', 'twitch:niko_noct', 'Niko Noct', 'https://twitch.tv/niko_noct', TIMESTAMPTZ '2026-06-27 12:14:00+00'),
|
||||
(3009, 'Twitch', 'pixel_poppy', 'twitch:pixel_poppy', 'Pixel Poppy', 'https://twitch.tv/pixel_poppy', TIMESTAMPTZ '2026-06-27 12:16:00+00'),
|
||||
(3010, 'Twitch', 'hana_hertz', 'twitch:hana_hertz', 'Hana Hertz', 'https://twitch.tv/hana_hertz', TIMESTAMPTZ '2026-06-27 12:18:00+00');
|
||||
|
||||
INSERT INTO "Candidates" (
|
||||
"Id", "SeasonId", "CategoryId", "StreamerIdentityId", "DisplayName", "ChannelSlug", "Platform",
|
||||
"NominationTally", "AcceptanceStatus", "AcceptanceNote", "ClipCompilationUrl", "ClipCompilationTitle", "ClipCompilationPlatform", "ClipEmbedStatus"
|
||||
)
|
||||
VALUES
|
||||
(2001, 1001, 1101, 3001, 'Aki Lumina', 'aki_lumina', 'Twitch', 9, 'approved', 'Bestaetigt, kleiner Kanal mit starkem Wachstum.', 'https://youtu.be/demo-aki-rise', 'Aki Lumina Rising Star Reel', 'YouTube', 'available'),
|
||||
(2002, 1001, 1101, 3002, 'Mira Orbit', 'mira_orbit', 'Twitch', 7, 'approved', 'Bestaetigt.', NULL, NULL, NULL, 'unchecked'),
|
||||
(2003, 1001, 1101, 3003, 'Nova Nym', 'nova_nym', 'Twitch', 5, 'pending', 'Wartet auf finalen Clip.', NULL, NULL, NULL, 'unchecked'),
|
||||
(2004, 1001, 1102, 3004, 'Luna Koi', 'luna_koi', 'Twitch', 11, 'approved', 'Community-Belege im Review notiert.', NULL, NULL, NULL, 'unchecked'),
|
||||
(2005, 1001, 1102, 3005, 'Runa Bits', 'runa_bits', 'Twitch', 8, 'approved', 'Starke Discord-Aktion.', NULL, NULL, NULL, 'unchecked'),
|
||||
(2006, 1001, 1102, 3006, 'Sora Slate', 'sora_slate', 'Twitch', 4, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2007, 1001, 1103, 3007, 'Ember Vail', 'ember_vail', 'Twitch', 10, 'approved', 'Clip-Quelle vorhanden.', 'https://clips.twitch.tv/demo-ember-moment', 'Ember Vail Breakout Clip', 'Twitch', 'available'),
|
||||
(2008, 1001, 1103, 3008, 'Niko Noct', 'niko_noct', 'Twitch', 6, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2009, 1001, 1103, 3009, 'Pixel Poppy', 'pixel_poppy', 'Twitch', 5, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2010, 1001, 1104, 3010, 'Hana Hertz', 'hana_hertz', 'Twitch', 12, 'approved', 'Variety-Plan sauber dokumentiert.', 'https://youtu.be/demo-hana-variety', 'Hana Hertz Variety Reel', 'YouTube', 'available'),
|
||||
(2011, 1001, 1104, NULL, 'Kira Comet', 'kira_comet', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2012, 1001, 1104, NULL, 'Mochi Vale', 'mochi_vale', 'Twitch', 7, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2013, 1001, 1105, NULL, 'Taro Tactics', 'taro_tactics', 'Twitch', 10, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2014, 1001, 1105, NULL, 'Yuna Quest', 'yuna_quest', 'Twitch', 7, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2015, 1001, 1105, NULL, 'Rin Replay', 'rin_replay', 'Twitch', 5, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2016, 1001, 1106, NULL, 'Melo Moon', 'melo_moon', 'Twitch', 9, 'approved', 'Live-Set pruefbar.', 'https://youtu.be/demo-melo-live', 'Melo Moon Live Set', 'YouTube', 'available'),
|
||||
(2017, 1001, 1106, NULL, 'Vivi Verse', 'vivi_verse', 'Twitch', 6, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2018, 1001, 1106, NULL, 'Echo Rill', 'echo_rill', 'Twitch', 4, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2019, 1001, 1107, NULL, 'Iris Ink', 'iris_ink', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2020, 1001, 1107, NULL, 'Pia Palette', 'pia_palette', 'Twitch', 6, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2021, 1001, 1107, NULL, 'Theo Thimble', 'theo_thimble', 'Twitch', 3, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2022, 1001, 1108, NULL, 'Nyra Novel', 'nyra_novel', 'Twitch', 9, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2023, 1001, 1108, NULL, 'Kai Myth', 'kai_myth', 'Twitch', 6, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2024, 1001, 1108, NULL, 'Mina Maze', 'mina_maze', 'Twitch', 4, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2025, 1001, 1109, NULL, 'Bibi Beacon', 'bibi_beacon', 'Twitch', 12, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2026, 1001, 1109, NULL, 'Ori Opal', 'ori_opal', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2027, 1001, 1109, NULL, 'Faye Flux', 'faye_flux', 'Twitch', 5, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2028, 1001, 1110, NULL, 'Riku Relay', 'riku_relay', 'Twitch', 10, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2029, 1001, 1110, NULL, 'Nami Node', 'nami_node', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2030, 1001, 1110, NULL, 'Sachi Spark', 'sachi_spark', 'Twitch', 5, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2031, 1001, 1111, NULL, 'Cleo Campfire', 'cleo_campfire', 'Twitch', 11, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2032, 1001, 1111, NULL, 'Juno Jamboree', 'juno_jamboree', 'Twitch', 9, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2033, 1001, 1111, NULL, 'Mika Meetup', 'mika_meetup', 'Twitch', 5, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2034, 1001, 1112, NULL, 'Neon Nori', 'neon_nori', 'Twitch', 9, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2035, 1001, 1112, NULL, 'Slate Sen', 'slate_sen', 'Twitch', 7, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2036, 1001, 1112, NULL, 'Momo Motion', 'momo_motion', 'Twitch', 4, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2037, 1001, 1113, NULL, 'Lio Laughs', 'lio_laughs', 'Twitch', 10, 'approved', 'Clip bereits im Clip-Review.', 'https://clips.twitch.tv/demo-lio-laugh', 'Lio Laughs Original Clip', 'Twitch', 'available'),
|
||||
(2038, 1001, 1113, NULL, 'Puck Prism', 'puck_prism', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2039, 1001, 1113, NULL, 'Tessa Toast', 'tessa_toast', 'Twitch', 5, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2040, 1001, 1114, NULL, 'Vera Volt', 'vera_volt', 'Twitch', 9, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2041, 1001, 1114, NULL, 'Maki Mixer', 'maki_mixer', 'Twitch', 6, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2042, 1001, 1114, NULL, 'Yori Yield', 'yori_yield', 'Twitch', 4, 'pending', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2101, 1000, 1201, NULL, 'Archiv Aster', 'archiv_aster', 'Twitch', 14, 'approved', NULL, 'https://youtu.be/demo-archiv-aster', 'Archiv Aster Winner Reel', 'YouTube', 'available'),
|
||||
(2102, 1000, 1201, NULL, 'Archiv Beryl', 'archiv_beryl', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2103, 1000, 1201, NULL, 'Archiv Coda', 'archiv_coda', 'Twitch', 5, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2104, 1000, 1202, NULL, 'Archiv Drift', 'archiv_drift', 'Twitch', 16, 'approved', NULL, 'https://youtu.be/demo-archiv-drift', 'Archiv Drift Variety Reel', 'YouTube', 'available'),
|
||||
(2105, 1000, 1202, NULL, 'Archiv Elara', 'archiv_elara', 'Twitch', 9, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2106, 1000, 1202, NULL, 'Archiv Finch', 'archiv_finch', 'Twitch', 6, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2107, 1000, 1203, NULL, 'Archiv Lyra', 'archiv_lyra', 'Twitch', 12, 'approved', NULL, 'https://youtu.be/demo-archiv-lyra', 'Archiv Lyra Music Reel', 'YouTube', 'available'),
|
||||
(2108, 1000, 1203, NULL, 'Archiv Muse', 'archiv_muse', 'Twitch', 7, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2109, 1000, 1203, NULL, 'Archiv Nia', 'archiv_nia', 'Twitch', 5, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2110, 1000, 1204, NULL, 'Archiv Poppy', 'archiv_poppy', 'Twitch', 13, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2111, 1000, 1204, NULL, 'Archiv Quartz', 'archiv_quartz', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2112, 1000, 1204, NULL, 'Archiv Rune', 'archiv_rune', 'Twitch', 5, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2113, 1000, 1205, NULL, 'Archiv Sol', 'archiv_sol', 'Twitch', 11, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2114, 1000, 1205, NULL, 'Archiv Tide', 'archiv_tide', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2115, 1000, 1205, NULL, 'Archiv Uma', 'archiv_uma', 'Twitch', 5, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2116, 1000, 1206, NULL, 'Archiv Vesper', 'archiv_vesper', 'Twitch', 15, 'approved', NULL, 'https://clips.twitch.tv/demo-archiv-vesper', 'Archiv Vesper Clip Moment', 'Twitch', 'available'),
|
||||
(2117, 1000, 1206, NULL, 'Archiv Wren', 'archiv_wren', 'Twitch', 8, 'approved', NULL, NULL, NULL, NULL, 'unchecked'),
|
||||
(2118, 1000, 1206, NULL, 'Archiv Yuki', 'archiv_yuki', 'Twitch', 6, 'approved', NULL, NULL, NULL, NULL, 'unchecked');
|
||||
|
||||
INSERT INTO "Nominations" (
|
||||
"Id", "SeasonId", "CategoryId", "CategoryGroupName", "SubmittedByTwitchId", "CandidateId", "StreamerIdentityId", "SuggestedCategoryId",
|
||||
"CandidateText", "StreamUrl", "ResolvedChannel", "ResolvedPlatform", "AvgViewers", "HoursStreamed", "HoursWatched", "PeakViewers", "FollowersGained",
|
||||
"TrackerStatus", "TrackerCheckedAt", "TrackingReviewStatus", "TrackingFlagsJson", "TrackingReviewNote", "TrackingReviewedByTwitchId", "TrackingReviewedAt",
|
||||
"Status", "ReviewNote", "ReviewedByTwitchId", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(4001, 1001, 1101, 'Spotlight', 'viewer_1001', 2001, 3001, NULL, 'Aki Lumina', 'https://twitch.tv/aki_lumina', 'aki_lumina', 'Twitch', 42, 63, 6800, 118, 730, 'resolved', TIMESTAMPTZ '2026-06-18 09:20:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:10:00+00', 'approved', 'Wachstum und Streamplan passen.', 'reviewer_demo', TIMESTAMPTZ '2026-06-02 18:30:00+00', TIMESTAMPTZ '2026-06-18 10:10:00+00'),
|
||||
(4002, 1001, 1101, 'Spotlight', 'viewer_1002', 2002, 3002, NULL, 'Mira Orbit', 'https://twitch.tv/mira_orbit', 'mira_orbit', 'Twitch', 38, 58, 5900, 96, 510, 'resolved', TIMESTAMPTZ '2026-06-18 09:24:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:15:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-03 20:15:00+00', TIMESTAMPTZ '2026-06-18 10:15:00+00'),
|
||||
(4003, 1001, 1103, 'Spotlight', 'viewer_1003', 2007, 3007, NULL, 'Ember Vail', 'https://twitch.tv/ember_vail', 'ember_vail', 'Twitch', 116, 44, 9100, 420, 1200, 'resolved', TIMESTAMPTZ '2026-06-18 09:30:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:22:00+00', 'approved', 'Breakout-Clip verifiziert.', 'reviewer_demo', TIMESTAMPTZ '2026-06-04 14:45:00+00', TIMESTAMPTZ '2026-06-18 10:22:00+00'),
|
||||
(4004, 1001, 1104, 'Content', 'viewer_1004', 2010, 3010, NULL, 'Hana Hertz', 'https://twitch.tv/hana_hertz', 'hana_hertz', 'Twitch', 184, 72, 22100, 360, 840, 'resolved', TIMESTAMPTZ '2026-06-18 09:40:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:30:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-05 21:05:00+00', TIMESTAMPTZ '2026-06-18 10:30:00+00'),
|
||||
(4005, 1001, 1105, 'Content', 'viewer_1005', 2013, NULL, NULL, 'Taro Tactics', 'https://twitch.tv/taro_tactics', 'taro_tactics', 'Twitch', 153, 81, 19800, 310, 620, 'resolved', TIMESTAMPTZ '2026-06-18 09:45:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:36:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-06 19:25:00+00', TIMESTAMPTZ '2026-06-18 10:36:00+00'),
|
||||
(4006, 1001, 1106, 'Content', 'viewer_1006', 2016, NULL, NULL, 'Melo Moon', 'https://twitch.tv/melo_moon', 'melo_moon', 'Twitch', 88, 35, 7400, 210, 430, 'resolved', TIMESTAMPTZ '2026-06-18 09:48:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:41:00+00', 'approved', 'Live-Musik-Set pruefbar.', 'reviewer_demo', TIMESTAMPTZ '2026-06-07 17:55:00+00', TIMESTAMPTZ '2026-06-18 10:41:00+00'),
|
||||
(4007, 1001, 1108, 'Content', 'viewer_1007', 2022, NULL, NULL, 'Nyra Novel', 'https://twitch.tv/nyra_novel', 'nyra_novel', 'Twitch', NULL, NULL, NULL, NULL, NULL, 'no_data', TIMESTAMPTZ '2026-06-18 09:52:00+00', 'needs_review', '[{"key":"no_tracker_data","label":"Keine Tracker-Daten","severity":"medium","description":"TwitchTracker hat keinen belastbaren Summary-Wert geliefert.","requiresManualReview":true,"blocksApproval":false,"adminNoteRequiredOnOverride":false}]', 'Tracker leer, manuelle Lore-Pruefung noetig.', 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:00:00+00', 'pending', 'Lore-Dokumentation nachfordern.', NULL, TIMESTAMPTZ '2026-06-08 18:10:00+00', NULL),
|
||||
(4008, 1001, 1109, 'Engagement', 'viewer_1008', 2025, NULL, NULL, 'Bibi Beacon', 'https://twitch.tv/bibi_beacon', 'bibi_beacon', 'Twitch', 208, 65, 31800, 530, 920, 'resolved', TIMESTAMPTZ '2026-06-18 09:58:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:06:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-09 16:20:00+00', TIMESTAMPTZ '2026-06-18 11:06:00+00'),
|
||||
(4009, 1001, 1110, 'Engagement', 'viewer_1009', 2028, NULL, NULL, 'Riku Relay', 'https://twitch.tv/riku_relay', 'riku_relay', 'Twitch', 177, 54, 24200, 440, 610, 'resolved', TIMESTAMPTZ '2026-06-18 10:02:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:12:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-10 20:40:00+00', TIMESTAMPTZ '2026-06-18 11:12:00+00'),
|
||||
(4010, 1001, 1111, 'Engagement', 'viewer_1010', 2031, NULL, NULL, 'Cleo Campfire', 'https://twitch.tv/cleo_campfire', 'cleo_campfire', 'Twitch', 232, 49, 28700, 620, 1100, 'resolved', TIMESTAMPTZ '2026-06-18 10:08:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:18:00+00', 'approved', 'Community-Event mit Planungsdoku.', 'reviewer_demo', TIMESTAMPTZ '2026-06-11 15:50:00+00', TIMESTAMPTZ '2026-06-18 11:18:00+00'),
|
||||
(4011, 1001, 1112, 'Production', 'viewer_1011', 2034, NULL, NULL, 'Neon Nori', 'https://twitch.tv/neon_nori', 'neon_nori', 'Twitch', 121, 37, 11800, 250, 340, 'resolved', TIMESTAMPTZ '2026-06-18 10:14:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:24:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-12 19:05:00+00', TIMESTAMPTZ '2026-06-18 11:24:00+00'),
|
||||
(4012, 1001, 1113, 'Production', 'viewer_1012', 2037, NULL, NULL, 'Lio Laughs', 'https://twitch.tv/lio_laughs', 'lio_laughs', 'Twitch', 96, 26, 6500, 340, 270, 'resolved', TIMESTAMPTZ '2026-06-18 10:18:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:30:00+00', 'approved', 'Clip pruefbar.', 'reviewer_demo', TIMESTAMPTZ '2026-06-13 22:15:00+00', TIMESTAMPTZ '2026-06-18 11:30:00+00'),
|
||||
(4013, 1001, 1114, 'Production', 'viewer_1013', 2040, NULL, NULL, 'Vera Volt', 'https://twitch.tv/vera_volt', 'vera_volt', 'Twitch', 74, 41, 8200, 190, 390, 'resolved', TIMESTAMPTZ '2026-06-18 10:22:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:36:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-14 13:35:00+00', TIMESTAMPTZ '2026-06-18 11:36:00+00'),
|
||||
(4014, 1001, 1102, 'Spotlight', 'viewer_1014', 2004, 3004, NULL, 'Luna Koi', 'https://twitch.tv/luna_koi', 'luna_koi', 'Twitch', 62, 46, 9100, 155, 510, 'resolved', TIMESTAMPTZ '2026-06-18 10:28:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:42:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-15 18:45:00+00', TIMESTAMPTZ '2026-06-18 11:42:00+00'),
|
||||
(4015, 1001, 1107, 'Content', 'viewer_1015', 2019, NULL, NULL, 'Iris Ink', 'https://twitch.tv/iris_ink', 'iris_ink', 'Twitch', 54, 31, 5200, 130, 260, 'resolved', TIMESTAMPTZ '2026-06-18 10:31:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:48:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-15 20:10:00+00', TIMESTAMPTZ '2026-06-18 11:48:00+00'),
|
||||
(4016, 1001, 1105, 'Content', 'viewer_1016', 2015, NULL, NULL, 'Rin Replay', 'https://youtube.com/@rin_replay', 'rin_replay', 'YouTube', NULL, NULL, NULL, NULL, NULL, 'unsupported_platform', TIMESTAMPTZ '2026-06-18 10:36:00+00', 'needs_review', '[{"key":"unsupported_platform","label":"Plattform nicht unterstuetzt","severity":"medium","description":"Die Nominierung zeigt auf eine Plattform ohne automatische TwitchTracker-Daten.","requiresManualReview":true,"blocksApproval":false,"adminNoteRequiredOnOverride":false}]', 'YouTube-Link muss manuell geprueft werden.', NULL, NULL, 'pending', 'Stream-Link auf Twitch anfragen.', NULL, TIMESTAMPTZ '2026-06-16 11:25:00+00', NULL);
|
||||
|
||||
INSERT INTO "VoteBallots" ("Id", "SeasonId", "SubmittedByTwitchId", "Status", "SubmittedAt")
|
||||
VALUES
|
||||
(5001, 1001, 'vote_user_001', 'submitted', TIMESTAMPTZ '2026-06-25 18:10:00+00'),
|
||||
(5002, 1001, 'vote_user_002', 'submitted', TIMESTAMPTZ '2026-06-25 18:16:00+00'),
|
||||
(5003, 1001, 'vote_user_003', 'submitted', TIMESTAMPTZ '2026-06-25 19:05:00+00'),
|
||||
(5004, 1001, 'vote_user_004', 'submitted', TIMESTAMPTZ '2026-06-26 12:45:00+00'),
|
||||
(5005, 1001, 'vote_user_005', 'submitted', TIMESTAMPTZ '2026-06-26 20:30:00+00'),
|
||||
(5006, 1001, 'vote_user_006', 'submitted', TIMESTAMPTZ '2026-06-27 09:20:00+00'),
|
||||
(5007, 1001, 'vote_user_007', 'draft', TIMESTAMPTZ '2026-06-27 14:15:00+00'),
|
||||
(5008, 1001, 'vote_user_008', 'submitted', TIMESTAMPTZ '2026-06-28 21:05:00+00');
|
||||
|
||||
INSERT INTO "VoteEntries" ("Id", "BallotId", "CategoryId", "CandidateId")
|
||||
VALUES
|
||||
(5101, 5001, 1101, 2001), (5102, 5001, 1104, 2010), (5103, 5001, 1109, 2025), (5104, 5001, 1113, 2037),
|
||||
(5105, 5002, 1101, 2002), (5106, 5002, 1105, 2013), (5107, 5002, 1110, 2028), (5108, 5002, 1114, 2040),
|
||||
(5109, 5003, 1102, 2004), (5110, 5003, 1106, 2016), (5111, 5003, 1111, 2031), (5112, 5003, 1112, 2034),
|
||||
(5113, 5004, 1103, 2007), (5114, 5004, 1104, 2011), (5115, 5004, 1108, 2022), (5116, 5004, 1113, 2038),
|
||||
(5117, 5005, 1101, 2001), (5118, 5005, 1105, 2014), (5119, 5005, 1109, 2026), (5120, 5005, 1114, 2041),
|
||||
(5121, 5006, 1102, 2005), (5122, 5006, 1106, 2016), (5123, 5006, 1110, 2029), (5124, 5006, 1112, 2035),
|
||||
(5125, 5007, 1103, 2008), (5126, 5007, 1107, 2019),
|
||||
(5127, 5008, 1101, 2001), (5128, 5008, 1104, 2010), (5129, 5008, 1111, 2032), (5130, 5008, 1113, 2037);
|
||||
|
||||
INSERT INTO "Results" ("Id", "SeasonId", "CategoryId", "CandidateId", "CategoryName")
|
||||
VALUES
|
||||
(6001, 1000, 1201, 2101, 'Archiv Rising Star'),
|
||||
(6002, 1000, 1202, 2104, 'Archiv Variety'),
|
||||
(6003, 1000, 1203, 2107, 'Archiv Music'),
|
||||
(6004, 1000, 1204, 2110, 'Archiv Community'),
|
||||
(6005, 1000, 1205, 2113, 'Archiv Stream Design'),
|
||||
(6006, 1000, 1206, 2116, 'Archiv Clip Moment');
|
||||
|
||||
INSERT INTO "ClipSubmissions" (
|
||||
"Id", "SeasonId", "CategoryId", "CandidateId", "SubmittedByTwitchId", "ClipUrl", "Title", "Creator", "Platform",
|
||||
"Status", "ReviewNote", "ReviewedByTwitchId", "CreatedFromIp", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(7001, 1001, 1103, 2007, 'viewer_2001', 'https://clips.twitch.tv/demo-ember-moment', 'Ember findet den Plot Twist', 'viewer_2001', 'Twitch', 'approved', 'Ton und Kontext passen.', 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2026-06-20 18:12:00+00', TIMESTAMPTZ '2026-06-21 09:00:00+00'),
|
||||
(7002, 1001, 1113, 2037, 'viewer_2002', 'https://clips.twitch.tv/demo-lio-laugh', 'Lio verliert komplett die Fassung', 'viewer_2002', 'Twitch', 'approved', NULL, 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2026-06-20 20:25:00+00', TIMESTAMPTZ '2026-06-21 09:08:00+00'),
|
||||
(7003, 1001, 1106, 2016, 'viewer_2003', 'https://youtu.be/demo-melo-live', 'Melo Moon acoustic bridge', 'viewer_2003', 'YouTube', 'pending', 'YouTube-Timestamp noch pruefen.', NULL, '127.0.0.1', TIMESTAMPTZ '2026-06-21 11:40:00+00', NULL),
|
||||
(7004, 1001, 1104, 2010, 'viewer_2004', 'https://youtu.be/demo-hana-variety', 'Hana improvised den Chat-Run', 'viewer_2004', 'YouTube', 'approved', NULL, 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2026-06-21 15:10:00+00', TIMESTAMPTZ '2026-06-22 08:45:00+00'),
|
||||
(7005, 1001, 1114, 2040, 'viewer_2005', 'https://clips.twitch.tv/demo-vera-setup', 'Vera erklaert ihr neues Setup', 'viewer_2005', 'Twitch', 'pending', NULL, NULL, '127.0.0.1', TIMESTAMPTZ '2026-06-22 19:55:00+00', NULL),
|
||||
(7006, 1001, 1109, 2025, 'viewer_2006', 'https://clips.twitch.tv/demo-bibi-chat', 'Bibi laesst Chat entscheiden', 'viewer_2006', 'Twitch', 'rejected', 'Zu wenig Kontext fuer Award-Clip.', 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2026-06-23 12:30:00+00', TIMESTAMPTZ '2026-06-23 14:05:00+00'),
|
||||
(7007, 1000, 1206, 2116, 'archiv_viewer_1', 'https://clips.twitch.tv/demo-archiv-vesper', 'Archiv Vesper Finale Clip', 'archiv_viewer_1', 'Twitch', 'approved', NULL, 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2025-06-10 19:00:00+00', TIMESTAMPTZ '2025-06-11 09:00:00+00');
|
||||
|
||||
INSERT INTO "ShowactApplications" (
|
||||
"Id", "SeasonId", "ArtistName", "ContactEmail", "ContactDiscord", "PlatformUrl", "PerformanceType", "Description",
|
||||
"TechnicalNotes", "ReferenceUrl", "FieldResponsesJson", "Status", "ReviewNote", "ReviewedByTwitchId", "CreatedFromIp", "UserAgent", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(8001, 1001, 'Melo Moon', 'melo@example.invalid', 'melo_moon', 'https://twitch.tv/melo_moon', 'Live-Gesang', 'Akustisches Opening-Medley mit zwei kurzen Songs.', 'Benoetigt Instrumentalspur und Monitoring.', 'https://youtu.be/demo-melo-live', '{"performanceLength":"6 Minuten","contentRating":"family friendly"}', 'approved', 'Passt als Opener.', 'show_reviewer', '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2026-06-19 13:10:00+00', TIMESTAMPTZ '2026-06-20 10:00:00+00'),
|
||||
(8002, 1001, 'Neon Nori', 'nori@example.invalid', 'neon_nori', 'https://twitch.tv/neon_nori', 'Visual Interlude', 'Kurze Motion-Overlay-Performance zwischen zwei Award-Bloecken.', 'OBS-Szene mit WebM-Loop, kein Mikro.', 'https://youtu.be/demo-nori-motion', '{"performanceLength":"3 Minuten","contentRating":"keine Hinweise"}', 'pending', NULL, NULL, '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2026-06-20 16:40:00+00', NULL),
|
||||
(8003, 1001, 'Cleo Campfire', 'cleo@example.invalid', 'cleo_campfire', 'https://twitch.tv/cleo_campfire', 'Community Skit', 'Kurzer Call-and-response Sketch mit Chat-Kommandos.', 'Braucht Chat-Overlay-Freigabe.', 'https://youtu.be/demo-cleo-skit', '{"performanceLength":"5 Minuten","contentRating":"leichte Improvisation"}', 'pending', 'Technische Details klaeren.', NULL, '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2026-06-22 12:05:00+00', NULL),
|
||||
(8004, 1000, 'Archiv Lyra', 'lyra@example.invalid', 'archiv_lyra', 'https://twitch.tv/archiv_lyra', 'Archiv Musik', 'Gewinner-Showcase aus dem Vorjahr.', 'VOD bereits vorhanden.', 'https://youtu.be/demo-archiv-lyra', '{"performanceLength":"4 Minuten","contentRating":"family friendly"}', 'approved', 'Archiv-Showact.', 'show_reviewer', '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2025-06-01 12:05:00+00', TIMESTAMPTZ '2025-06-02 09:30:00+00');
|
||||
|
||||
INSERT INTO "Sponsors" (
|
||||
"Id", "SeasonId", "Name", "WebsiteUrl", "LogoUrl", "Description", "Tier", "SortOrder", "IsVisible", "CreatedAt", "UpdatedAt"
|
||||
)
|
||||
VALUES
|
||||
(9001, 1001, 'CloudBeacon Hosting', 'https://example.invalid/cloudbeacon', '/demo/sponsors/cloudbeacon-hosting.svg', 'Server- und Bot-Hosting fuer Community-Projekte.', 'Main Partner', 10, TRUE, TIMESTAMPTZ '2026-06-01 10:00:00+00', NULL),
|
||||
(9002, 1001, 'NekoPixel Energy', 'https://example.invalid/nekopixel', '/demo/sponsors/nekopixel-energy.svg', 'Fiktiver Energy-Drink fuer lange Stream-Naechte.', 'Gold Partner', 20, TRUE, TIMESTAMPTZ '2026-06-01 10:05:00+00', NULL),
|
||||
(9003, 1001, 'PrismLoop Audio', 'https://example.invalid/prismloop', '/demo/sponsors/prismloop-audio.svg', 'Audio-Tools und Soundpacks fuer Creator:innen.', 'Gold Partner', 30, TRUE, TIMESTAMPTZ '2026-06-01 10:10:00+00', NULL),
|
||||
(9004, 1001, 'HoshiForge Studio', 'https://example.invalid/hoshiforge', '/demo/sponsors/hoshiforge-studio.svg', 'Branding, Overlays und kleine Motion-Pakete.', 'Community Partner', 40, TRUE, TIMESTAMPTZ '2026-06-01 10:15:00+00', NULL),
|
||||
(9005, 1001, 'ChibiCanvas Market', 'https://example.invalid/chibicanvas', '/demo/sponsors/chibicanvas-market.svg', 'Asset-Marktplatz fuer Panels, Emotes und Stream-Grafiken.', 'Community Partner', 50, TRUE, TIMESTAMPTZ '2026-06-01 10:20:00+00', NULL);
|
||||
|
||||
INSERT INTO "RiskFlags" (
|
||||
"Id", "SeasonId", "TwitchUserId", "Source", "Type", "Severity", "Status", "Summary", "CreatedFromIp", "UserAgent",
|
||||
"MetadataJson", "ReviewNote", "ReviewedByTwitchId", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(10001, 1001, 'viewer_1016', 'tracking-review', 'unsupported_platform', 'medium', 'open', 'Nominierung nutzt einen YouTube-Link und benoetigt manuellen Tracker-Review.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":1001,"nominationId":4016}', NULL, NULL, TIMESTAMPTZ '2026-06-18 10:40:00+00', NULL),
|
||||
(10002, 1001, 'viewer_1007', 'tracking-review', 'no_tracker_data', 'medium', 'open', 'TwitchTracker lieferte keine belastbaren Daten fuer Nyra Novel.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":1001,"nominationId":4007}', 'Manuelle Lore-Pruefung vor Finale.', 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:02:00+00', TIMESTAMPTZ '2026-06-18 11:08:00+00'),
|
||||
(10003, 1001, 'vote_user_007', 'voting', 'draft_ballot', 'low', 'resolved', 'Draft-Ballot ohne Submission, sichtbar fuer Dashboard-Randfall.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":1001,"ballotId":5007}', 'Nur Demo-Randfall.', 'reviewer_demo', TIMESTAMPTZ '2026-06-27 14:20:00+00', TIMESTAMPTZ '2026-06-27 15:00:00+00'),
|
||||
(10004, 1000, 'archiv_viewer_1', 'archive-cleanup', 'archived_clip', 'low', 'resolved', 'Archiv-Clip wurde fuer Gewinnerarchiv geprueft.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":1000,"clipId":7007}', 'Archiv okay.', 'reviewer_demo', TIMESTAMPTZ '2025-06-11 09:10:00+00', TIMESTAMPTZ '2025-06-11 09:25:00+00');
|
||||
|
||||
SELECT setval(pg_get_serial_sequence('"Seasons"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Seasons"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Categories"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Categories"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"StreamerIdentities"', 'Id'), COALESCE((SELECT MAX("Id") FROM "StreamerIdentities"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Candidates"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Candidates"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Nominations"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Nominations"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"VoteBallots"', 'Id'), COALESCE((SELECT MAX("Id") FROM "VoteBallots"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"VoteEntries"', 'Id'), COALESCE((SELECT MAX("Id") FROM "VoteEntries"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Results"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Results"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"ClipSubmissions"', 'Id'), COALESCE((SELECT MAX("Id") FROM "ClipSubmissions"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"ShowactApplications"', 'Id'), COALESCE((SELECT MAX("Id") FROM "ShowactApplications"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Sponsors"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Sponsors"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"RiskFlags"', 'Id'), COALESCE((SELECT MAX("Id") FROM "RiskFlags"), 1));
|
||||
"""
|
||||
);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
DELETE FROM "RiskFlags" WHERE "SeasonId" IN (1000, 1001);
|
||||
DELETE FROM "Seasons" WHERE "Id" IN (1000, 1001) AND "IsDemo" = TRUE;
|
||||
DELETE FROM "StreamerIdentities" WHERE "Id" BETWEEN 3001 AND 3010;
|
||||
"""
|
||||
);
|
||||
}
|
||||
}
|
||||
+155
-531
@@ -12,8 +12,8 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||||
namespace Backend.Migrations
|
||||
{
|
||||
[DbContext(typeof(AwardsDbContext))]
|
||||
[Migration("20260628115832_AddNominationGroupTrackerIdentity")]
|
||||
partial class AddNominationGroupTrackerIdentity
|
||||
[Migration("20260629144001_AdjustDemoSubcategoriesAndArchive")]
|
||||
partial class AdjustDemoSubcategoriesAndArchive
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -112,56 +112,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Results");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateId = 8,
|
||||
CategoryId = 5,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateId = 9,
|
||||
CategoryId = 6,
|
||||
CategoryName = "Bestes Live Event",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CandidateId = 10,
|
||||
CategoryId = 7,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CandidateId = 11,
|
||||
CategoryId = 8,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
CandidateId = 12,
|
||||
CategoryId = 9,
|
||||
CategoryName = "Clip des Jahres",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
CandidateId = 13,
|
||||
CategoryId = 10,
|
||||
CategoryName = "VTuber des Jahres",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Candidate", b =>
|
||||
@@ -240,164 +190,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("StreamerIdentityId");
|
||||
|
||||
b.ToTable("Candidates");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 1,
|
||||
ChannelSlug = "@shiroch",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Shiro Ch.",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 2,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura Showcase",
|
||||
NominationTally = 0,
|
||||
Platform = "YouTube",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 3,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 4,
|
||||
ChannelSlug = "@moonrelay",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Moonrelay",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 5,
|
||||
ChannelSlug = "@hoshimimiyu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Hoshimi Miyu",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 6,
|
||||
ChannelSlug = "@kurainu",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Kurainu 3D Live",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 7,
|
||||
ChannelSlug = "@pyonkichikingdom",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Pyonkichi Kingdom",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 11,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 8,
|
||||
ChannelSlug = "@aoisakura",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Aoi Sakura",
|
||||
NominationTally = 0,
|
||||
Platform = "YouTube",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 12,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 9,
|
||||
ChannelSlug = "@starbyte",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Starbyte",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 13,
|
||||
AcceptanceStatus = "open",
|
||||
CategoryId = 10,
|
||||
ChannelSlug = "@tenshivox",
|
||||
ClipEmbedStatus = "unchecked",
|
||||
DisplayName = "Tenshi Vox",
|
||||
NominationTally = 0,
|
||||
Platform = "Twitch",
|
||||
SeasonId = 4
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Category", b =>
|
||||
@@ -448,118 +240,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Categories");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
Description = "Die groesste Auszeichnung des Jahres.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
Description = "Events, Konzerte und 3D-Shows.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 1,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
Description = "Der lustigste oder emotionalste Clip des Jahres.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 1,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
Description = "Die aktivste und freundlichste Community.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Beste Community",
|
||||
SeasonId = 1,
|
||||
Slug = "beste-community",
|
||||
SortOrder = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 6,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Performance",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Bestes Live Event",
|
||||
SeasonId = 2,
|
||||
Slug = "bestes-live-event",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 7,
|
||||
Description = "Archivkategorie 2025.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 2,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
Description = "Archivkategorie 2024.",
|
||||
GroupName = "Clips & Highlights",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "Clip des Jahres",
|
||||
SeasonId = 3,
|
||||
Slug = "clip-des-jahres",
|
||||
SortOrder = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
Description = "Archivkategorie 2023.",
|
||||
GroupName = "Main Awards",
|
||||
MaxNomineesPerUser = 3,
|
||||
Name = "VTuber des Jahres",
|
||||
SeasonId = 4,
|
||||
Slug = "vtuber-des-jahres",
|
||||
SortOrder = 1
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ClipSubmission", b =>
|
||||
@@ -668,6 +348,18 @@ namespace Backend.Migrations
|
||||
b.Property<DateTimeOffset>("CreatedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<int?>("FollowersGained")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursStreamed")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("HoursWatched")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<int?>("PeakViewers")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ResolvedChannel")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
@@ -720,6 +412,30 @@ namespace Backend.Migrations
|
||||
.HasColumnType("character varying(40)")
|
||||
.HasDefaultValue("pending");
|
||||
|
||||
b.Property<string>("TrackingFlagsJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<string>("TrackingReviewNote")
|
||||
.HasMaxLength(1000)
|
||||
.HasColumnType("character varying(1000)");
|
||||
|
||||
b.Property<string>("TrackingReviewStatus")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasMaxLength(30)
|
||||
.HasColumnType("character varying(30)")
|
||||
.HasDefaultValue("clear");
|
||||
|
||||
b.Property<DateTimeOffset?>("TrackingReviewedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("TrackingReviewedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CandidateId");
|
||||
@@ -737,32 +453,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("SeasonId", "StreamerIdentityId", "CategoryGroupName");
|
||||
|
||||
b.ToTable("Nominations");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CandidateText = "Hoshimi Miyu",
|
||||
CategoryGroupName = "",
|
||||
CategoryId = 1,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 13, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_hoshi",
|
||||
TrackerStatus = "pending"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CandidateText = "Kurainu 3D Live",
|
||||
CategoryGroupName = "",
|
||||
CategoryId = 2,
|
||||
CreatedAt = new DateTimeOffset(new DateTime(2026, 6, 10, 14, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SeasonId = 1,
|
||||
Status = "pending",
|
||||
SubmittedByTwitchId = "twitch_kurainu",
|
||||
TrackerStatus = "pending"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.RiskFlag", b =>
|
||||
@@ -859,6 +549,11 @@ namespace Backend.Migrations
|
||||
b.Property<bool>("IsCurrent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsDemo")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(false);
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
@@ -882,11 +577,6 @@ namespace Backend.Migrations
|
||||
b.Property<TimeOnly>("ShowStartsAt")
|
||||
.HasColumnType("time without time zone");
|
||||
|
||||
b.Property<string>("ShowStreamUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("SubcategoryTemplatesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -899,6 +589,19 @@ namespace Backend.Migrations
|
||||
b.Property<DateOnly>("VotingStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateTimeOffset?>("WinnersPublishedAt")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("WinnersPublishedByTwitchId")
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<int>("Year")
|
||||
.HasColumnType("integer");
|
||||
|
||||
@@ -908,84 +611,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Seasons");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
CurrentPhase = "Community Voting",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = true,
|
||||
Name = "VTuber Star Awards 2026",
|
||||
NominationEndsAt = new DateOnly(2026, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2026, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2026, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2026, 7, 1),
|
||||
ShowDate = new DateOnly(2026, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2026, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2026, 6, 1),
|
||||
Year = 2026
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2025",
|
||||
NominationEndsAt = new DateOnly(2025, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2025, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2025, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2025, 7, 1),
|
||||
ShowDate = new DateOnly(2025, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2025, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2025, 6, 1),
|
||||
Year = 2025
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2024",
|
||||
NominationEndsAt = new DateOnly(2024, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2024, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2024, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2024, 7, 1),
|
||||
ShowDate = new DateOnly(2024, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://youtube.com/c/Jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2024, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2024, 6, 1),
|
||||
Year = 2024
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
CurrentPhase = "Archived",
|
||||
IsCommunityOnly = true,
|
||||
IsCurrent = false,
|
||||
Name = "VTuber Star Awards 2023",
|
||||
NominationEndsAt = new DateOnly(2023, 5, 31),
|
||||
NominationStartsAt = new DateOnly(2023, 5, 1),
|
||||
ReviewEndsAt = new DateOnly(2023, 7, 10),
|
||||
ReviewStartsAt = new DateOnly(2023, 7, 1),
|
||||
ShowDate = new DateOnly(2023, 7, 20),
|
||||
ShowStartsAt = new TimeOnly(20, 0, 0),
|
||||
ShowStreamUrl = "https://twitch.tv/jayuhime",
|
||||
SubcategoryTemplatesJson = "[]",
|
||||
VotingEndsAt = new DateOnly(2023, 6, 30),
|
||||
VotingStartsAt = new DateOnly(2023, 6, 1),
|
||||
Year = 2023
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.ShowactApplication", b =>
|
||||
@@ -1087,6 +712,14 @@ namespace Backend.Migrations
|
||||
|
||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("AwardsSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("AwardsSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<bool>("ClipAdminMenuVisible")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1230,6 +863,12 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(240)
|
||||
.HasColumnType("character varying(240)");
|
||||
|
||||
b.Property<DateOnly?>("ShowactApplicationEndsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<DateOnly?>("ShowactApplicationStartsAt")
|
||||
.HasColumnType("date");
|
||||
|
||||
b.Property<bool>("ShowactApplicationsEnabled")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("boolean")
|
||||
@@ -1268,6 +907,80 @@ namespace Backend.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasDefaultValue(true);
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerCompletedTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<string>("StreamBannerEyebrow")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerLiveButtonUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("StreamBannerLockedButtonLabel")
|
||||
.IsRequired()
|
||||
.HasMaxLength(120)
|
||||
.HasColumnType("character varying(120)");
|
||||
|
||||
b.Property<string>("StreamBannerText")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("StreamBannerTitle")
|
||||
.IsRequired()
|
||||
.HasMaxLength(160)
|
||||
.HasColumnType("character varying(160)");
|
||||
|
||||
b.Property<bool>("StreamBannerUseCompletedContent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("SubcategoriesSectionTitle")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingReviewNotes")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<string>("TrackingRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("text")
|
||||
.HasDefaultValue("[]");
|
||||
|
||||
b.Property<bool>("TwitchAuthManagedByDatabase")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
@@ -1291,6 +1004,11 @@ namespace Backend.Migrations
|
||||
.HasMaxLength(300)
|
||||
.HasColumnType("character varying(300)");
|
||||
|
||||
b.Property<string>("ViewerStatsProviderBaseUrl")
|
||||
.IsRequired()
|
||||
.HasMaxLength(400)
|
||||
.HasColumnType("character varying(400)");
|
||||
|
||||
b.Property<string>("WorkflowRulesJson")
|
||||
.IsRequired()
|
||||
.ValueGeneratedOnAdd()
|
||||
@@ -1300,58 +1018,6 @@ namespace Backend.Migrations
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("SiteSettings");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
ClipAdminMenuVisible = true,
|
||||
ClipReviewEnabled = true,
|
||||
ClipSubmissionDisabledMessage = "Clip-Einreichungen sind aktuell geschlossen.",
|
||||
ClipSubmissionsEnabled = false,
|
||||
ContactContent = "Kontakt zum Award-Team\nDu hast Fragen zur Nominierung, zum Voting, zu Clips oder zur Show? Schreib dem Team ueber die hinterlegte Kontaktseite.\n\nDatenschutzfragen\nFuer Datenschutzanfragen nutze bitte die Datenschutz-E-Mail aus diesem Footer.\n\nCommunity & Kooperationen\nSocial Links und Partneranfragen werden vom Admin-Team gepflegt und koordiniert.",
|
||||
ContactUrl = "https://vtuber-star-awards.de/kontakt",
|
||||
DemoLoginDisplayName = "Jayuhime Admin",
|
||||
DemoLoginEmail = "",
|
||||
DemoLoginEnabled = false,
|
||||
DemoLoginManagedByDatabase = false,
|
||||
DemoLoginPasswordHash = "",
|
||||
DemoLoginPasswordSalt = "",
|
||||
DemoLoginTwitchUserId = "jayuhime_admin",
|
||||
FaqJson = "[{\"question\":\"Wer darf nominiert werden?\",\"answer\":\"Jede:r aktive deutschsprachige VTuber kann nominiert werden \\u2014 unabh\\u00E4ngig von Follower-Zahl oder Plattform. Die Community schl\\u00E4gt in der Nominierungsphase ihre Favorit:innen vor.\"},{\"question\":\"Wie funktioniert das Voting?\",\"answer\":\"Du meldest dich ausschlie\\u00DFlich mit deinem Twitch-Account an \\u2014 nur so kannst du teilnehmen. Das h\\u00E4lt das Voting fair und bot-frei. Danach vergibst du pro Kategorie eine Stimme, \\u00E4nderbar bis zum Ende der Phase.\"},{\"question\":\"Was kostet die Teilnahme?\",\"answer\":\"Gar nichts. Nominieren, voten und die Show schauen ist komplett kostenlos \\u2014 der VTuber Star Award ist ein Community-Event von Fans f\\u00FCr Fans.\"},{\"question\":\"Wann und wo findet die Award-Show statt?\",\"answer\":\"Die gro\\u00DFe Live-Show wird von Jayuhime gehostet und auf Twitch \\u0026 YouTube gestreamt. Den genauen Termin findest du im Countdown oben \\u2014 sei live dabei, wenn die Stars gek\\u00FCrt werden!\"},{\"question\":\"Ich wurde nominiert \\u2014 was nun?\",\"answer\":\"Gl\\u00FCckwunsch! Du erh\\u00E4ltst eine Benachrichtigung mit allen Infos. Teile deine Nominierung gern mit deiner Community und ruf zum Voten auf \\u2014 jede Stimme z\\u00E4hlt.\"}]",
|
||||
HostDisplayName = "Jayuhime",
|
||||
HostTagline = "VTuber & Award Host",
|
||||
ImprintContent = "Anbieter\nVTuber Star Awards, vertreten durch Jayuhime.\n\nKontakt\nNutze fuer organisatorische Fragen bitte die Kontaktseite oder die hinterlegte Kontaktadresse.\n\nHinweis\nDieses Impressum ist ein redaktioneller Platzhalter und sollte vor dem Livegang mit den tatsaechlichen Anbieterangaben ersetzt werden.",
|
||||
ImprintUrl = "https://vtuber-star-awards.de/impressum",
|
||||
MaintenanceMessage = "Die Award-Galaxie wird gerade liebevoll poliert. Schau gleich wieder vorbei.",
|
||||
MaintenanceModeEnabled = false,
|
||||
MaintenanceTitle = "Sternenpause",
|
||||
NewsletterUrl = "https://vtuber-star-awards.de/newsletter",
|
||||
NominationLinkBlacklistJson = "[{\"Url\":\"https://kick.com/\"},{\"Url\":\"https://www.twitch.tv/\"},{\"Url\":\"https://www.youtube.com/\"}]",
|
||||
PrivacyEmail = "datenschutz@vtuber-star-awards.de",
|
||||
PrivacyPolicyContent = "Verantwortliche:r\nVTuber Star Awards, vertreten durch Jayuhime. Kontakt: datenschutz@vtuber-star-awards.de\n\nWelche Daten wir verarbeiten\nBei Teilnahme (Voting, Nominierung, Clip-Einreichung) verarbeiten wir ausschließlich deine Twitch-User-ID sowie den Zeitstempel deiner Aktion.\nFür Show-Erinnerungen speichern wir optional deine E-Mail-Adresse.\n\nRechtsgrundlage\nVerarbeitung auf Basis von Art. 6 Abs. 1 lit. b DSGVO. Für optionale Erinnerungen gilt Art. 6 Abs. 1 lit. a DSGVO.\n\nZweck der Verarbeitung\nDurchführung des VTuber Star Awards, Sicherstellung fairer Abstimmung, Spam-Prävention sowie Admin-Review von Einreichungen.\n\nLöschfristen\nAlle Teilnahmedaten werden spätestens 6 Monate nach der Award-Show automatisch gelöscht. E-Mail-Adressen werden nach der Show entfernt.\n\nDeine Rechte\nDu hast das Recht auf Auskunft, Löschung, Berichtigung, Widerspruch und Beschwerde bei der zuständigen Aufsichtsbehörde.\n\nWeitergabe an Dritte\nKeine Weitergabe zu Werbezwecken. Technische Dienstleister verarbeiten Daten ausschließlich im Rahmen der Auftragsverarbeitung.",
|
||||
PrivacyPolicyUpdatedAt = new DateTimeOffset(new DateTime(2026, 6, 23, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
PrivacyPolicyUpdatedBy = "seed",
|
||||
RiskRulesJson = "[{\"key\":\"resubmitted_ballot\",\"label\":\"Ballot erneut gespeichert\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User sein Voting erneut speichert.\"},{\"key\":\"rapid_vote_updates\",\"label\":\"Voting-Burst\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr schnell mehrere Voting-Aenderungen ausloest.\"},{\"key\":\"resubmitted_nomination\",\"label\":\"Nominierung erneut eingereicht\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"low\",\"description\":\"Erstellt einen Hinweis, wenn ein User in derselben Kategorie erneut nominiert.\"},{\"key\":\"rapid_nomination_burst\",\"label\":\"Nominierungs-Burst\",\"enabled\":true,\"threshold\":10,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Nominierungen in kurzer Zeit sendet.\"},{\"key\":\"duplicate_clip_submission\",\"label\":\"Doppelter Clip\",\"enabled\":true,\"threshold\":1,\"windowMinutes\":360,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn ein User denselben Clip erneut einreicht.\"},{\"key\":\"rapid_clip_burst\",\"label\":\"Clip-Burst\",\"enabled\":true,\"threshold\":5,\"windowMinutes\":10,\"severity\":\"high\",\"description\":\"Erstellt einen Hinweis, wenn ein User sehr viele Clips in kurzer Zeit sendet.\"},{\"key\":\"rapid_login_ip\",\"label\":\"Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere neue Sessions von derselben IP entstehen.\"},{\"key\":\"rapid_demo_login_ip\",\"label\":\"Demo-Login-Burst pro IP\",\"enabled\":true,\"threshold\":3,\"windowMinutes\":15,\"severity\":\"medium\",\"description\":\"Erstellt einen Hinweis, wenn mehrere Demo-Admin-Sessions von derselben IP entstehen.\"}]",
|
||||
SessionIdleTimeoutHours = 3,
|
||||
ShareDiscordUrl = "",
|
||||
ShareXUrl = "",
|
||||
ShowactApplicationDisabledMessage = "Showact-Bewerbungen sind aktuell geschlossen.",
|
||||
ShowactApplicationsEnabled = false,
|
||||
ShowactFormSchemaJson = "[]",
|
||||
ShowactsContent = "Informationen zu Showact-Bewerbungen, Ablauf und Kontakt fuer die Award-Show.",
|
||||
ShowactsUrl = "https://vtuber-star-awards.de/showacts",
|
||||
SocialLinksJson = "[{\"label\":\"Twitch\",\"platform\":\"twitch\",\"url\":\"https://twitch.tv/jayuhime\",\"icon\":\"twitch\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"YouTube\",\"platform\":\"youtube\",\"url\":\"https://youtube.com/c/Jayuhime\",\"icon\":\"youtube\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"X\",\"platform\":\"x\",\"url\":\"https://x.com/jayuhime\",\"icon\":\"x\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Instagram\",\"platform\":\"instagram\",\"url\":\"https://instagram.com/jayuhime\",\"icon\":\"instagram\",\"showOnHost\":true,\"showOnCommunity\":true},{\"label\":\"Discord\",\"platform\":\"discord\",\"url\":\"https://discord.gg/jayuhime\",\"icon\":\"discord\",\"showOnHost\":true,\"showOnCommunity\":true}]",
|
||||
SponsorsContent = "Sponsoren & Partner\nHier koennen Sponsor:innen, Medienpartner, Community-Partner und Supporter des VTuber Star Awards vorgestellt werden.\n\nPartner werden im Rahmen der Show und auf den oeffentlichen Kontaktflaechen genannt, sobald sie final bestaetigt sind.",
|
||||
SponsorsUrl = "https://vtuber-star-awards.de/partner",
|
||||
SponsorsVisible = true,
|
||||
TwitchAuthManagedByDatabase = false,
|
||||
TwitchClientId = "",
|
||||
TwitchClientSecret = "",
|
||||
TwitchRedirectUri = "",
|
||||
TwitchScope = "",
|
||||
WorkflowRulesJson = "[{\"key\":\"max_finalists_per_category\",\"label\":\"Finale Kandidat:innen pro Kategorie\",\"enabled\":true,\"limit\":4,\"mode\":\"block\",\"description\":\"Begrenzt, wie viele finale Kandidat:innen in einer Kategorie vorbereitet werden.\"},{\"key\":\"max_candidate_appearances\",\"label\":\"Kandidaturen pro Person\",\"enabled\":true,\"limit\":2,\"mode\":\"warn\",\"description\":\"Warnt oder blockiert, wenn dieselbe Person in zu vielen Kategorien final auftaucht.\"},{\"key\":\"max_winner_placements\",\"label\":\"Gewinnerpl\\u00E4tze pro Person\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn dieselbe Person mehrfach als Gewinner:in gesetzt wird.\"},{\"key\":\"winner_requires_clip\",\"label\":\"Gewinner braucht Clip-Link\",\"enabled\":true,\"limit\":1,\"mode\":\"block\",\"description\":\"Verhindert oder warnt, wenn ein Gewinner ohne gepflegten YouTube-/Twitch-Clip gesetzt wird.\"}]"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.Sponsor", b =>
|
||||
@@ -1650,24 +1316,6 @@ namespace Backend.Migrations
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("VoteBallots");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_1"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
SeasonId = 1,
|
||||
Status = "submitted",
|
||||
SubmittedAt = new DateTimeOffset(new DateTime(2026, 6, 11, 12, 5, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)),
|
||||
SubmittedByTwitchId = "twitch_vote_2"
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.VoteEntry", b =>
|
||||
@@ -1696,36 +1344,6 @@ namespace Backend.Migrations
|
||||
b.HasIndex("CategoryId");
|
||||
|
||||
b.ToTable("VoteEntries");
|
||||
|
||||
b.HasData(
|
||||
new
|
||||
{
|
||||
Id = 1,
|
||||
BallotId = 1,
|
||||
CandidateId = 1,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2,
|
||||
BallotId = 1,
|
||||
CandidateId = 4,
|
||||
CategoryId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
BallotId = 2,
|
||||
CandidateId = 2,
|
||||
CategoryId = 1
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 4,
|
||||
BallotId = 2,
|
||||
CandidateId = 6,
|
||||
CategoryId = 3
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Backend.Domain.AwardResult", b =>
|
||||
@@ -1798,6 +1416,12 @@ namespace Backend.Migrations
|
||||
.HasForeignKey("CandidateId")
|
||||
.OnDelete(DeleteBehavior.SetNull);
|
||||
|
||||
b.HasOne("Backend.Domain.Season", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("SeasonId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Candidate");
|
||||
});
|
||||
|
||||
@@ -0,0 +1,292 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Backend.Migrations;
|
||||
|
||||
public partial class AdjustDemoSubcategoriesAndArchive : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
DELETE FROM "RiskFlags" WHERE "SeasonId" IN (999, 1000, 1001);
|
||||
DELETE FROM "Seasons" WHERE "Id" IN (999, 1000, 1001) AND "IsDemo" = TRUE;
|
||||
DELETE FROM "StreamerIdentities" WHERE "Id" BETWEEN 3001 AND 3020;
|
||||
|
||||
INSERT INTO "Seasons" (
|
||||
"Id", "Year", "Name", "IsDemo", "IsCurrent", "IsCommunityOnly", "CurrentPhase",
|
||||
"NominationStartsAt", "NominationEndsAt", "VotingStartsAt", "VotingEndsAt",
|
||||
"ReviewStartsAt", "ReviewEndsAt", "ShowDate", "ShowStartsAt",
|
||||
"WinnersPublishedAt", "WinnersPublishedByTwitchId", "SubcategoryTemplatesJson", "WorkflowRulesJson"
|
||||
)
|
||||
VALUES
|
||||
(999, 2024, 'VTuber Star Awards 2024 Demo Archiv', TRUE, FALSE, FALSE, 'Archiv',
|
||||
DATE '2024-04-01', DATE '2024-04-28', DATE '2024-05-10', DATE '2024-05-24',
|
||||
DATE '2024-04-29', DATE '2024-05-09', DATE '2024-06-22', TIME '20:00',
|
||||
TIMESTAMPTZ '2024-06-23 10:00:00+00', 'demo_owner',
|
||||
'[{"name":"Hidden Star","slug":"hidden-star","sortOrder":1,"viewerRangeMin":1,"viewerRangeMax":20},{"name":"Rising Star","slug":"rising-star","sortOrder":2,"viewerRangeMin":21,"viewerRangeMax":60},{"name":"Shining Star","slug":"shining-star","sortOrder":3,"viewerRangeMin":61,"viewerRangeMax":null}]',
|
||||
'[]'),
|
||||
(1000, 2025, 'VTuber Star Awards 2025 Demo Archiv', TRUE, FALSE, FALSE, 'Archiv',
|
||||
DATE '2025-04-01', DATE '2025-04-28', DATE '2025-05-10', DATE '2025-05-24',
|
||||
DATE '2025-04-29', DATE '2025-05-09', DATE '2025-06-21', TIME '20:00',
|
||||
TIMESTAMPTZ '2025-06-22 10:00:00+00', 'demo_owner',
|
||||
'[{"name":"Hidden Star","slug":"hidden-star","sortOrder":1,"viewerRangeMin":1,"viewerRangeMax":20},{"name":"Rising Star","slug":"rising-star","sortOrder":2,"viewerRangeMin":21,"viewerRangeMax":60},{"name":"Shining Star","slug":"shining-star","sortOrder":3,"viewerRangeMin":61,"viewerRangeMax":null}]',
|
||||
'[]'),
|
||||
(1001, 2026, 'VTuber Star Awards 2026 Demo', TRUE, TRUE, FALSE, 'Voting',
|
||||
DATE '2026-05-18', DATE '2026-06-16', DATE '2026-06-24', DATE '2026-07-19',
|
||||
DATE '2026-06-17', DATE '2026-06-23', DATE '2026-08-08', TIME '20:00',
|
||||
NULL, NULL,
|
||||
'[{"name":"Hidden Star","slug":"hidden-star","sortOrder":1,"viewerRangeMin":1,"viewerRangeMax":20},{"name":"Rising Star","slug":"rising-star","sortOrder":2,"viewerRangeMin":21,"viewerRangeMax":60},{"name":"Shining Star","slug":"shining-star","sortOrder":3,"viewerRangeMin":61,"viewerRangeMax":null}]',
|
||||
'[]');
|
||||
|
||||
WITH tiers(ord, name, slug, min_viewers, max_viewers) AS (
|
||||
VALUES
|
||||
(1, 'Hidden Star', 'hidden-star', 1, 20),
|
||||
(2, 'Rising Star', 'rising-star', 21, 60),
|
||||
(3, 'Shining Star', 'shining-star', 61, NULL)
|
||||
),
|
||||
active_groups(ord, name, slug) AS (
|
||||
VALUES
|
||||
(1, 'Gaming', 'gaming'),
|
||||
(2, 'Music', 'music'),
|
||||
(3, 'Art & Design', 'art-design'),
|
||||
(4, 'Community', 'community')
|
||||
),
|
||||
archive_2025_groups(ord, name, slug) AS (
|
||||
VALUES
|
||||
(1, 'Gaming', 'gaming'),
|
||||
(2, 'Music', 'music'),
|
||||
(3, 'Community', 'community')
|
||||
),
|
||||
archive_2024_groups(ord, name, slug) AS (
|
||||
VALUES
|
||||
(1, 'Gaming', 'gaming'),
|
||||
(2, 'Music', 'music')
|
||||
)
|
||||
INSERT INTO "Categories" (
|
||||
"Id", "SeasonId", "GroupName", "Name", "Slug", "Description", "SortOrder", "MaxNomineesPerUser", "ViewerRangeMin", "ViewerRangeMax"
|
||||
)
|
||||
SELECT 1100 + ((g.ord - 1) * 3) + t.ord, 1001, g.name, t.name, g.slug || '-' || t.slug,
|
||||
g.name || '-Creator im ' || t.name || '-Tier.', ((g.ord - 1) * 30) + (t.ord * 10), 2, t.min_viewers, t.max_viewers
|
||||
FROM active_groups g CROSS JOIN tiers t
|
||||
UNION ALL
|
||||
SELECT 1200 + ((g.ord - 1) * 3) + t.ord, 1000, g.name, t.name, 'archive-2025-' || g.slug || '-' || t.slug,
|
||||
'Archiv-Unterkategorie.', ((g.ord - 1) * 30) + (t.ord * 10), 2, t.min_viewers, t.max_viewers
|
||||
FROM archive_2025_groups g CROSS JOIN tiers t
|
||||
UNION ALL
|
||||
SELECT 1300 + ((g.ord - 1) * 3) + t.ord, 999, g.name, t.name, 'archive-2024-' || g.slug || '-' || t.slug,
|
||||
'Archiv-Unterkategorie.', ((g.ord - 1) * 30) + (t.ord * 10), 2, t.min_viewers, t.max_viewers
|
||||
FROM archive_2024_groups g CROSS JOIN tiers t;
|
||||
|
||||
INSERT INTO "StreamerIdentities" ("Id", "Platform", "Login", "NormalizedKey", "DisplayName", "ProfileUrl", "LastResolvedAt")
|
||||
VALUES
|
||||
(3001, 'Twitch', 'aki_lumina', 'twitch:aki_lumina', 'Aki Lumina', 'https://twitch.tv/aki_lumina', TIMESTAMPTZ '2026-06-27 12:00:00+00'),
|
||||
(3002, 'Twitch', 'mira_orbit', 'twitch:mira_orbit', 'Mira Orbit', 'https://twitch.tv/mira_orbit', TIMESTAMPTZ '2026-06-27 12:02:00+00'),
|
||||
(3003, 'Twitch', 'nova_nym', 'twitch:nova_nym', 'Nova Nym', 'https://twitch.tv/nova_nym', TIMESTAMPTZ '2026-06-27 12:04:00+00'),
|
||||
(3004, 'Twitch', 'luna_koi', 'twitch:luna_koi', 'Luna Koi', 'https://twitch.tv/luna_koi', TIMESTAMPTZ '2026-06-27 12:06:00+00'),
|
||||
(3005, 'Twitch', 'runa_bits', 'twitch:runa_bits', 'Runa Bits', 'https://twitch.tv/runa_bits', TIMESTAMPTZ '2026-06-27 12:08:00+00'),
|
||||
(3006, 'Twitch', 'sora_slate', 'twitch:sora_slate', 'Sora Slate', 'https://twitch.tv/sora_slate', TIMESTAMPTZ '2026-06-27 12:10:00+00');
|
||||
|
||||
WITH active_names(name, slug) AS (
|
||||
VALUES
|
||||
('Aki Lumina', 'aki_lumina'), ('Miki Mint', 'miki_mint'), ('Nova Nym', 'nova_nym'),
|
||||
('Mira Orbit', 'mira_orbit'), ('Taro Tactics', 'taro_tactics'), ('Yuna Quest', 'yuna_quest'),
|
||||
('Nova Nym Prime', 'nova_nym_prime'), ('Rin Replay', 'rin_replay'), ('Kira Comet', 'kira_comet'),
|
||||
('Melo Moon', 'melo_moon'), ('Echo Rill', 'echo_rill'), ('Vivi Verse', 'vivi_verse'),
|
||||
('Luna Koi', 'luna_koi'), ('Hana Hertz', 'hana_hertz'), ('Nyra Novel', 'nyra_novel'),
|
||||
('Vera Volt', 'vera_volt'), ('Kai Myth', 'kai_myth'), ('Mina Maze', 'mina_maze'),
|
||||
('Iris Ink', 'iris_ink'), ('Pia Palette', 'pia_palette'), ('Theo Thimble', 'theo_thimble'),
|
||||
('Neon Nori', 'neon_nori'), ('Slate Sen', 'slate_sen'), ('Momo Motion', 'momo_motion'),
|
||||
('Chroma Vale', 'chroma_vale'), ('Riku Render', 'riku_render'), ('Faye Flux', 'faye_flux'),
|
||||
('Runa Bits', 'runa_bits'), ('Bibi Beacon', 'bibi_beacon'), ('Ori Opal', 'ori_opal'),
|
||||
('Sora Slate', 'sora_slate'), ('Cleo Campfire', 'cleo_campfire'), ('Juno Jamboree', 'juno_jamboree'),
|
||||
('Ember Vail', 'ember_vail'), ('Riku Relay', 'riku_relay'), ('Nami Node', 'nami_node')
|
||||
),
|
||||
numbered_active AS (
|
||||
SELECT row_number() OVER () AS rn, name, slug FROM active_names
|
||||
)
|
||||
INSERT INTO "Candidates" (
|
||||
"Id", "SeasonId", "CategoryId", "StreamerIdentityId", "DisplayName", "ChannelSlug", "Platform",
|
||||
"NominationTally", "AcceptanceStatus", "AcceptanceNote", "ClipCompilationUrl", "ClipCompilationTitle", "ClipCompilationPlatform", "ClipEmbedStatus"
|
||||
)
|
||||
SELECT 2000 + rn, 1001, 1101 + ((rn - 1) / 3)::int,
|
||||
CASE WHEN rn <= 6 THEN (3000 + rn)::integer ELSE NULL::integer END,
|
||||
name, slug, 'Twitch',
|
||||
3 + ((rn * 2) % 11),
|
||||
CASE WHEN rn % 6 = 0 THEN 'pending' ELSE 'approved' END,
|
||||
CASE WHEN rn IN (1, 10, 16, 25, 34) THEN 'Demo-Highlight fuer Review gepflegt.' ELSE NULL END,
|
||||
CASE rn
|
||||
WHEN 1 THEN 'https://youtu.be/demo-aki-rise'
|
||||
WHEN 7 THEN 'https://clips.twitch.tv/demo-nova-finale'
|
||||
WHEN 10 THEN 'https://youtu.be/demo-melo-live'
|
||||
WHEN 16 THEN 'https://youtu.be/demo-vera-stage'
|
||||
WHEN 25 THEN 'https://youtu.be/demo-chroma-design'
|
||||
WHEN 34 THEN 'https://clips.twitch.tv/demo-ember-moment'
|
||||
ELSE NULL
|
||||
END,
|
||||
CASE rn
|
||||
WHEN 1 THEN 'Aki Lumina Hidden Star Reel'
|
||||
WHEN 7 THEN 'Nova Nym Shining Clip'
|
||||
WHEN 10 THEN 'Melo Moon Live Set'
|
||||
WHEN 16 THEN 'Vera Volt Stage Reel'
|
||||
WHEN 25 THEN 'Chroma Vale Design Reel'
|
||||
WHEN 34 THEN 'Ember Vail Finale Clip'
|
||||
ELSE NULL
|
||||
END,
|
||||
CASE WHEN rn IN (7, 34) THEN 'Twitch' WHEN rn IN (1, 10, 16, 25) THEN 'YouTube' ELSE NULL END,
|
||||
CASE WHEN rn IN (1, 7, 10, 16, 25, 34) THEN 'available' ELSE 'unchecked' END
|
||||
FROM numbered_active;
|
||||
|
||||
WITH archive_2025_names(name, slug) AS (
|
||||
VALUES
|
||||
('Archiv Aster', 'archiv_aster'), ('Archiv Beryl', 'archiv_beryl'), ('Archiv Coda', 'archiv_coda'),
|
||||
('Archiv Drift', 'archiv_drift'), ('Archiv Elara', 'archiv_elara'), ('Archiv Finch', 'archiv_finch'),
|
||||
('Archiv Lyra', 'archiv_lyra'), ('Archiv Muse', 'archiv_muse'), ('Archiv Nia', 'archiv_nia')
|
||||
),
|
||||
archive_2024_names(name, slug) AS (
|
||||
VALUES
|
||||
('Archiv Poppy', 'archiv_poppy'), ('Archiv Quartz', 'archiv_quartz'), ('Archiv Rune', 'archiv_rune'),
|
||||
('Archiv Sol', 'archiv_sol'), ('Archiv Tide', 'archiv_tide'), ('Archiv Uma', 'archiv_uma')
|
||||
),
|
||||
numbered_2025 AS (
|
||||
SELECT row_number() OVER () AS rn, name, slug FROM archive_2025_names
|
||||
),
|
||||
numbered_2024 AS (
|
||||
SELECT row_number() OVER () AS rn, name, slug FROM archive_2024_names
|
||||
)
|
||||
INSERT INTO "Candidates" (
|
||||
"Id", "SeasonId", "CategoryId", "StreamerIdentityId", "DisplayName", "ChannelSlug", "Platform",
|
||||
"NominationTally", "AcceptanceStatus", "AcceptanceNote", "ClipCompilationUrl", "ClipCompilationTitle", "ClipCompilationPlatform", "ClipEmbedStatus"
|
||||
)
|
||||
SELECT 2100 + rn, 1000, 1200 + rn, NULL::integer, name, slug, 'Twitch', 7 + rn, 'approved', NULL,
|
||||
CASE WHEN rn IN (3, 6, 9) THEN 'https://clips.twitch.tv/demo-' || slug ELSE 'https://youtu.be/demo-' || slug END,
|
||||
name || ' Winner Reel',
|
||||
CASE WHEN rn IN (3, 6, 9) THEN 'Twitch' ELSE 'YouTube' END,
|
||||
'available'
|
||||
FROM numbered_2025
|
||||
UNION ALL
|
||||
SELECT 2200 + rn, 999, 1300 + rn, NULL::integer, name, slug, 'Twitch', 6 + rn, 'approved', NULL,
|
||||
CASE WHEN rn IN (3, 6) THEN 'https://clips.twitch.tv/demo-' || slug ELSE 'https://youtu.be/demo-' || slug END,
|
||||
name || ' Winner Reel',
|
||||
CASE WHEN rn IN (3, 6) THEN 'Twitch' ELSE 'YouTube' END,
|
||||
'available'
|
||||
FROM numbered_2024;
|
||||
|
||||
INSERT INTO "Nominations" (
|
||||
"Id", "SeasonId", "CategoryId", "CategoryGroupName", "SubmittedByTwitchId", "CandidateId", "StreamerIdentityId", "SuggestedCategoryId",
|
||||
"CandidateText", "StreamUrl", "ResolvedChannel", "ResolvedPlatform", "AvgViewers", "HoursStreamed", "HoursWatched", "PeakViewers", "FollowersGained",
|
||||
"TrackerStatus", "TrackerCheckedAt", "TrackingReviewStatus", "TrackingFlagsJson", "TrackingReviewNote", "TrackingReviewedByTwitchId", "TrackingReviewedAt",
|
||||
"Status", "ReviewNote", "ReviewedByTwitchId", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(4001, 1001, 1101, 'Gaming', 'viewer_1001', 2001, 3001, NULL, 'Aki Lumina', 'https://twitch.tv/aki_lumina', 'aki_lumina', 'Twitch', 14, 42, 2600, 48, 210, 'resolved', TIMESTAMPTZ '2026-06-18 09:20:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:10:00+00', 'approved', 'Hidden tier passt.', 'reviewer_demo', TIMESTAMPTZ '2026-06-02 18:30:00+00', TIMESTAMPTZ '2026-06-18 10:10:00+00'),
|
||||
(4002, 1001, 1102, 'Gaming', 'viewer_1002', 2004, 3002, NULL, 'Mira Orbit', 'https://twitch.tv/mira_orbit', 'mira_orbit', 'Twitch', 38, 58, 5900, 96, 510, 'resolved', TIMESTAMPTZ '2026-06-18 09:24:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:15:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-03 20:15:00+00', TIMESTAMPTZ '2026-06-18 10:15:00+00'),
|
||||
(4003, 1001, 1103, 'Gaming', 'viewer_1003', 2007, 3003, NULL, 'Nova Nym Prime', 'https://twitch.tv/nova_nym_prime', 'nova_nym_prime', 'Twitch', 116, 44, 9100, 420, 1200, 'resolved', TIMESTAMPTZ '2026-06-18 09:30:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:22:00+00', 'approved', 'Shining tier passt.', 'reviewer_demo', TIMESTAMPTZ '2026-06-04 14:45:00+00', TIMESTAMPTZ '2026-06-18 10:22:00+00'),
|
||||
(4004, 1001, 1104, 'Music', 'viewer_1004', 2010, NULL, NULL, 'Melo Moon', 'https://twitch.tv/melo_moon', 'melo_moon', 'Twitch', 18, 35, 2800, 52, 240, 'resolved', TIMESTAMPTZ '2026-06-18 09:40:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:30:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-05 21:05:00+00', TIMESTAMPTZ '2026-06-18 10:30:00+00'),
|
||||
(4005, 1001, 1105, 'Music', 'viewer_1005', 2013, 3004, NULL, 'Luna Koi', 'https://twitch.tv/luna_koi', 'luna_koi', 'Twitch', 45, 51, 6100, 110, 620, 'resolved', TIMESTAMPTZ '2026-06-18 09:45:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:36:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-06 19:25:00+00', TIMESTAMPTZ '2026-06-18 10:36:00+00'),
|
||||
(4006, 1001, 1106, 'Music', 'viewer_1006', 2016, NULL, NULL, 'Vera Volt', 'https://twitch.tv/vera_volt', 'vera_volt', 'Twitch', 88, 35, 7400, 210, 430, 'resolved', TIMESTAMPTZ '2026-06-18 09:48:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 10:41:00+00', 'approved', 'Live-Musik-Set pruefbar.', 'reviewer_demo', TIMESTAMPTZ '2026-06-07 17:55:00+00', TIMESTAMPTZ '2026-06-18 10:41:00+00'),
|
||||
(4007, 1001, 1107, 'Art & Design', 'viewer_1007', 2019, NULL, NULL, 'Iris Ink', 'https://twitch.tv/iris_ink', 'iris_ink', 'Twitch', 16, 31, 2100, 41, 180, 'resolved', TIMESTAMPTZ '2026-06-18 09:52:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:00:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-08 18:10:00+00', TIMESTAMPTZ '2026-06-18 11:00:00+00'),
|
||||
(4008, 1001, 1108, 'Art & Design', 'viewer_1008', 2022, NULL, NULL, 'Neon Nori', 'https://twitch.tv/neon_nori', 'neon_nori', 'Twitch', 52, 65, 31800, 130, 920, 'resolved', TIMESTAMPTZ '2026-06-18 09:58:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:06:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-09 16:20:00+00', TIMESTAMPTZ '2026-06-18 11:06:00+00'),
|
||||
(4009, 1001, 1109, 'Art & Design', 'viewer_1009', 2025, NULL, NULL, 'Chroma Vale', 'https://twitch.tv/chroma_vale', 'chroma_vale', 'Twitch', 177, 54, 24200, 440, 610, 'resolved', TIMESTAMPTZ '2026-06-18 10:02:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:12:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-10 20:40:00+00', TIMESTAMPTZ '2026-06-18 11:12:00+00'),
|
||||
(4010, 1001, 1110, 'Community', 'viewer_1010', 2028, 3005, NULL, 'Runa Bits', 'https://twitch.tv/runa_bits', 'runa_bits', 'Twitch', 12, 49, 1700, 29, 120, 'resolved', TIMESTAMPTZ '2026-06-18 10:08:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:18:00+00', 'approved', 'Community-Event mit Planungsdoku.', 'reviewer_demo', TIMESTAMPTZ '2026-06-11 15:50:00+00', TIMESTAMPTZ '2026-06-18 11:18:00+00'),
|
||||
(4011, 1001, 1111, 'Community', 'viewer_1011', 2031, 3006, NULL, 'Sora Slate', 'https://twitch.tv/sora_slate', 'sora_slate', 'Twitch', 44, 37, 11800, 92, 340, 'resolved', TIMESTAMPTZ '2026-06-18 10:14:00+00', 'clear', '[]', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:24:00+00', 'approved', NULL, 'reviewer_demo', TIMESTAMPTZ '2026-06-12 19:05:00+00', TIMESTAMPTZ '2026-06-18 11:24:00+00'),
|
||||
(4012, 1001, 1112, 'Community', 'viewer_1012', 2034, NULL, NULL, 'Ember Vail', 'https://twitch.tv/ember_vail', 'ember_vail', 'Twitch', NULL, NULL, NULL, NULL, NULL, 'no_data', TIMESTAMPTZ '2026-06-18 10:18:00+00', 'needs_review', '[{"key":"no_tracker_data","label":"Keine Tracker-Daten","severity":"medium","description":"TwitchTracker hat keinen belastbaren Summary-Wert geliefert.","requiresManualReview":true,"blocksApproval":false,"adminNoteRequiredOnOverride":false}]', 'Manueller Review noetig.', NULL, NULL, 'pending', 'Tracker-Daten nachfordern.', NULL, TIMESTAMPTZ '2026-06-13 22:15:00+00', NULL);
|
||||
|
||||
INSERT INTO "VoteBallots" ("Id", "SeasonId", "SubmittedByTwitchId", "Status", "SubmittedAt")
|
||||
VALUES
|
||||
(5001, 1001, 'vote_user_001', 'submitted', TIMESTAMPTZ '2026-06-25 18:10:00+00'),
|
||||
(5002, 1001, 'vote_user_002', 'submitted', TIMESTAMPTZ '2026-06-25 18:16:00+00'),
|
||||
(5003, 1001, 'vote_user_003', 'submitted', TIMESTAMPTZ '2026-06-25 19:05:00+00'),
|
||||
(5004, 1001, 'vote_user_004', 'submitted', TIMESTAMPTZ '2026-06-26 12:45:00+00'),
|
||||
(5005, 1001, 'vote_user_005', 'submitted', TIMESTAMPTZ '2026-06-26 20:30:00+00'),
|
||||
(5006, 1001, 'vote_user_006', 'submitted', TIMESTAMPTZ '2026-06-27 09:20:00+00'),
|
||||
(5007, 1001, 'vote_user_007', 'draft', TIMESTAMPTZ '2026-06-27 14:15:00+00'),
|
||||
(5008, 1001, 'vote_user_008', 'submitted', TIMESTAMPTZ '2026-06-28 21:05:00+00');
|
||||
|
||||
INSERT INTO "VoteEntries" ("Id", "BallotId", "CategoryId", "CandidateId")
|
||||
VALUES
|
||||
(5101, 5001, 1101, 2001), (5102, 5001, 1104, 2010), (5103, 5001, 1107, 2019), (5104, 5001, 1110, 2028),
|
||||
(5105, 5002, 1102, 2004), (5106, 5002, 1105, 2013), (5107, 5002, 1108, 2022), (5108, 5002, 1111, 2031),
|
||||
(5109, 5003, 1103, 2007), (5110, 5003, 1106, 2016), (5111, 5003, 1109, 2025), (5112, 5003, 1112, 2034),
|
||||
(5113, 5004, 1101, 2002), (5114, 5004, 1104, 2011), (5115, 5004, 1107, 2020), (5116, 5004, 1110, 2029),
|
||||
(5117, 5005, 1102, 2005), (5118, 5005, 1105, 2014), (5119, 5005, 1108, 2023), (5120, 5005, 1111, 2032),
|
||||
(5121, 5006, 1103, 2008), (5122, 5006, 1106, 2017), (5123, 5006, 1109, 2026), (5124, 5006, 1112, 2035),
|
||||
(5125, 5007, 1101, 2003), (5126, 5007, 1104, 2012),
|
||||
(5127, 5008, 1102, 2004), (5128, 5008, 1105, 2013), (5129, 5008, 1108, 2022), (5130, 5008, 1111, 2031);
|
||||
|
||||
INSERT INTO "Results" ("Id", "SeasonId", "CategoryId", "CandidateId", "CategoryName")
|
||||
SELECT 6000 + "Id" - 1200, 1000, "Id", 2100 + "Id" - 1200, "Name" FROM "Categories" WHERE "SeasonId" = 1000
|
||||
UNION ALL
|
||||
SELECT 6100 + "Id" - 1300, 999, "Id", 2200 + "Id" - 1300, "Name" FROM "Categories" WHERE "SeasonId" = 999;
|
||||
|
||||
INSERT INTO "ClipSubmissions" (
|
||||
"Id", "SeasonId", "CategoryId", "CandidateId", "SubmittedByTwitchId", "ClipUrl", "Title", "Creator", "Platform",
|
||||
"Status", "ReviewNote", "ReviewedByTwitchId", "CreatedFromIp", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(7001, 1001, 1103, 2007, 'viewer_2001', 'https://clips.twitch.tv/demo-nova-finale', 'Nova turns the boss fight', 'viewer_2001', 'Twitch', 'approved', 'Kontext passt.', 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2026-06-20 18:12:00+00', TIMESTAMPTZ '2026-06-21 09:00:00+00'),
|
||||
(7002, 1001, 1106, 2016, 'viewer_2002', 'https://youtu.be/demo-vera-stage', 'Vera sings the finale bridge', 'viewer_2002', 'YouTube', 'approved', NULL, 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2026-06-20 20:25:00+00', TIMESTAMPTZ '2026-06-21 09:08:00+00'),
|
||||
(7003, 1001, 1112, 2034, 'viewer_2003', 'https://clips.twitch.tv/demo-ember-moment', 'Ember opens the community event', 'viewer_2003', 'Twitch', 'pending', 'Timing pruefen.', NULL, '127.0.0.1', TIMESTAMPTZ '2026-06-21 11:40:00+00', NULL),
|
||||
(7004, 1001, 1109, 2025, 'viewer_2004', 'https://youtu.be/demo-chroma-design', 'Chroma explains the overlay rebuild', 'viewer_2004', 'YouTube', 'approved', NULL, 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2026-06-21 15:10:00+00', TIMESTAMPTZ '2026-06-22 08:45:00+00'),
|
||||
(7005, 1001, 1111, 2031, 'viewer_2005', 'https://clips.twitch.tv/demo-sora-community', 'Sora lets chat design the scene', 'viewer_2005', 'Twitch', 'pending', NULL, NULL, '127.0.0.1', TIMESTAMPTZ '2026-06-22 19:55:00+00', NULL),
|
||||
(7006, 1000, 1203, 2103, 'archiv_viewer_1', 'https://clips.twitch.tv/demo-archiv-coda', 'Archiv Coda finale clip', 'archiv_viewer_1', 'Twitch', 'approved', NULL, 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2025-06-10 19:00:00+00', TIMESTAMPTZ '2025-06-11 09:00:00+00'),
|
||||
(7007, 999, 1303, 2203, 'archiv_viewer_2', 'https://clips.twitch.tv/demo-archiv-rune', 'Archiv Rune classic moment', 'archiv_viewer_2', 'Twitch', 'approved', NULL, 'clip_reviewer', '127.0.0.1', TIMESTAMPTZ '2024-06-10 19:00:00+00', TIMESTAMPTZ '2024-06-11 09:00:00+00');
|
||||
|
||||
INSERT INTO "ShowactApplications" (
|
||||
"Id", "SeasonId", "ArtistName", "ContactEmail", "ContactDiscord", "PlatformUrl", "PerformanceType", "Description",
|
||||
"TechnicalNotes", "ReferenceUrl", "FieldResponsesJson", "Status", "ReviewNote", "ReviewedByTwitchId", "CreatedFromIp", "UserAgent", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(8001, 1001, 'Melo Moon', 'melo@example.invalid', 'melo_moon', 'https://twitch.tv/melo_moon', 'Live-Gesang', 'Akustisches Opening-Medley mit zwei kurzen Songs.', 'Benoetigt Instrumentalspur und Monitoring.', 'https://youtu.be/demo-melo-live', '{"performanceLength":"6 Minuten","contentRating":"family friendly"}', 'approved', 'Passt als Opener.', 'show_reviewer', '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2026-06-19 13:10:00+00', TIMESTAMPTZ '2026-06-20 10:00:00+00'),
|
||||
(8002, 1001, 'Neon Nori', 'nori@example.invalid', 'neon_nori', 'https://twitch.tv/neon_nori', 'Visual Interlude', 'Kurze Motion-Overlay-Performance zwischen zwei Award-Bloecken.', 'OBS-Szene mit WebM-Loop, kein Mikro.', 'https://youtu.be/demo-nori-motion', '{"performanceLength":"3 Minuten","contentRating":"keine Hinweise"}', 'pending', NULL, NULL, '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2026-06-20 16:40:00+00', NULL),
|
||||
(8003, 1000, 'Archiv Lyra', 'lyra@example.invalid', 'archiv_lyra', 'https://twitch.tv/archiv_lyra', 'Archiv Musik', 'Gewinner-Showcase aus dem Vorjahr.', 'VOD vorhanden.', 'https://youtu.be/demo-archiv-lyra', '{"performanceLength":"4 Minuten","contentRating":"family friendly"}', 'approved', 'Archiv-Showact.', 'show_reviewer', '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2025-06-01 12:05:00+00', TIMESTAMPTZ '2025-06-02 09:30:00+00'),
|
||||
(8004, 999, 'Archiv Sol', 'sol@example.invalid', 'archiv_sol', 'https://twitch.tv/archiv_sol', 'Archiv Musik', 'Aelteres Archiv-Showcase fuer den Archiv-Endpunkt.', 'VOD vorhanden.', 'https://youtu.be/demo-archiv-sol', '{"performanceLength":"4 Minuten","contentRating":"family friendly"}', 'approved', 'Archiv-Showact.', 'show_reviewer', '127.0.0.1', 'DemoBrowser/1.0', TIMESTAMPTZ '2024-06-01 12:05:00+00', TIMESTAMPTZ '2024-06-02 09:30:00+00');
|
||||
|
||||
INSERT INTO "Sponsors" (
|
||||
"Id", "SeasonId", "Name", "WebsiteUrl", "LogoUrl", "Description", "Tier", "SortOrder", "IsVisible", "CreatedAt", "UpdatedAt"
|
||||
)
|
||||
VALUES
|
||||
(9001, 1001, 'CloudBeacon Hosting', 'https://example.invalid/cloudbeacon', '/demo/sponsors/cloudbeacon-hosting.svg', 'Server- und Bot-Hosting fuer Community-Projekte.', 'Main Partner', 10, TRUE, TIMESTAMPTZ '2026-06-01 10:00:00+00', NULL),
|
||||
(9002, 1001, 'NekoPixel Energy', 'https://example.invalid/nekopixel', '/demo/sponsors/nekopixel-energy.svg', 'Fiktiver Energy-Drink fuer lange Stream-Naechte.', 'Gold Partner', 20, TRUE, TIMESTAMPTZ '2026-06-01 10:05:00+00', NULL),
|
||||
(9003, 1001, 'PrismLoop Audio', 'https://example.invalid/prismloop', '/demo/sponsors/prismloop-audio.svg', 'Audio-Tools und Soundpacks fuer Creator:innen.', 'Gold Partner', 30, TRUE, TIMESTAMPTZ '2026-06-01 10:10:00+00', NULL),
|
||||
(9004, 1001, 'HoshiForge Studio', 'https://example.invalid/hoshiforge', '/demo/sponsors/hoshiforge-studio.svg', 'Branding, Overlays und kleine Motion-Pakete.', 'Community Partner', 40, TRUE, TIMESTAMPTZ '2026-06-01 10:15:00+00', NULL),
|
||||
(9005, 1001, 'ChibiCanvas Market', 'https://example.invalid/chibicanvas', '/demo/sponsors/chibicanvas-market.svg', 'Asset-Marktplatz fuer Panels, Emotes und Stream-Grafiken.', 'Community Partner', 50, TRUE, TIMESTAMPTZ '2026-06-01 10:20:00+00', NULL);
|
||||
|
||||
INSERT INTO "RiskFlags" (
|
||||
"Id", "SeasonId", "TwitchUserId", "Source", "Type", "Severity", "Status", "Summary", "CreatedFromIp", "UserAgent",
|
||||
"MetadataJson", "ReviewNote", "ReviewedByTwitchId", "CreatedAt", "ReviewedAt"
|
||||
)
|
||||
VALUES
|
||||
(10001, 1001, 'viewer_1012', 'tracking-review', 'no_tracker_data', 'medium', 'open', 'TwitchTracker lieferte keine belastbaren Daten fuer Ember Vail.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":1001,"nominationId":4012}', 'Manuelle Community-Pruefung vor Finale.', 'reviewer_demo', TIMESTAMPTZ '2026-06-18 11:02:00+00', TIMESTAMPTZ '2026-06-18 11:08:00+00'),
|
||||
(10002, 1001, 'vote_user_007', 'voting', 'draft_ballot', 'low', 'resolved', 'Draft-Ballot ohne Submission, sichtbar fuer Dashboard-Randfall.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":1001,"ballotId":5007}', 'Nur Demo-Randfall.', 'reviewer_demo', TIMESTAMPTZ '2026-06-27 14:20:00+00', TIMESTAMPTZ '2026-06-27 15:00:00+00'),
|
||||
(10003, 1000, 'archiv_viewer_1', 'archive-cleanup', 'archived_clip', 'low', 'resolved', 'Archiv-Clip 2025 wurde geprueft.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":1000,"clipId":7006}', 'Archiv okay.', 'reviewer_demo', TIMESTAMPTZ '2025-06-11 09:10:00+00', TIMESTAMPTZ '2025-06-11 09:25:00+00'),
|
||||
(10004, 999, 'archiv_viewer_2', 'archive-cleanup', 'archived_clip', 'low', 'resolved', 'Archiv-Clip 2024 wurde geprueft.', '127.0.0.1', 'DemoBrowser/1.0', '{"seasonId":999,"clipId":7007}', 'Archiv okay.', 'reviewer_demo', TIMESTAMPTZ '2024-06-11 09:10:00+00', TIMESTAMPTZ '2024-06-11 09:25:00+00');
|
||||
|
||||
SELECT setval(pg_get_serial_sequence('"Seasons"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Seasons"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Categories"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Categories"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"StreamerIdentities"', 'Id'), COALESCE((SELECT MAX("Id") FROM "StreamerIdentities"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Candidates"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Candidates"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Nominations"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Nominations"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"VoteBallots"', 'Id'), COALESCE((SELECT MAX("Id") FROM "VoteBallots"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"VoteEntries"', 'Id'), COALESCE((SELECT MAX("Id") FROM "VoteEntries"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Results"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Results"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"ClipSubmissions"', 'Id'), COALESCE((SELECT MAX("Id") FROM "ClipSubmissions"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"ShowactApplications"', 'Id'), COALESCE((SELECT MAX("Id") FROM "ShowactApplications"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"Sponsors"', 'Id'), COALESCE((SELECT MAX("Id") FROM "Sponsors"), 1));
|
||||
SELECT setval(pg_get_serial_sequence('"RiskFlags"', 'Id'), COALESCE((SELECT MAX("Id") FROM "RiskFlags"), 1));
|
||||
"""
|
||||
);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql(
|
||||
"""
|
||||
DELETE FROM "RiskFlags" WHERE "SeasonId" IN (999, 1000, 1001);
|
||||
DELETE FROM "Seasons" WHERE "Id" IN (999, 1000, 1001) AND "IsDemo" = TRUE;
|
||||
DELETE FROM "StreamerIdentities" WHERE "Id" BETWEEN 3001 AND 3020;
|
||||
"""
|
||||
);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,159 +0,0 @@
|
||||
CREATE TABLE "__EFMigrationsHistory" (
|
||||
"MigrationId" character varying(150) NOT NULL,
|
||||
"ProductVersion" character varying(32) NOT NULL,
|
||||
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
|
||||
);
|
||||
|
||||
CREATE TABLE "Seasons" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"Year" integer NOT NULL,
|
||||
"Name" character varying(160) NOT NULL,
|
||||
"IsCurrent" boolean NOT NULL,
|
||||
"IsCommunityOnly" boolean NOT NULL,
|
||||
"CurrentPhase" character varying(60) NOT NULL,
|
||||
"NominationStartsAt" date NOT NULL,
|
||||
"NominationEndsAt" date NOT NULL,
|
||||
"VotingStartsAt" date NOT NULL,
|
||||
"VotingEndsAt" date NOT NULL,
|
||||
"ReviewStartsAt" date NOT NULL,
|
||||
"ReviewEndsAt" date NOT NULL,
|
||||
"ShowDate" date NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX "IX_Seasons_Year" ON "Seasons" ("Year");
|
||||
|
||||
CREATE TABLE "Categories" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"SeasonId" integer NOT NULL REFERENCES "Seasons" ("Id") ON DELETE CASCADE,
|
||||
"GroupName" character varying(80) NOT NULL,
|
||||
"Name" character varying(120) NOT NULL,
|
||||
"Slug" text NOT NULL,
|
||||
"Description" character varying(400) NOT NULL,
|
||||
"SortOrder" integer NOT NULL,
|
||||
"MaxNomineesPerUser" integer NOT NULL
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX "IX_Categories_SeasonId_Slug" ON "Categories" ("SeasonId", "Slug");
|
||||
|
||||
CREATE TABLE "VoteBallots" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"SeasonId" integer NOT NULL REFERENCES "Seasons" ("Id") ON DELETE CASCADE,
|
||||
"SubmittedByTwitchId" character varying(120) NOT NULL,
|
||||
"Status" character varying(30) NOT NULL,
|
||||
"SubmittedAt" timestamp with time zone NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX "IX_VoteBallots_SeasonId" ON "VoteBallots" ("SeasonId");
|
||||
|
||||
CREATE TABLE "Candidates" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"SeasonId" integer NOT NULL REFERENCES "Seasons" ("Id") ON DELETE CASCADE,
|
||||
"CategoryId" integer NOT NULL REFERENCES "Categories" ("Id") ON DELETE CASCADE,
|
||||
"DisplayName" character varying(120) NOT NULL,
|
||||
"ChannelSlug" character varying(120) NOT NULL,
|
||||
"Platform" character varying(40) NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX "IX_Candidates_CategoryId" ON "Candidates" ("CategoryId");
|
||||
CREATE INDEX "IX_Candidates_SeasonId" ON "Candidates" ("SeasonId");
|
||||
|
||||
CREATE TABLE "Nominations" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"SeasonId" integer NOT NULL REFERENCES "Seasons" ("Id") ON DELETE CASCADE,
|
||||
"CategoryId" integer NOT NULL REFERENCES "Categories" ("Id") ON DELETE CASCADE,
|
||||
"SubmittedByTwitchId" character varying(120) NOT NULL,
|
||||
"CandidateId" integer NULL REFERENCES "Candidates" ("Id"),
|
||||
"CandidateText" character varying(120) NULL,
|
||||
"CreatedAt" timestamp with time zone NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX "IX_Nominations_CandidateId" ON "Nominations" ("CandidateId");
|
||||
CREATE INDEX "IX_Nominations_CategoryId" ON "Nominations" ("CategoryId");
|
||||
CREATE INDEX "IX_Nominations_SeasonId" ON "Nominations" ("SeasonId");
|
||||
|
||||
CREATE TABLE "Results" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"SeasonId" integer NOT NULL REFERENCES "Seasons" ("Id") ON DELETE CASCADE,
|
||||
"CandidateId" integer NOT NULL REFERENCES "Candidates" ("Id") ON DELETE CASCADE,
|
||||
"CategoryName" character varying(120) NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX "IX_Results_CandidateId" ON "Results" ("CandidateId");
|
||||
CREATE INDEX "IX_Results_SeasonId" ON "Results" ("SeasonId");
|
||||
|
||||
CREATE TABLE "VoteEntries" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
|
||||
"BallotId" integer NOT NULL REFERENCES "VoteBallots" ("Id") ON DELETE CASCADE,
|
||||
"CategoryId" integer NOT NULL REFERENCES "Categories" ("Id") ON DELETE CASCADE,
|
||||
"CandidateId" integer NOT NULL REFERENCES "Candidates" ("Id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE INDEX "IX_VoteEntries_BallotId" ON "VoteEntries" ("BallotId");
|
||||
CREATE INDEX "IX_VoteEntries_CandidateId" ON "VoteEntries" ("CandidateId");
|
||||
CREATE INDEX "IX_VoteEntries_CategoryId" ON "VoteEntries" ("CategoryId");
|
||||
|
||||
INSERT INTO "Seasons" ("Id", "CurrentPhase", "IsCommunityOnly", "IsCurrent", "Name", "NominationEndsAt", "NominationStartsAt", "ReviewEndsAt", "ReviewStartsAt", "ShowDate", "VotingEndsAt", "VotingStartsAt", "Year") VALUES
|
||||
(1, 'Community Voting', true, true, 'VTuber Star Awards 2026', '2026-05-31', '2026-05-01', '2026-07-10', '2026-07-01', '2026-07-20', '2026-06-30', '2026-06-01', 2026),
|
||||
(2, 'Archived', true, false, 'VTuber Star Awards 2025', '2025-05-31', '2025-05-01', '2025-07-10', '2025-07-01', '2025-07-20', '2025-06-30', '2025-06-01', 2025),
|
||||
(3, 'Archived', true, false, 'VTuber Star Awards 2024', '2024-05-31', '2024-05-01', '2024-07-10', '2024-07-01', '2024-07-20', '2024-06-30', '2024-06-01', 2024),
|
||||
(4, 'Archived', true, false, 'VTuber Star Awards 2023', '2023-05-31', '2023-05-01', '2023-07-10', '2023-07-01', '2023-07-20', '2023-06-30', '2023-06-01', 2023);
|
||||
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder") VALUES
|
||||
(1, 'Die groesste Auszeichnung des Jahres.', 'Main Awards', 3, 'VTuber des Jahres', 1, 'vtuber-des-jahres', 1),
|
||||
(2, 'Events, Konzerte und 3D-Shows.', 'Performance', 3, 'Bestes Live Event', 1, 'bestes-live-event', 2),
|
||||
(3, 'Der lustigste oder emotionalste Clip des Jahres.', 'Clips & Highlights', 3, 'Clip des Jahres', 1, 'clip-des-jahres', 3),
|
||||
(4, 'Die aktivste und freundlichste Community.', 'Main Awards', 3, 'Beste Community', 1, 'beste-community', 4),
|
||||
(5, 'Archivkategorie 2025.', 'Main Awards', 3, 'VTuber des Jahres', 2, 'vtuber-des-jahres', 1),
|
||||
(6, 'Archivkategorie 2025.', 'Performance', 3, 'Bestes Live Event', 2, 'bestes-live-event', 2),
|
||||
(7, 'Archivkategorie 2025.', 'Clips & Highlights', 3, 'Clip des Jahres', 2, 'clip-des-jahres', 3),
|
||||
(8, 'Archivkategorie 2024.', 'Main Awards', 3, 'VTuber des Jahres', 3, 'vtuber-des-jahres', 1),
|
||||
(9, 'Archivkategorie 2024.', 'Clips & Highlights', 3, 'Clip des Jahres', 3, 'clip-des-jahres', 2),
|
||||
(10, 'Archivkategorie 2023.', 'Main Awards', 3, 'VTuber des Jahres', 4, 'vtuber-des-jahres', 1);
|
||||
|
||||
INSERT INTO "VoteBallots" ("Id", "SeasonId", "Status", "SubmittedAt", "SubmittedByTwitchId") VALUES
|
||||
(1, 1, 'submitted', '2026-06-11T12:00:00+00:00', 'twitch_vote_1'),
|
||||
(2, 1, 'submitted', '2026-06-11T12:05:00+00:00', 'twitch_vote_2');
|
||||
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId") VALUES
|
||||
(1, 1, '@hoshimimiyu', 'Hoshimi Miyu', 'Twitch', 1),
|
||||
(2, 1, '@kurainu', 'Kurainu', 'Twitch', 1),
|
||||
(3, 1, '@shiroch', 'Shiro Ch.', 'Twitch', 1),
|
||||
(4, 2, '@kurainu', 'Kurainu 3D Live', 'Twitch', 1),
|
||||
(5, 2, '@aoisakura', 'Aoi Sakura Showcase', 'YouTube', 1),
|
||||
(6, 3, '@pyonkichikingdom', 'Pyonkichi Kingdom', 'Twitch', 1),
|
||||
(7, 4, '@moonrelay', 'Moonrelay', 'Twitch', 1),
|
||||
(8, 5, '@hoshimimiyu', 'Hoshimi Miyu', 'Twitch', 2),
|
||||
(9, 6, '@kurainu', 'Kurainu 3D Live', 'Twitch', 2),
|
||||
(10, 7, '@pyonkichikingdom', 'Pyonkichi Kingdom', 'Twitch', 2),
|
||||
(11, 8, '@aoisakura', 'Aoi Sakura', 'YouTube', 3),
|
||||
(12, 9, '@starbyte', 'Starbyte', 'Twitch', 3),
|
||||
(13, 10, '@tenshivox', 'Tenshi Vox', 'Twitch', 4);
|
||||
|
||||
INSERT INTO "Nominations" ("Id", "CandidateId", "CandidateText", "CategoryId", "CreatedAt", "SeasonId", "SubmittedByTwitchId") VALUES
|
||||
(1, NULL, 'Hoshimi Miyu', 1, '2026-06-10T13:00:00+00:00', 1, 'twitch_hoshi'),
|
||||
(2, NULL, 'Kurainu 3D Live', 2, '2026-06-10T14:00:00+00:00', 1, 'twitch_kurainu');
|
||||
|
||||
INSERT INTO "Results" ("Id", "CandidateId", "CategoryName", "SeasonId") VALUES
|
||||
(1, 8, 'VTuber des Jahres', 2),
|
||||
(2, 9, 'Bestes Live Event', 2),
|
||||
(3, 10, 'Clip des Jahres', 2),
|
||||
(4, 11, 'VTuber des Jahres', 3),
|
||||
(5, 12, 'Clip des Jahres', 3),
|
||||
(6, 13, 'VTuber des Jahres', 4);
|
||||
|
||||
INSERT INTO "VoteEntries" ("Id", "BallotId", "CandidateId", "CategoryId") VALUES
|
||||
(1, 1, 1, 1),
|
||||
(2, 1, 4, 2),
|
||||
(3, 2, 2, 1),
|
||||
(4, 2, 6, 3);
|
||||
|
||||
SELECT setval(pg_get_serial_sequence('"Seasons"', 'Id'), COALESCE(MAX("Id"), 1), true) FROM "Seasons";
|
||||
SELECT setval(pg_get_serial_sequence('"Categories"', 'Id'), COALESCE(MAX("Id"), 1), true) FROM "Categories";
|
||||
SELECT setval(pg_get_serial_sequence('"VoteBallots"', 'Id'), COALESCE(MAX("Id"), 1), true) FROM "VoteBallots";
|
||||
SELECT setval(pg_get_serial_sequence('"Candidates"', 'Id'), COALESCE(MAX("Id"), 1), true) FROM "Candidates";
|
||||
SELECT setval(pg_get_serial_sequence('"Nominations"', 'Id'), COALESCE(MAX("Id"), 1), true) FROM "Nominations";
|
||||
SELECT setval(pg_get_serial_sequence('"Results"', 'Id'), COALESCE(MAX("Id"), 1), true) FROM "Results";
|
||||
SELECT setval(pg_get_serial_sequence('"VoteEntries"', 'Id'), COALESCE(MAX("Id"), 1), true) FROM "VoteEntries";
|
||||
|
||||
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
|
||||
VALUES ('20260617060000_InitialCreate', '8.0.11');
|
||||
@@ -1,258 +0,0 @@
|
||||
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
|
||||
"MigrationId" character varying(150) NOT NULL,
|
||||
"ProductVersion" character varying(32) NOT NULL,
|
||||
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
|
||||
);
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
CREATE TABLE "Seasons" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY,
|
||||
"Year" integer NOT NULL,
|
||||
"Name" character varying(160) NOT NULL,
|
||||
"IsCurrent" boolean NOT NULL,
|
||||
"IsCommunityOnly" boolean NOT NULL,
|
||||
"CurrentPhase" character varying(60) NOT NULL,
|
||||
"NominationStartsAt" date NOT NULL,
|
||||
"NominationEndsAt" date NOT NULL,
|
||||
"VotingStartsAt" date NOT NULL,
|
||||
"VotingEndsAt" date NOT NULL,
|
||||
"ReviewStartsAt" date NOT NULL,
|
||||
"ReviewEndsAt" date NOT NULL,
|
||||
"ShowDate" date NOT NULL,
|
||||
CONSTRAINT "PK_Seasons" PRIMARY KEY ("Id")
|
||||
);
|
||||
|
||||
CREATE TABLE "Categories" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY,
|
||||
"SeasonId" integer NOT NULL,
|
||||
"GroupName" character varying(80) NOT NULL,
|
||||
"Name" character varying(120) NOT NULL,
|
||||
"Slug" text NOT NULL,
|
||||
"Description" character varying(400) NOT NULL,
|
||||
"SortOrder" integer NOT NULL,
|
||||
"MaxNomineesPerUser" integer NOT NULL,
|
||||
CONSTRAINT "PK_Categories" PRIMARY KEY ("Id"),
|
||||
CONSTRAINT "FK_Categories_Seasons_SeasonId" FOREIGN KEY ("SeasonId") REFERENCES "Seasons" ("Id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE "VoteBallots" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY,
|
||||
"SeasonId" integer NOT NULL,
|
||||
"SubmittedByTwitchId" character varying(120) NOT NULL,
|
||||
"Status" character varying(30) NOT NULL,
|
||||
"SubmittedAt" timestamp with time zone NOT NULL,
|
||||
CONSTRAINT "PK_VoteBallots" PRIMARY KEY ("Id"),
|
||||
CONSTRAINT "FK_VoteBallots_Seasons_SeasonId" FOREIGN KEY ("SeasonId") REFERENCES "Seasons" ("Id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE "Candidates" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY,
|
||||
"SeasonId" integer NOT NULL,
|
||||
"CategoryId" integer NOT NULL,
|
||||
"DisplayName" character varying(120) NOT NULL,
|
||||
"ChannelSlug" character varying(120) NOT NULL,
|
||||
"Platform" character varying(40) NOT NULL,
|
||||
CONSTRAINT "PK_Candidates" PRIMARY KEY ("Id"),
|
||||
CONSTRAINT "FK_Candidates_Categories_CategoryId" FOREIGN KEY ("CategoryId") REFERENCES "Categories" ("Id") ON DELETE CASCADE,
|
||||
CONSTRAINT "FK_Candidates_Seasons_SeasonId" FOREIGN KEY ("SeasonId") REFERENCES "Seasons" ("Id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE "Nominations" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY,
|
||||
"SeasonId" integer NOT NULL,
|
||||
"CategoryId" integer NOT NULL,
|
||||
"SubmittedByTwitchId" character varying(120) NOT NULL,
|
||||
"CandidateId" integer,
|
||||
"CandidateText" character varying(120),
|
||||
"CreatedAt" timestamp with time zone NOT NULL,
|
||||
CONSTRAINT "PK_Nominations" PRIMARY KEY ("Id"),
|
||||
CONSTRAINT "FK_Nominations_Candidates_CandidateId" FOREIGN KEY ("CandidateId") REFERENCES "Candidates" ("Id"),
|
||||
CONSTRAINT "FK_Nominations_Categories_CategoryId" FOREIGN KEY ("CategoryId") REFERENCES "Categories" ("Id") ON DELETE CASCADE,
|
||||
CONSTRAINT "FK_Nominations_Seasons_SeasonId" FOREIGN KEY ("SeasonId") REFERENCES "Seasons" ("Id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE "Results" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY,
|
||||
"SeasonId" integer NOT NULL,
|
||||
"CandidateId" integer NOT NULL,
|
||||
"CategoryName" character varying(120) NOT NULL,
|
||||
CONSTRAINT "PK_Results" PRIMARY KEY ("Id"),
|
||||
CONSTRAINT "FK_Results_Candidates_CandidateId" FOREIGN KEY ("CandidateId") REFERENCES "Candidates" ("Id") ON DELETE CASCADE,
|
||||
CONSTRAINT "FK_Results_Seasons_SeasonId" FOREIGN KEY ("SeasonId") REFERENCES "Seasons" ("Id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
CREATE TABLE "VoteEntries" (
|
||||
"Id" integer GENERATED BY DEFAULT AS IDENTITY,
|
||||
"BallotId" integer NOT NULL,
|
||||
"CategoryId" integer NOT NULL,
|
||||
"CandidateId" integer NOT NULL,
|
||||
CONSTRAINT "PK_VoteEntries" PRIMARY KEY ("Id"),
|
||||
CONSTRAINT "FK_VoteEntries_Candidates_CandidateId" FOREIGN KEY ("CandidateId") REFERENCES "Candidates" ("Id") ON DELETE CASCADE,
|
||||
CONSTRAINT "FK_VoteEntries_Categories_CategoryId" FOREIGN KEY ("CategoryId") REFERENCES "Categories" ("Id") ON DELETE CASCADE,
|
||||
CONSTRAINT "FK_VoteEntries_VoteBallots_BallotId" FOREIGN KEY ("BallotId") REFERENCES "VoteBallots" ("Id") ON DELETE CASCADE
|
||||
);
|
||||
|
||||
INSERT INTO "Seasons" ("Id", "CurrentPhase", "IsCommunityOnly", "IsCurrent", "Name", "NominationEndsAt", "NominationStartsAt", "ReviewEndsAt", "ReviewStartsAt", "ShowDate", "VotingEndsAt", "VotingStartsAt", "Year")
|
||||
VALUES (1, 'Community Voting', TRUE, TRUE, 'VTuber Star Awards 2026', DATE '2026-05-31', DATE '2026-05-01', DATE '2026-07-10', DATE '2026-07-01', DATE '2026-07-20', DATE '2026-06-30', DATE '2026-06-01', 2026);
|
||||
INSERT INTO "Seasons" ("Id", "CurrentPhase", "IsCommunityOnly", "IsCurrent", "Name", "NominationEndsAt", "NominationStartsAt", "ReviewEndsAt", "ReviewStartsAt", "ShowDate", "VotingEndsAt", "VotingStartsAt", "Year")
|
||||
VALUES (2, 'Archived', TRUE, FALSE, 'VTuber Star Awards 2025', DATE '2025-05-31', DATE '2025-05-01', DATE '2025-07-10', DATE '2025-07-01', DATE '2025-07-20', DATE '2025-06-30', DATE '2025-06-01', 2025);
|
||||
INSERT INTO "Seasons" ("Id", "CurrentPhase", "IsCommunityOnly", "IsCurrent", "Name", "NominationEndsAt", "NominationStartsAt", "ReviewEndsAt", "ReviewStartsAt", "ShowDate", "VotingEndsAt", "VotingStartsAt", "Year")
|
||||
VALUES (3, 'Archived', TRUE, FALSE, 'VTuber Star Awards 2024', DATE '2024-05-31', DATE '2024-05-01', DATE '2024-07-10', DATE '2024-07-01', DATE '2024-07-20', DATE '2024-06-30', DATE '2024-06-01', 2024);
|
||||
INSERT INTO "Seasons" ("Id", "CurrentPhase", "IsCommunityOnly", "IsCurrent", "Name", "NominationEndsAt", "NominationStartsAt", "ReviewEndsAt", "ReviewStartsAt", "ShowDate", "VotingEndsAt", "VotingStartsAt", "Year")
|
||||
VALUES (4, 'Archived', TRUE, FALSE, 'VTuber Star Awards 2023', DATE '2023-05-31', DATE '2023-05-01', DATE '2023-07-10', DATE '2023-07-01', DATE '2023-07-20', DATE '2023-06-30', DATE '2023-06-01', 2023);
|
||||
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (1, 'Die groesste Auszeichnung des Jahres.', 'Main Awards', 3, 'VTuber des Jahres', 1, 'vtuber-des-jahres', 1);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (2, 'Events, Konzerte und 3D-Shows.', 'Performance', 3, 'Bestes Live Event', 1, 'bestes-live-event', 2);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (3, 'Der lustigste oder emotionalste Clip des Jahres.', 'Clips & Highlights', 3, 'Clip des Jahres', 1, 'clip-des-jahres', 3);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (4, 'Die aktivste und freundlichste Community.', 'Main Awards', 3, 'Beste Community', 1, 'beste-community', 4);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (5, 'Archivkategorie 2025.', 'Main Awards', 3, 'VTuber des Jahres', 2, 'vtuber-des-jahres', 1);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (6, 'Archivkategorie 2025.', 'Performance', 3, 'Bestes Live Event', 2, 'bestes-live-event', 2);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (7, 'Archivkategorie 2025.', 'Clips & Highlights', 3, 'Clip des Jahres', 2, 'clip-des-jahres', 3);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (8, 'Archivkategorie 2024.', 'Main Awards', 3, 'VTuber des Jahres', 3, 'vtuber-des-jahres', 1);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (9, 'Archivkategorie 2024.', 'Clips & Highlights', 3, 'Clip des Jahres', 3, 'clip-des-jahres', 2);
|
||||
INSERT INTO "Categories" ("Id", "Description", "GroupName", "MaxNomineesPerUser", "Name", "SeasonId", "Slug", "SortOrder")
|
||||
VALUES (10, 'Archivkategorie 2023.', 'Main Awards', 3, 'VTuber des Jahres', 4, 'vtuber-des-jahres', 1);
|
||||
|
||||
INSERT INTO "VoteBallots" ("Id", "SeasonId", "Status", "SubmittedAt", "SubmittedByTwitchId")
|
||||
VALUES (1, 1, 'submitted', TIMESTAMPTZ '2026-06-11T12:00:00+00:00', 'twitch_vote_1');
|
||||
INSERT INTO "VoteBallots" ("Id", "SeasonId", "Status", "SubmittedAt", "SubmittedByTwitchId")
|
||||
VALUES (2, 1, 'submitted', TIMESTAMPTZ '2026-06-11T12:05:00+00:00', 'twitch_vote_2');
|
||||
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (1, 1, '@hoshimimiyu', 'Hoshimi Miyu', 'Twitch', 1);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (2, 1, '@kurainu', 'Kurainu', 'Twitch', 1);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (3, 1, '@shiroch', 'Shiro Ch.', 'Twitch', 1);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (4, 2, '@kurainu', 'Kurainu 3D Live', 'Twitch', 1);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (5, 2, '@aoisakura', 'Aoi Sakura Showcase', 'YouTube', 1);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (6, 3, '@pyonkichikingdom', 'Pyonkichi Kingdom', 'Twitch', 1);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (7, 4, '@moonrelay', 'Moonrelay', 'Twitch', 1);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (8, 5, '@hoshimimiyu', 'Hoshimi Miyu', 'Twitch', 2);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (9, 6, '@kurainu', 'Kurainu 3D Live', 'Twitch', 2);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (10, 7, '@pyonkichikingdom', 'Pyonkichi Kingdom', 'Twitch', 2);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (11, 8, '@aoisakura', 'Aoi Sakura', 'YouTube', 3);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (12, 9, '@starbyte', 'Starbyte', 'Twitch', 3);
|
||||
INSERT INTO "Candidates" ("Id", "CategoryId", "ChannelSlug", "DisplayName", "Platform", "SeasonId")
|
||||
VALUES (13, 10, '@tenshivox', 'Tenshi Vox', 'Twitch', 4);
|
||||
|
||||
INSERT INTO "Nominations" ("Id", "CandidateId", "CandidateText", "CategoryId", "CreatedAt", "SeasonId", "SubmittedByTwitchId")
|
||||
VALUES (1, NULL, 'Hoshimi Miyu', 1, TIMESTAMPTZ '2026-06-10T13:00:00+00:00', 1, 'twitch_hoshi');
|
||||
INSERT INTO "Nominations" ("Id", "CandidateId", "CandidateText", "CategoryId", "CreatedAt", "SeasonId", "SubmittedByTwitchId")
|
||||
VALUES (2, NULL, 'Kurainu 3D Live', 2, TIMESTAMPTZ '2026-06-10T14:00:00+00:00', 1, 'twitch_kurainu');
|
||||
|
||||
INSERT INTO "Results" ("Id", "CandidateId", "CategoryName", "SeasonId")
|
||||
VALUES (1, 8, 'VTuber des Jahres', 2);
|
||||
INSERT INTO "Results" ("Id", "CandidateId", "CategoryName", "SeasonId")
|
||||
VALUES (2, 9, 'Bestes Live Event', 2);
|
||||
INSERT INTO "Results" ("Id", "CandidateId", "CategoryName", "SeasonId")
|
||||
VALUES (3, 10, 'Clip des Jahres', 2);
|
||||
INSERT INTO "Results" ("Id", "CandidateId", "CategoryName", "SeasonId")
|
||||
VALUES (4, 11, 'VTuber des Jahres', 3);
|
||||
INSERT INTO "Results" ("Id", "CandidateId", "CategoryName", "SeasonId")
|
||||
VALUES (5, 12, 'Clip des Jahres', 3);
|
||||
INSERT INTO "Results" ("Id", "CandidateId", "CategoryName", "SeasonId")
|
||||
VALUES (6, 13, 'VTuber des Jahres', 4);
|
||||
|
||||
INSERT INTO "VoteEntries" ("Id", "BallotId", "CandidateId", "CategoryId")
|
||||
VALUES (1, 1, 1, 1);
|
||||
INSERT INTO "VoteEntries" ("Id", "BallotId", "CandidateId", "CategoryId")
|
||||
VALUES (2, 1, 4, 2);
|
||||
INSERT INTO "VoteEntries" ("Id", "BallotId", "CandidateId", "CategoryId")
|
||||
VALUES (3, 2, 2, 1);
|
||||
INSERT INTO "VoteEntries" ("Id", "BallotId", "CandidateId", "CategoryId")
|
||||
VALUES (4, 2, 6, 3);
|
||||
|
||||
CREATE INDEX "IX_Candidates_CategoryId" ON "Candidates" ("CategoryId");
|
||||
|
||||
CREATE INDEX "IX_Candidates_SeasonId" ON "Candidates" ("SeasonId");
|
||||
|
||||
CREATE UNIQUE INDEX "IX_Categories_SeasonId_Slug" ON "Categories" ("SeasonId", "Slug");
|
||||
|
||||
CREATE INDEX "IX_Nominations_CandidateId" ON "Nominations" ("CandidateId");
|
||||
|
||||
CREATE INDEX "IX_Nominations_CategoryId" ON "Nominations" ("CategoryId");
|
||||
|
||||
CREATE INDEX "IX_Nominations_SeasonId" ON "Nominations" ("SeasonId");
|
||||
|
||||
CREATE INDEX "IX_Results_CandidateId" ON "Results" ("CandidateId");
|
||||
|
||||
CREATE INDEX "IX_Results_SeasonId" ON "Results" ("SeasonId");
|
||||
|
||||
CREATE UNIQUE INDEX "IX_Seasons_Year" ON "Seasons" ("Year");
|
||||
|
||||
CREATE INDEX "IX_VoteBallots_SeasonId" ON "VoteBallots" ("SeasonId");
|
||||
|
||||
CREATE INDEX "IX_VoteEntries_BallotId" ON "VoteEntries" ("BallotId");
|
||||
|
||||
CREATE INDEX "IX_VoteEntries_CandidateId" ON "VoteEntries" ("CandidateId");
|
||||
|
||||
CREATE INDEX "IX_VoteEntries_CategoryId" ON "VoteEntries" ("CategoryId");
|
||||
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('"Seasons"', 'Id'),
|
||||
GREATEST(
|
||||
(SELECT MAX("Id") FROM "Seasons") + 1,
|
||||
nextval(pg_get_serial_sequence('"Seasons"', 'Id'))),
|
||||
false);
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('"Categories"', 'Id'),
|
||||
GREATEST(
|
||||
(SELECT MAX("Id") FROM "Categories") + 1,
|
||||
nextval(pg_get_serial_sequence('"Categories"', 'Id'))),
|
||||
false);
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('"VoteBallots"', 'Id'),
|
||||
GREATEST(
|
||||
(SELECT MAX("Id") FROM "VoteBallots") + 1,
|
||||
nextval(pg_get_serial_sequence('"VoteBallots"', 'Id'))),
|
||||
false);
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('"Candidates"', 'Id'),
|
||||
GREATEST(
|
||||
(SELECT MAX("Id") FROM "Candidates") + 1,
|
||||
nextval(pg_get_serial_sequence('"Candidates"', 'Id'))),
|
||||
false);
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('"Nominations"', 'Id'),
|
||||
GREATEST(
|
||||
(SELECT MAX("Id") FROM "Nominations") + 1,
|
||||
nextval(pg_get_serial_sequence('"Nominations"', 'Id'))),
|
||||
false);
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('"Results"', 'Id'),
|
||||
GREATEST(
|
||||
(SELECT MAX("Id") FROM "Results") + 1,
|
||||
nextval(pg_get_serial_sequence('"Results"', 'Id'))),
|
||||
false);
|
||||
SELECT setval(
|
||||
pg_get_serial_sequence('"VoteEntries"', 'Id'),
|
||||
GREATEST(
|
||||
(SELECT MAX("Id") FROM "VoteEntries") + 1,
|
||||
nextval(pg_get_serial_sequence('"VoteEntries"', 'Id'))),
|
||||
false);
|
||||
|
||||
INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion")
|
||||
VALUES ('20260617060000_InitialCreate', '8.0.11');
|
||||
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user