Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

authentication.js 413B

123456789101112131415
  1. const Schwifty = require('@hapipal/schwifty')
  2. const Joi = require('joi')
  3. module.exports = class userAuth extends Schwifty.Model {
  4. static get tableName() {
  5. return 'authentication'
  6. }
  7. static get joiSchema() {
  8. return Joi.object({
  9. user_email: Joi.string().required(),
  10. created_at: Joi.date().required(),
  11. token: Joi.string().required()
  12. })
  13. }
  14. }