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

user.js 301B

123456789101112131415
  1. const Schwifty = require('@hapipal/schwifty')
  2. const userSchema = require('../schemas/users')
  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 userSchema.single
  12. }
  13. }