using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace iWare.Wms.Core { /// /// 职位表 /// [Table("sys_pos")] [Comment("职位表")] public class SysPos : DEntityBase { /// /// 名称 /// [Comment("名称")] [Required, MaxLength(20)] public string Name { get; set; } /// /// 编码 /// [Comment("编码")] [Required, MaxLength(50)] public string Code { get; set; } /// /// 排序 /// [Comment("排序")] public int Sort { get; set; } /// /// 备注 /// [Comment("备注")] [MaxLength(100)] public string Remark { get; set; } /// /// 状态(字典 0正常 1停用 2删除) /// [Comment("状态")] public CommonStatus Status { get; set; } = CommonStatus.ENABLE; /// /// 多对多(员工) /// public ICollection SysEmps { get; set; } /// /// 多对多中间表(员工职位) /// public List SysEmpPos { get; set; } } }