diff --git a/Server/SQL/ConsumableItem.cs b/Server/SQL/ConsumableItem.cs index c951d58..821e419 100644 --- a/Server/SQL/ConsumableItem.cs +++ b/Server/SQL/ConsumableItem.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,6 +8,7 @@ namespace Server.SQL [Table("consumable_item", Schema = "gamedb")] public class ConsumableItem { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/DeckInfo.cs b/Server/SQL/DeckInfo.cs index 8d7f9ab..2c8c13b 100644 --- a/Server/SQL/DeckInfo.cs +++ b/Server/SQL/DeckInfo.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,6 +8,7 @@ namespace Server.SQL [Table("deck_info", Schema = "gamedb")] public class DeckInfo { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/DeckUnitInfo.cs b/Server/SQL/DeckUnitInfo.cs index fd7d795..54afffe 100644 --- a/Server/SQL/DeckUnitInfo.cs +++ b/Server/SQL/DeckUnitInfo.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,6 +8,7 @@ namespace Server.SQL [Table("deck_unit_info", Schema = "gamedb")] public class DeckUnitInfo { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/Equipment.cs b/Server/SQL/Equipment.cs index 11efc59..51a3ace 100644 --- a/Server/SQL/Equipment.cs +++ b/Server/SQL/Equipment.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,6 +8,7 @@ namespace Server.SQL [Table("equipment", Schema = "gamedb")] public class Equipment { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/EtcItem.cs b/Server/SQL/EtcItem.cs index 0a31c60..7c6e98e 100644 --- a/Server/SQL/EtcItem.cs +++ b/Server/SQL/EtcItem.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,6 +8,7 @@ namespace Server.SQL [Table("etc_item", Schema = "gamedb")] public class EtcItem { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/ResetShopItem.cs b/Server/SQL/ResetShopItem.cs index 5c75932..d32c257 100644 --- a/Server/SQL/ResetShopItem.cs +++ b/Server/SQL/ResetShopItem.cs @@ -1,6 +1,7 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; using Server.SQL.Excel; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -8,6 +9,7 @@ namespace Server.SQL [Table("reset_shop_item", Schema = "gamedb")] public class ResetShopItem { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/ShopItem.cs b/Server/SQL/ShopItem.cs index 8dff4c3..3557070 100644 --- a/Server/SQL/ShopItem.cs +++ b/Server/SQL/ShopItem.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,6 +8,7 @@ namespace Server.SQL [Table("shop_item", Schema = "gamedb")] public class ShopItem { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/StoryProgress.cs b/Server/SQL/StoryProgress.cs index 1abd0ce..a39bef3 100644 --- a/Server/SQL/StoryProgress.cs +++ b/Server/SQL/StoryProgress.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,6 +8,7 @@ namespace Server.SQL [Table("story_progress", Schema = "gamedb")] public class StoryProgress { + [Key] public int id { get; set; } [JsonIgnore] public int user_id { get; set; } diff --git a/Server/SQL/User.cs b/Server/SQL/User.cs index 8cacb51..c822a2e 100644 --- a/Server/SQL/User.cs +++ b/Server/SQL/User.cs @@ -1,5 +1,6 @@ using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Server.SQL @@ -7,7 +8,7 @@ namespace Server.SQL [Table("user", Schema = "gamedb")] public class User { - [JsonIgnore] + [JsonIgnore] [Key] public int id { get; set; } public string uuid { get; set; } [JsonIgnore]