import {model, property} from '@loopback/repository'; import {UserModifiableEntity} from '@sourcefuse-npm/alivio-lib'; @model() export class ContentPosts extends UserModifiableEntity { @property({ type: 'number', id: true, generated: true, }) id?: number; @property({ type: 'number', name: 'patient_id', required: true, }) patientId: number; @property({ type: 'number', name: 'user_id', required: true, }) userId: number; @property({ type: 'number', name: 'collection_type_id', required: true, }) collectionTypeId: number; @property({ type: 'string', name: 'collection_type', }) collectionType: string; @property({ type: 'string', name: 'segment', }) segment: string; @property({ type: 'string', name: 'type', }) type: string; @property({ type: 'string', name: 'reccurence', }) reccurence: string; @property({ type: 'boolean', name: 'is_read', }) isRead: boolean; constructor(data?: Partial) { super(data); } }