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.

user.js 426B

1234567891011121314
  1. const Schwifty = require('@hapipal/schwifty');
  2. const Joi = require('joi');
  3. module.exports = class User extends Schwifty.Model {
  4. static get tableName() { return 'users' }
  5. static get joiSchema() {
  6. return Joi.object({
  7. id: Joi.number().required(),
  8. name: Joi.string().required(),
  9. email: Joi.string().required(),
  10. password: Joi.string().required(),
  11. })
  12. }
  13. }