C# Discord bot made using NetCord for keeping a TikTok-style streak
1// <auto-generated />
2using System;
3using Microsoft.EntityFrameworkCore;
4using Microsoft.EntityFrameworkCore.Infrastructure;
5using Microsoft.EntityFrameworkCore.Migrations;
6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7using StreakBot.Data;
8
9#nullable disable
10
11namespace StreakBot.Migrations
12{
13 [DbContext(typeof(StreakDbContext))]
14 [Migration("20260204060815_AddGroupDmSupport")]
15 partial class AddGroupDmSupport
16 {
17 /// <inheritdoc />
18 protected override void BuildTargetModel(ModelBuilder modelBuilder)
19 {
20#pragma warning disable 612, 618
21 modelBuilder.HasAnnotation("ProductVersion", "10.0.0");
22
23 modelBuilder.Entity("StreakBot.Data.Entities.Channel", b =>
24 {
25 b.Property<int>("Id")
26 .ValueGeneratedOnAdd()
27 .HasColumnType("INTEGER");
28
29 b.Property<ulong>("ChannelId")
30 .HasColumnType("INTEGER");
31
32 b.Property<int>("ChannelType")
33 .HasColumnType("INTEGER");
34
35 b.Property<ulong?>("MessageId")
36 .HasColumnType("INTEGER");
37
38 b.Property<ulong>("ServerId")
39 .HasColumnType("INTEGER");
40
41 b.HasKey("Id");
42
43 b.ToTable("Channels");
44 });
45
46 modelBuilder.Entity("StreakBot.Data.Entities.Streak", b =>
47 {
48 b.Property<int>("Id")
49 .ValueGeneratedOnAdd()
50 .HasColumnType("INTEGER");
51
52 b.Property<ulong>("ChannelId")
53 .HasColumnType("INTEGER");
54
55 b.Property<DateTime>("CreatedDate")
56 .HasColumnType("TEXT");
57
58 b.Property<DateTime>("LastResetCheck")
59 .HasColumnType("TEXT");
60
61 b.Property<bool>("ReminderSent")
62 .HasColumnType("INTEGER");
63
64 b.Property<ulong>("ServerId")
65 .HasColumnType("INTEGER");
66
67 b.Property<int>("StreakNumber")
68 .HasColumnType("INTEGER");
69
70 b.Property<ulong>("User1Id")
71 .HasColumnType("INTEGER");
72
73 b.Property<bool>("User1MessageSent")
74 .HasColumnType("INTEGER");
75
76 b.Property<ulong>("User2Id")
77 .HasColumnType("INTEGER");
78
79 b.Property<bool>("User2MessageSent")
80 .HasColumnType("INTEGER");
81
82 b.HasKey("Id");
83
84 b.ToTable("Streaks");
85 });
86#pragma warning restore 612, 618
87 }
88 }
89}