forked from Bremen/ESG
1
0
Fork 0
ESG/Models/DbTableClass.cs

95 lines
2.4 KiB
C#

using System;
using System.Collections.Generic;
using Dapper.Contrib.Extensions;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Org.BouncyCastle.Bcpg;
public class DbTableClass {
[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;
}
}