Adding LevelUp Model

This commit is contained in:
Sean "Solao Bajiuik" Stoves 2020-08-03 22:24:40 -04:00
parent 35e8dc8188
commit 3135c8965d
3 changed files with 43 additions and 4 deletions

View File

@ -27,8 +27,4 @@
</None>
</ItemGroup>
<ItemGroup>
<Folder Include="Models" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
#nullable disable
namespace ChaosBot.Models
{
public partial class LevelUp
{
public int? Id { get; set; }
public long? UserId { get; set; }
public long? GuildId { get; set; }
public long? Experience { get; set; }
}
}

View File

@ -135,6 +135,34 @@ namespace ChaosBot.Models
.HasAnnotation("Relational:ColumnType", "bigint(20)");
});
modelBuilder.Entity<LevelUp>(entity =>
{
entity.HasNoKey();
entity.ToTable("LevelTable");
entity.Property(e => e.GuildId)
.HasColumnType("bigint(20)")
.HasColumnName("guildId")
.HasAnnotation("Relational:ColumnType", "bigint(20)");
entity.Property(e => e.Id)
.HasColumnType("int(11)")
.HasColumnName("id")
.HasAnnotation("Relational:ColumnType", "int(11)");
entity.Property(e => e.UserId)
.HasColumnType("bigint(20)")
.HasColumnName("userId")
.HasAnnotation("Relational:ColumnType", "bigint(20)");
entity.Property(e => e.Experience)
.HasColumnType("bigint(20)")
.HasColumnName("xp")
.HasAnnotation("Relational:ColumnType", "bigint(20)");
});
modelBuilder.Entity<ServerConfigurationFlag>(entity =>
{
entity.HasNoKey();