forked from anjoy8/Blog.Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDepartment.cs
More file actions
83 lines (78 loc) · 2.18 KB
/
Department.cs
File metadata and controls
83 lines (78 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using SqlSugar;
using System;
namespace Blog.Core.Model.Models
{
///<summary>
/// 部门表
///</summary>
public class Department : DepartmentRoot<long>
{
/// <summary>
/// Desc:部门关系编码
/// Default:
/// Nullable:True
/// </summary>
public string CodeRelationship { get; set; }
/// <summary>
/// Desc:部门名称
/// Default:
/// Nullable:True
/// </summary>
public string Name { get; set; }
/// <summary>
/// Desc:负责人
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public string Leader { get; set; }
/// <summary>
/// Desc:排序
/// Default:
/// Nullable:True
/// </summary>
public int OrderSort { get; set; } = 0;
/// <summary>
/// Desc:部门状态(0正常 1停用)
/// Default:0
/// Nullable:True
/// </summary>
public bool Status { get; set; } = false;
/// <summary>
/// Desc:删除标志(0代表存在 2代表删除)
/// Default:0
/// Nullable:True
/// </summary>
public bool IsDeleted { get; set; } = false;
/// <summary>
/// Desc:创建者
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public string CreateBy { get; set; }
/// <summary>
/// Desc:创建时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; }
/// <summary>
/// Desc:更新者
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public string ModifyBy { get; set; }
/// <summary>
/// Desc:更新时间
/// Default:
/// Nullable:True
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? ModifyTime { get; set; }
[SugarColumn(IsIgnore = true)]
public bool hasChildren { get; set; } = true;
}
}