import {Entity, model, property} from '@loopback/repository'; @model() export class Migration extends Entity { @property({ type: 'number', id: true, generated: true, }) id?: number; @property({ type: 'string', required: true, }) name: string; @property({ type: 'number', required: true, }) version: number; // Define well-known properties here // Indexer property to allow additional data // eslint-disable-next-line @typescript-eslint/no-explicit-any [prop: string]: any; constructor(data?: Partial) { super(data); } } export interface MigrationRelations { // describe navigational properties here } export type MigrationWithRelations = Migration & MigrationRelations;