Department.cs 1.4 KB
using FreeSql.DataAnnotations;
using System.ComponentModel.DataAnnotations;

namespace HHECS.WorkHourStatistics.Models
{
    /// <summary>
    /// 部门
    /// </summary>
    public class Department
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [Column(IsPrimary = true)]
        public string Id { get; set; } = null!;

        /// <summary>
        /// 组织类型(department 代表部门,company 代表是单位)
        /// </summary>
        public string TypeFlag { get; set; } = null!;

        /// <summary>
        /// 父部门ID
        /// </summary>
        public string ParentId { get; set; } = null!;

        /// <summary>
        /// 排序号
        /// </summary>
        public string OrderNum { get; set; } = null!;

        /// <summary>
        /// 部门名称
        /// </summary>
        public string Name { get; set; } = null!;

        /// <summary>
        /// 部门编码
        /// </summary>
        public string OrgCode { get; set; } = null!;

        /// <summary>
        /// 状态。启用:0,停用:-3
        /// </summary>
        public int State { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public string CreateTime { get; set; } = null!;

        /// <summary>
        /// 修改时间
        /// </summary>
        public string ModifyTime { get; set; } = null!;
    }
}