-
Notifications
You must be signed in to change notification settings - Fork 0
/
schemas.js
35 lines (28 loc) · 865 Bytes
/
schemas.js
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
const Joi = require('joi');
module.exports.plantSchema = Joi.object({
name: Joi.string().required(),
image: Joi.object({
location: Joi.string().required(),
originalName: Joi.string().required(),
key: Joi.string().required(),
bucket: Joi.string().required(),
})
});
module.exports.dueDateSchema = Joi.object({
dateTeam: Joi.string().required(),
Incomplete: Joi.date(),
Uploaded: Joi.date(),
Reviewed: Joi.date(),
Approved: Joi.date(),
Submitted: Joi.date(),
});
module.exports.segInstructionSchema = Joi.object({
team: Joi.string().required(),
department: Joi.string().required(),
segNum: Joi.number().required(),
applicableAOC: Joi.string(),
reviewActivity: Joi.string(),
dataSubmittal: Joi.string(),
reviewGuidance: Joi.string(),
programs: Joi.array(),
});