選択できるのは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. }