wisdom #2
@@ -6,7 +6,7 @@ const Joi = require("joi");
|
||||
// ========================
|
||||
const insertDeviceSchema = Joi.object({
|
||||
device_name: Joi.string().max(100).required(),
|
||||
device_status: Joi.boolean().required(),
|
||||
is_active: Joi.boolean().required(),
|
||||
device_location: Joi.string().max(100).required(),
|
||||
device_description: Joi.string().required(),
|
||||
ip_address: Joi.string()
|
||||
@@ -19,7 +19,7 @@ const insertDeviceSchema = Joi.object({
|
||||
|
||||
const updateDeviceSchema = Joi.object({
|
||||
device_name: Joi.string().max(100),
|
||||
device_status: Joi.boolean(),
|
||||
is_active: Joi.boolean(),
|
||||
device_location: Joi.string().max(100),
|
||||
device_description: Joi.string(),
|
||||
ip_address: Joi.string()
|
||||
|
||||
Reference in New Issue
Block a user