Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718
  1. const Schwifty = require('@hapipal/schwifty')
  2. const Joi = require('joi')
  3. module.exports = class Membership extends Schwifty.Model {
  4. static get tableName() {
  5. return 'memberships'
  6. }
  7. static get joiSchema() {
  8. return Joi.object({
  9. membership_id: Joi.number(),
  10. user_id: Joi.number().required(),
  11. grouping_id: Joi.number().allow(null),
  12. membership_type: Joi.string().required(),
  13. can_edit: Joi.boolean().required(),
  14. is_active: Joi.boolean().required(),
  15. })
  16. }
  17. }