using Dapper.Contrib.Extensions;
using Newtonsoft.Json;



public class DbTableClass {

    [Table("mailToken")]
    public class mailToken
    {
        [JsonIgnore]
        [Key]
        public int mailToken_sn { get; set; }
        public string mailToken_value { get; set; } = "";
        public string mailToken_mail { get; set; } = "";
        public string mailToken_account { get; set; } = "";
        public DateTime mailToken_endDate { get; set; } = DateTime.Now.AddDays(3);
        public string mailToken_useed { get; set; } = "N";
    }

    [Table("tags")]
    public class tags
    {
        [JsonIgnore]
        [Key]
        public int tag_sn { get; set; }
        public string tag_uid { get; set; } = "";
        public string tag_text { get; set; } = "";
    }

    [Table("photo")]
    public class photo
    {
        [JsonIgnore]
        [Key]
        public int photo_sn { get; set; }
        public string photo_uid { get; set; } = "";
        public string news_uid { get; set; } = "";
        public string photo_path { get; set; } = "";
        public string photo_title { get; set; } = "";
    }

    [Table("tag")]
    public class tag
    {
        [JsonIgnore]
        [Key]
        public int tag_sn { get; set; }
        public string tag_uid { get; set; } = "";
        public string news_uid { get; set; } = "";
        public string tag_text { get; set; } = "";
    }

    [Table("news")]
    public class news
    {
        [JsonIgnore]
        [Key]
        public int news_sn { get; set; }
        public string news_uid { get; set; } = "";
        public string news_title { get; set; } = "";
        public string news_date { get; set; } = "";
        public string news_subtitle { get; set; } = "";
        public string news_mainPhoto { get; set; } = "";
        public string news_content { get; set; } = "";
        public DateTime news_createdate { get; set; } = DateTime.Now;
        public DateTime news_modifydate { get; set; } = DateTime.Now;
    }



    [Table("esgMessage")]
    public class esgMessage
    {
        [JsonIgnore]
        [Key]
        public int esgMessage_sn { get; set; }

        public string esgMessage_company { get; set; } = "";

        public string esgMessage_id { get; set; } = "";

        public string esgMessage_name { get; set; } = "";

        public string esgMessage_email { get; set; } = "";

        public string esgMessage_tel { get; set; } = "";

        public string esgMessage_department { get; set; } = "";

        public string esgMessage_mediaUrl { get; set; } = "";

        public string esgMessage_esgNeed { get; set; } = "";

        public string esgMessage_testResult { get; set; } = "";

        public DateTime esgMessage_createdate { get; set; } = DateTime.Now;

    }


}
