mirror of
https://github.com/iptv-org/api.git
synced 2025-05-12 18:10:07 -04:00
Create categories.js
This commit is contained in:
parent
298e3e74fe
commit
528952846c
1 changed files with 10 additions and 0 deletions
10
scripts/db/schemes/categories.js
Normal file
10
scripts/db/schemes/categories.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const Joi = require('joi')
|
||||
|
||||
module.exports = {
|
||||
id: Joi.string()
|
||||
.regex(/^[a-z]+$/)
|
||||
.required(),
|
||||
name: Joi.string()
|
||||
.regex(/^[A-Z]+$/i)
|
||||
.required()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue