import {Entity, model, property} from '@loopback/repository'; @model() export class MoodsFactors extends Entity { @property({ type: 'number', id: true, generated: true, }) id?: number; @property({ type: 'string', required: true, }) name: string; @property({ type: 'string', default: null, }) image?: string; @property({ type: 'string', default: null, }) description?: string; @property({ type: 'string', name: 'alert_key', description: 'This property maps to the logic for alter priority', jsonSchema: { enum: [ 'work_alert', 'relation_ship_alert', 'health_alert', 'family_alert', 'finances_alert', 'others_alert', ], }, }) alertKey?: string; constructor(data?: Partial) { super(data); } }