diff --git a/ChaosBot/Migrations/20200804213001_ExperiencePoints.cs b/ChaosBot/Migrations/20200804213001_ExperiencePoints.cs index 6abf7c6..cffd85e 100644 --- a/ChaosBot/Migrations/20200804213001_ExperiencePoints.cs +++ b/ChaosBot/Migrations/20200804213001_ExperiencePoints.cs @@ -1,4 +1,5 @@ -using Microsoft.EntityFrameworkCore.Metadata; +using System; +using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace ChaosBot.Migrations @@ -15,7 +16,8 @@ namespace ChaosBot.Migrations { DiscordGuildId = table.Column(nullable: false), DiscordUserId = table.Column(nullable: false), - Amount = table.Column(nullable: false, defaultValue: 0) + Amount = table.Column(nullable: false, defaultValue: 0), + lastUpdated = table.Column(nullable:false, defaultValue: "0000-00-00 00:00:00") }, constraints: table => { diff --git a/ChaosBot/Models/Experience.cs b/ChaosBot/Models/Experience.cs index f46148e..f430795 100644 --- a/ChaosBot/Models/Experience.cs +++ b/ChaosBot/Models/Experience.cs @@ -1,3 +1,4 @@ +using System; using System.ComponentModel.DataAnnotations; namespace ChaosBot.Models @@ -10,6 +11,7 @@ namespace ChaosBot.Models [Required] public ulong DiscordGuildId { get; set; } public ulong Amount { get; set; } + public DateTime LastUpdated { get; set; } } #endregion } \ No newline at end of file