Compare commits
2 Commits
88a0404af0
...
253d83357f
| Author | SHA1 | Date | |
|---|---|---|---|
| 253d83357f | |||
| 85fca5613e |
@@ -8,6 +8,7 @@ const insertTagsSchema = Joi.object({
|
||||
device_id: Joi.number().optional(),
|
||||
tag_name: Joi.string().max(200).required(),
|
||||
tag_number: Joi.number().required(),
|
||||
tag_description: Joi.string().max(200).optional(),
|
||||
is_active: Joi.boolean().optional(),
|
||||
data_type: Joi.string().max(50).optional(),
|
||||
unit: Joi.string().max(50).optional(),
|
||||
@@ -25,6 +26,7 @@ const updateTagsSchema = Joi.object({
|
||||
device_id: Joi.number().optional(),
|
||||
tag_name: Joi.string().max(200),
|
||||
tag_number: Joi.number(),
|
||||
tag_description: Joi.string().max(200).optional(),
|
||||
is_active: Joi.boolean(),
|
||||
data_type: Joi.string().max(50),
|
||||
unit: Joi.string().max(50),
|
||||
|
||||
Reference in New Issue
Block a user