Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {Entity, model, property} from '@loopback/repository';
@model({
name: 'reason_config',
settings: {
postgresql: {schema: 'public', table: 'reason_config'},
},
})
export class ReasonConfig extends Entity {
@property({type: 'number', id: true, generated: true})
id: number;
@property({type: 'string', required: true, length: 50})
action: string;
@property({type: 'string', required: true, length: 100})
reason_code: string;
@property({type: 'string', required: true})
reason_label: string;
@property({type: 'string', required: true})
notification_text: string;
@property({type: 'date'})
created_at?: Date;
@property({type: 'date'})
updated_at?: Date;
}
export interface ReasonConfigRelations {}
export type ReasonConfigWithRelations = ReasonConfig & ReasonConfigRelations;
|