using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; using YD_WeChatApplet.Api.Entitys; using YD_WeChatApplet.Commons.Enum; namespace VOL.Entity.DomainModels { /// /// 群组任务表 /// [Table("WCA_GroupTask")] public class WCA_GroupTask { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Display(Description = "主键Id")] [Comment("Id")] public int Id { get; set; } /// ///作业名称 /// [Display(Name = "作业名称")] [Comment("作业名称")] [Column(TypeName = "nvarchar(200)")] public string GroupTaskName { get; set; } /// /// 模式类型 /// [Display(Name = "作业类型")] [Comment("作业类型")] [Column(TypeName = "int")] public WorkModeType WorkModeType { get; set; } /// /// 模式类型名称 /// [Display(Name = "模式类型名称")] [Comment("模式类型名称")] [Column(TypeName = "nvarchar(200)")] public string WorkModeTypeName { get; set; } /// ///作业内容 /// [Display(Name = "作业内容")] [Comment("作业内容")] [Column(TypeName = "nvarchar(max)")] public string? WorkText { get; set; } /// /// 作业类型名称 /// [Display(Name = "作业类型名称")] [Comment("作业类型名称")] [Column(TypeName = "nvarchar(200)")] public string? WorkTypeName { get; set; } /// /// 作业时长 /// [Display(Name = "作业时长")] [Comment("作业时长")] [Column(TypeName = "int")] public int Duration { get; set; } /// /// 作业数量 /// [Display(Name = "作业数量")] [Comment("作业数量")] [Column(TypeName = "int")] public int Amount { get; set; } /// /// 组数量 /// [Display(Name = "作业数量")] [Comment("作业数量")] [Column(TypeName = "int")] public int GroupNumber { get; set; } /// /// 是否重复 /// [Display(Name = "是否重复")] [Comment("是否重复")] [Column(TypeName = "bit")] [Editable(true)] public bool IsRepeat { get; set; } /// ///重复周期 /// [Display(Name = "重复周期")] [Comment("重复周期")] [Column(TypeName = "nvarchar(100)")] public string RepetitionPeriod { get; set; } /// /// ///开始时间 /// [Display(Name = "开始时间")] [Comment("开始时间")] [Column(TypeName = "datetime")] [Editable(true)] public DateTime StartTime { get; set; } /// ///结束时间 /// [Display(Name = "结束时间")] [Comment("结束时间")] [Column(TypeName = "datetime")] [Editable(true)] public DateTime EndTime { get; set; } /// ///创建时间 /// [Display(Name = "创建时间")] [Comment("创建时间")] [Column(TypeName = "datetime")] [Editable(true)] public DateTime CreateTime { get; set; } public int UserGroupId { get; set; } // 外键字段 public WCA_UserGroup UserGroup { get; set; } // 导航属性 } }