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 366B

1234567891011121314
  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. token: Joi.string().required()
  11. })
  12. }
  13. }