import {model, property} from '@loopback/repository'; import {UserModifiableEntity} from '@sourcefuse-npm/alivio-lib'; @model({name: 'patient_care_plan_details'}) export class PatientCarePlanDetails extends UserModifiableEntity { @property({ type: 'number', id: true, generated: true, }) id?: number; @property({ type: 'number', required: true, }) patientId: number; @property({ type: 'number', required: true, }) carePlanId: number; @property({ type: 'string', default: null, }) externalId?: string; @property({ type: 'boolean', }) activated?: boolean; @property({ type: 'date', }) activatedOn?: Date; @property({ type: 'boolean', }) deactivated: boolean; @property({ type: 'date', }) deactivatedOn?: Date; constructor(data?: Partial) { super(data); } }