您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

user.js 288B

1234567891011121314
  1. const { single } = require('../schemas/user')
  2. const Schwifty = require('@hapipal/schwifty')
  3. /**
  4. * @typedef User
  5. */
  6. module.exports = class User extends Schwifty.Model {
  7. static get tableName() {
  8. return 'users'
  9. }
  10. static get joiSchema() {
  11. return single
  12. }
  13. }