34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using static System.Runtime.InteropServices.JavaScript.JSType;
|
|
|
|
namespace Server.SQL
|
|
{
|
|
[Table("deck_unit_info", Schema = "gamedb")]
|
|
public class DeckUnitInfo
|
|
{
|
|
public int id { get; set; }
|
|
public int unit_id { get; set; }
|
|
public int user_id { get; set; }
|
|
public int equip0 { get; set; }
|
|
public int equip1 { get; set; }
|
|
public int equip2 { get; set; }
|
|
public int equip3 { get; set; }
|
|
public int equip4 { get; set; }
|
|
public int equip5 { get; set; }
|
|
public int level { get; set; }
|
|
public int exp { get; set; }
|
|
}
|
|
|
|
public class DeckUnitInfoSQL : SQL<DeckUnitInfo>
|
|
{
|
|
public override DbSet<DeckUnitInfo> table { get; set; }
|
|
|
|
public override List<DeckUnitInfo> SelectUid(int user_id)
|
|
{
|
|
return table.Where(data => data.user_id == user_id).ToList();
|
|
}
|
|
}
|
|
}
|