using Business.Core.Attributes; using Business.Model; using Microsoft.EntityFrameworkCore; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace Bussiness.Model.SystemData { /// /// 班制表 /// [Comment("班制表")] [CollectionName("dopbase", "sys_shift")] public class sys_shift: BaseEntity { ///// ///// 主键id ///// //[Key] //[Comment("主键id")] //public long shift_id { get; set; } /// /// 班制编码 /// [StringLength(50)] [Comment("班制编码")] public string? shift_no { get; set; } /// /// 班制名称 /// [StringLength(255)] [Comment("班制名称")] public string? shift_name { get; set; } /// /// 是否跨天 1是 0否 /// [Comment("岗位id")] [DefaultValue(false)] public bool is_across { get; set; } /// /// 备注 /// [StringLength(255)] [Comment("备注")] public string? remark { get; set; } /// /// 有效时长 /// [Comment("有效时长")] public int? validate_hours { get; set; } /// /// 数据状态标识 1启用 0停用 /// [Comment("数据状态标识 1启用 0停用")] [DefaultValue(true)] public bool state { get; set; } } }