thewar_server/Server/SQL/LeaderInfo.cs

23 lines
674 B
C#

using Microsoft.EntityFrameworkCore;
using Npgsql.EntityFrameworkCore.PostgreSQL;
using System.ComponentModel.DataAnnotations.Schema;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace Server.SQL
{
[Table("leader_info", Schema = "gamedb")]
public class LeaderInfo
{
public int id { get; set; }
public string uuid { get; set; }
public string mail { get; set; }
public string nickname { get; set; }
}
public class LeaderInfoSQL : SQL<LeaderInfo>
{
public override DbSet<LeaderInfo> table { get; set; }
public override string tablename { get { return "leader_info"; } }
}
}