Journeys_WantHome/Models/DbTableClass.cs

93 lines
2.1 KiB
C#

using System;
using System.Collections.Generic;
using Dapper.Contrib.Extensions;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
public class DbTableClass
{
[Table("token")]
public class token
{
[JsonIgnore]
[Key]
public int token_sn { get; set; }
public string token_key { get; set; } = "";
public string user_uid { get; set; } = "";
public string token_isremember { get; set; } = "N";
public DateTime token_createdate { get; set; } = DateTime.Now;
public DateTime token_expireddate { get; set; } = DateTime.Now.AddMinutes(20);
}
[Table("users")]
public class user
{
[JsonIgnore]
[Key]
public int user_sn { get; set; }
public string user_uid { get; set; } = "";
public string user_id { get; set; } = "";
public string user_name { get; set; } = "";
public string user_email { get; set; } = "";
public string user_onjob { get; set; } = "N";
public string user_type { get; set; } = "N";
public string user_pwd { get; set; } = "";
public string user_perm { get; set; } = "user";
public string user_pic { get; set; } = "";
public string user_ishidden { get; set; } = "N";
public DateTime user_createdate { get; set; } = DateTime.Now;
public string user_lastlogintime { get; set; } = DateTime.Now;
}
[Table("new_userdata")]
public class new_userdata
{
[JsonIgnore]
[Key]
public int usersn { get; set; }
public string userid { get; set; } = "";
public string userpw { get; set; } = "";
public string username { get; set; } = "";
public int? maincategoryid { get; set; } = 1;
public int? subcategoryid { get; set; } = 1;
public int? grade { get; set; } = 0;
public string mail { get; set; } = "";
public string mailto { get; set; } = "";
public int? onjob { get; set; } = 0;
public int? permission { get; set; } = 0;
}
}