SQL들 Key값 추가
This commit is contained in:
parent
5ac4a79a64
commit
973139ed85
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue