Adding LevelUp Model
This commit is contained in:
parent
35e8dc8188
commit
3135c8965d
@ -27,8 +27,4 @@
|
|||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Models" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
15
ChaosBot/Models/LevelUp.cs
Normal file
15
ChaosBot/Models/LevelUp.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -135,6 +135,34 @@ namespace ChaosBot.Models
|
|||||||
.HasAnnotation("Relational:ColumnType", "bigint(20)");
|
.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 =>
|
modelBuilder.Entity<ServerConfigurationFlag>(entity =>
|
||||||
{
|
{
|
||||||
entity.HasNoKey();
|
entity.HasNoKey();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user