Files
vtuber-awards/Backend/Domain/Season.cs
T
AzuTear b53c7fb736 Add viewer-range categories, nomination tracking, dynamic showact form, session timeout, share URLs, and workflow-per-season
Features:
- Category viewer ranges + subcategory templates (admin group modal, tree workspace)
- Nomination enrichment via TwitchTracker API (NominationEnrichmentService,
  TwitchTrackerViewerStatsProvider) with admin tracking rules editor
- Nomination group tracker: CategoryGroupName as primary identifier,
  CategoryId stays as nullable legacy field; StreamerIdentity table
- Dynamic showact application form builder (AdminShowactFormBuilder,
  ShowactApplicationSchedule)
- Session idle timeout setting (AdminSessionTimeoutCard)
- Share URLs for X and Discord (SiteSettings, public extras)
- Workflow rules now stored per season (falls back to global SiteSettings)
- New admin routes: settings/access, settings/workflows, tracking-rules
- New admin review workspace with subcategory tabs
- AdminCategoriesView rebuilt with group/subcategory modals

Migrations (all additive):
- AddShareUrls, AddShowactDynamicForm, AddCategoryViewerRanges,
  AddSessionIdleTimeoutSettings, AddSeasonSubcategoryTemplates,
  AddNominationGroupTrackerIdentity, AddShowactApplicationSchedule,
  AddSeasonWorkflowRulesJson

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 23:32:21 +02:00

25 lines
1.0 KiB
C#

namespace Backend.Domain;
public sealed class Season
{
public int Id { get; set; }
public int Year { get; set; }
public string Name { get; set; } = string.Empty;
public string ShowStreamUrl { get; set; } = string.Empty;
public bool IsCurrent { get; set; }
public bool IsCommunityOnly { get; set; }
public string CurrentPhase { get; set; } = string.Empty;
public DateOnly NominationStartsAt { get; set; }
public DateOnly NominationEndsAt { get; set; }
public DateOnly VotingStartsAt { get; set; }
public DateOnly VotingEndsAt { get; set; }
public DateOnly ReviewStartsAt { get; set; }
public DateOnly ReviewEndsAt { get; set; }
public DateOnly ShowDate { get; set; }
public TimeOnly ShowStartsAt { get; set; } = new(20, 0);
public string SubcategoryTemplatesJson { get; set; } = "[]";
public string WorkflowRulesJson { get; set; } = "[]";
public ICollection<Category> Categories { get; set; } = [];
public ICollection<AwardResult> Results { get; set; } = [];
}