iptv-database/scripts/db/schemes/categories.js

11 lines
169 B
JavaScript
Raw Normal View History

2022-02-11 21:55:50 -05:00
const Joi = require('joi')
module.exports = {
id: Joi.string()
.regex(/^[a-z]+$/)
.required(),
name: Joi.string()
.regex(/^[A-Z]+$/i)
.required()
}