| 123456789101112131415161718 |
- const Schwifty = require('@hapipal/schwifty')
- const Joi = require('joi')
- const config = require('../../db/data-generator/config.json')
-
- const aspects = { aspect_id: Joi.number() }
- const possible_combinations = Math.pow(config.scoreVals.length, 2)
- for(let i = 1; i <= possible_combinations; i++) {
- aspects[i] = Joi.number()
- }
-
- module.exports = class Aspect extends Schwifty.Model {
- static get tableName() {
- return 'prescored_aspects'
- }
- static get joiSchema() {
- return Joi.object(aspects)
- }
- }
|