using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Backend.Models { public enum ExecutionTypeEnum : byte { Min = 0, //分 Hour = 1, //時 Day = 2, //天 Week = 3, //週 Month = 4 //月 } public class BackgroundServicePlan { private string start_time; private string end_time; private string last_create_time; public int Id { get; set; } public string Plane_name { get; set; } public string building_guid { get; set; } public string Target_table { get; set; } public int Execution_time { get; set; } public byte Execution_type { get; set; } public string Start_time { get { return Convert.ToDateTime(start_time).ToString("yyyy-MM-dd HH:mm:ss"); } set { start_time = value; } } public string End_time { get { return Convert.ToDateTime(end_time).ToString("yyyy-MM-dd HH:mm:ss"); } set { end_time = value; } } public string Last_create_time { get { return Convert.ToDateTime(last_create_time).ToString("yyyy-MM-dd HH:mm:ss"); } set { last_create_time = value; } } public int Repeat_times { get; set; } public byte status { get; set; } } public class PlanTable: BackgroundServicePlan { public string building { get; set; } public string execution { get; set; } public string time { get; set; } } }