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