You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }