1. policyPermission
1.1. partId
1.2. positionId : trường id trong table Position
1.3. jobcode ( add new ) - table position
1.4. original : true ! false ,quyền view original
1.5. text : true ! false
1.6. edit : true ! false
1.7. updatedAt | by
1.8. createdAt | by
1.9. id
2. policyPart
2.1. name
2.2. policyId
2.3. id
2.4. updatedAt | by
2.5. createdAt | By
3. policyVersion
3.1. versionName ( remove)
3.2. code (remove )
3.3. name
3.4. policyId
3.5. friendlyUrl
3.6. activated ( true ! fale)
3.7. id
3.8. status ( add new ) - delete ,draff , pending review, reviewed , published ,archived (-1, 0-1-2-3 -4)
3.9. order (add new )
3.10. reviewList [{ email, time }]
3.11. reviewedBy [ ]
3.12. publishAt | by
3.13. createdAt | by
3.14. updatedAt | by
3.15. comment
3.16. issuedDate
4. logActivity
4.1. id
4.2. tokenId
4.3. userIName
4.4. fulllurl
4.5. objectId
4.6. jobcode
4.7. updatedAt | by
4.8. createAd | by
4.9. ObjectType
5. policyDetail
5.1. cateId -> partId
5.2. cateName ( remove)
5.3. title
5.4. order ( thứ tự hiện thị UI)
5.5. policyId
5.6. friendlyUrl
5.7. content [ html ]
5.8. shortContent [ html ]
5.9. version -> versionId
5.10. id
6. policyCategory
6.1. id
6.2. name
6.3. description
6.4. parent
6.5. level
6.6. policyList [ ]
6.7. friendlyUrl
6.8. status ( add new )
6.9. divisionId ( add new )
6.10. createdAt | by
6.11. updatedAt | by
7. policy
7.1. name
7.2. friendlyUrl
7.3. parent
7.4. createdAt | by
7.5. updatedAt | by
7.6. id
8. intranet user + oms
8.1. division
8.1.1. id
8.1.2. name
8.1.3. code
8.1.4. createdAt | by
8.1.5. updatedAt | by
8.2. department
8.2.1. id
8.2.2. divisionId
8.2.3. departmentId
8.2.4. divisionCode
8.2.5. updatedAt | by
8.2.6. createdAt | by
8.3. position
8.3.1. id
8.3.2. name
8.3.3. jobCode
8.3.4. divisionCode
8.3.5. departmentId
8.3.6. departmentName
8.3.7. createdAt | by
8.3.8. updatedAt | by
8.4. tokens
8.4.1. _id
8.4.2. token : string
8.5. admins
8.5.1. _id
8.5.2. username : string
8.5.3. role
8.6. adminRoles
8.6.1. _id
8.6.2. role : string
8.7. emailQueue
8.7.1. id
8.7.2. content
8.7.3. receiver
8.8. emailTemplate
8.8.1. id
8.8.2. content
8.8.3. name
8.8.4. subject
8.8.5. createdAt | by
8.8.6. updatedAt | by
8.9. emailHistory
8.9.1. id
8.9.2. recevier
8.9.3. content
8.9.4. status ( fail - success )
8.9.5. updatedAt | by
8.9.6. sendAt
9. logTimeView
9.1. id
9.2. username
9.3. jobcode
9.4. overtime
9.5. fullUrl
9.6. create
10. policyRecomend
10.1. id
10.2. policyId [ ]
10.3. jobcode
10.4. username
11. uploadConfig
11.1. image (2.5M - Jpeg - jpg & PNG fix 980px )
11.1.1. id
11.1.2. imageEventId
11.1.3. link
11.1.4. name (code image GuiD )
11.1.5. createAt | by
11.1.6. updateAt | by
11.2. imageEvent
11.2.1. id
11.2.2. name
11.2.3. thumbnai (base64)
11.2.4. createAt | By
11.2.5. updateAt | by
11.2.6. status (active ! inactive )
11.2.7. eventDate
11.2.8. createAt | by
11.3. file (pdf,doc,docx,els,xlsxl,ppt ) 5M
11.3.1. id
11.3.2. name
11.3.3. link
11.3.4. createAt | By
11.3.5. updateAt | by
11.4. staticData
11.4.1. id
11.4.2. code
11.4.3. object []
11.4.4. createAt | By
11.4.5. updateAt | by
12. news
12.1. category : (cơ cấu tổ chức, ..)
12.1.1. name
12.1.2. data
12.1.3. publish
12.1.4. order
12.1.5. level
12.1.6. code
12.1.7. children : [{ name: string, level: number, publish: number, data: string, code: string, children: [{ name: string, data: string, level: number, publish: number, code: string }]
12.2. article
12.2.1. id
12.2.2. approver { username },
12.2.3. codeTmp (-> schema.code)
12.2.4. publish ! 0-1
12.2.5. content { },
12.2.6. version: [{ content: {}, author: String, version: String, dateUpdate: { type: Date, default: Date.now } }],
12.2.7. author / người tạo
12.2.8. menuCate / chọn danh mục content
12.2.9. access
12.2.10. perms: { }
12.2.11. updateAt | by
12.2.12. createdAt | by
12.2.13. priority ! 0-1 , true ||false
12.3. schema
12.3.1. title: { type: String, unique: true },
12.3.2. image
12.3.3. code
12.3.4. content: {}
12.3.5. id
12.3.6. update At | by
12.3.7. createdAt | by
12.4. bod ( thông tin các sếp - mục cơ cấu tổ chức )
12.4.1. uername
12.4.2. content