UNPKG

@coko/server

Version:

Reusable server for use by Coko's projects

28 lines (22 loc) 528 B
const BaseModel = require('../base.model') const { string, stringNotEmpty } = require('../_helpers/types') class ServiceCredential extends BaseModel { constructor(properties) { super(properties) this.type = 'serviceCredential' } static get tableName() { return 'serviceCredential' } static get schema() { return { type: 'object', required: ['name'], properties: { name: stringNotEmpty, accessToken: string, }, } } } module.exports = ServiceCredential