SQL들 Key값 추가
This commit is contained in:
parent
5ac4a79a64
commit
973139ed85
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,6 +8,7 @@ namespace Server.SQL
|
||||||
[Table("consumable_item", Schema = "gamedb")]
|
[Table("consumable_item", Schema = "gamedb")]
|
||||||
public class ConsumableItem
|
public class ConsumableItem
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,6 +8,7 @@ namespace Server.SQL
|
||||||
[Table("deck_info", Schema = "gamedb")]
|
[Table("deck_info", Schema = "gamedb")]
|
||||||
public class DeckInfo
|
public class DeckInfo
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,6 +8,7 @@ namespace Server.SQL
|
||||||
[Table("deck_unit_info", Schema = "gamedb")]
|
[Table("deck_unit_info", Schema = "gamedb")]
|
||||||
public class DeckUnitInfo
|
public class DeckUnitInfo
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,6 +8,7 @@ namespace Server.SQL
|
||||||
[Table("equipment", Schema = "gamedb")]
|
[Table("equipment", Schema = "gamedb")]
|
||||||
public class Equipment
|
public class Equipment
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,6 +8,7 @@ namespace Server.SQL
|
||||||
[Table("etc_item", Schema = "gamedb")]
|
[Table("etc_item", Schema = "gamedb")]
|
||||||
public class EtcItem
|
public class EtcItem
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Server.SQL.Excel;
|
using Server.SQL.Excel;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -8,6 +9,7 @@ namespace Server.SQL
|
||||||
[Table("reset_shop_item", Schema = "gamedb")]
|
[Table("reset_shop_item", Schema = "gamedb")]
|
||||||
public class ResetShopItem
|
public class ResetShopItem
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,6 +8,7 @@ namespace Server.SQL
|
||||||
[Table("shop_item", Schema = "gamedb")]
|
[Table("shop_item", Schema = "gamedb")]
|
||||||
public class ShopItem
|
public class ShopItem
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,6 +8,7 @@ namespace Server.SQL
|
||||||
[Table("story_progress", Schema = "gamedb")]
|
[Table("story_progress", Schema = "gamedb")]
|
||||||
public class StoryProgress
|
public class StoryProgress
|
||||||
{
|
{
|
||||||
|
[Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public int user_id { get; set; }
|
public int user_id { get; set; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Server.SQL
|
namespace Server.SQL
|
||||||
|
|
@ -7,7 +8,7 @@ namespace Server.SQL
|
||||||
[Table("user", Schema = "gamedb")]
|
[Table("user", Schema = "gamedb")]
|
||||||
public class User
|
public class User
|
||||||
{
|
{
|
||||||
[JsonIgnore]
|
[JsonIgnore] [Key]
|
||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
public string uuid { get; set; }
|
public string uuid { get; set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue