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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | 1x 1x 1x 1x 1x 1x 1x 1x 1x | import {belongsTo, model, property} from '@loopback/repository';
import {BaseEntity, FlowDefaultJourneyPoint, FlowDefaultPersona, Form} from '.';
import {FlowDefault} from './flow-default.model';
@model({
settings: {
postgresql: {table: 'flows_default_action'},
foreignKeys: {
fk_flows_default_action_flows_default_journey_point_id: {
name: 'fk_flows_default_action_flows_default_journey_point_id',
entity: 'FlowDefaultJourneyPoint',
entityKey: 'id',
foreignKey: 'flow_default_journey_point_id',
onDelete: 'CASCADE',
onUpdate: 'RESTRICT'
},
},
},
})
export class FlowDefaultAction extends BaseEntity {
@property({
type: 'string',
jsonSchema: {
nullable: true,
},
})
title: string;
@belongsTo(() => FlowDefault, {name: 'flow_default'})
flow_default_id: number;
@belongsTo(() => FlowDefaultJourneyPoint, {
name: 'flow_default_journey_point',
})
flow_default_journey_point_id: number;
@belongsTo(() => Form, {name: 'form'})
form_id: number;
@belongsTo(() => FlowDefaultPersona, {name: 'persona'})
flow_persona_id: number;
action_id: number;
form_name: number;
form_type: number;
company_persona: number;
company_persona_name: string;
validator_name: string;
constructor(data?: Partial<FlowDefaultAction>) {
super(data);
}
}
export interface FlowDefaultActionRelations {}
export type FlowDefaultActionWithRelations = FlowDefaultAction &
FlowDefaultActionRelations;
|