new(all): Sequelize updated to v6.
This commit is contained in:
parent
30f263e786
commit
2446b56079
7 changed files with 69 additions and 76 deletions
|
@ -119,7 +119,7 @@
|
||||||
"swagger-client": "2.1.18",
|
"swagger-client": "2.1.18",
|
||||||
"tedious": "14.0.0",
|
"tedious": "14.0.0",
|
||||||
"textract": "2.5.0",
|
"textract": "2.5.0",
|
||||||
"typescript": "3.6.4",
|
"typescript": "3.6.4",
|
||||||
"url-join": "4.0.1",
|
"url-join": "4.0.1",
|
||||||
"vbscript-to-typescript": "1.0.8",
|
"vbscript-to-typescript": "1.0.8",
|
||||||
"walk-promise": "0.2.0",
|
"walk-promise": "0.2.0",
|
||||||
|
|
|
@ -66,29 +66,28 @@ export class GuaribasConversation extends Model<GuaribasConversation> {
|
||||||
|
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public conversationId: number;
|
public conversationId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasSubject)
|
@ForeignKey(() => GuaribasSubject)
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public startSubjectId: number;
|
public startSubjectId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasSubject)
|
@BelongsTo(() => GuaribasSubject)
|
||||||
public startSubject: GuaribasSubject;
|
public startSubject: GuaribasSubject;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasChannel)
|
@ForeignKey(() => GuaribasChannel)
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public channelId: string;
|
public channelId: string;
|
||||||
|
|
||||||
@Column(DataType.DATE)
|
@Column(DataType.DATE)
|
||||||
public rateDate: Date;
|
public rateDate: Date;
|
||||||
|
|
||||||
@Column(DataType.FLOAT)
|
@Column(DataType.FLOAT)
|
||||||
|
|
||||||
public rate: number;
|
public rate: number;
|
||||||
|
|
||||||
@Column(DataType.STRING(512))
|
@Column(DataType.STRING(512))
|
||||||
|
@ -117,11 +116,11 @@ export class GuaribasConversationMessage extends Model<GuaribasConversationMessa
|
||||||
|
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public conversationMessageId: number;
|
public conversationMessageId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasSubject)
|
@ForeignKey(() => GuaribasSubject)
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public subjectId: number;
|
public subjectId: number;
|
||||||
|
|
||||||
@Column(DataType.TEXT)
|
@Column(DataType.TEXT)
|
||||||
|
@ -138,7 +137,7 @@ export class GuaribasConversationMessage extends Model<GuaribasConversationMessa
|
||||||
|
|
||||||
//tslint:disable-next-line:no-use-before-declare
|
//tslint:disable-next-line:no-use-before-declare
|
||||||
@ForeignKey(() => GuaribasConversation)
|
@ForeignKey(() => GuaribasConversation)
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public conversationId: number;
|
public conversationId: number;
|
||||||
|
|
||||||
//tslint:disable-next-line:no-use-before-declare
|
//tslint:disable-next-line:no-use-before-declare
|
||||||
|
@ -146,11 +145,11 @@ export class GuaribasConversationMessage extends Model<GuaribasConversationMessa
|
||||||
public conversation: GuaribasConversation;
|
public conversation: GuaribasConversation;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasUser)
|
@ForeignKey(() => GuaribasUser)
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public userId: number;
|
public userId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasUser)
|
@BelongsTo(() => GuaribasUser)
|
||||||
|
|
|
@ -62,7 +62,7 @@ export class GuaribasSchedule extends Model<GuaribasSchedule> {
|
||||||
public schedule: string;
|
public schedule: string;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasInstance)
|
@BelongsTo(() => GuaribasInstance)
|
||||||
|
|
|
@ -278,7 +278,7 @@ export class GuaribasInstance extends Model<GuaribasInstance>
|
||||||
export class GuaribasPackage extends Model<GuaribasPackage> {
|
export class GuaribasPackage extends Model<GuaribasPackage> {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public packageId: number;
|
public packageId: number;
|
||||||
|
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
|
@ -310,7 +310,7 @@ export class GuaribasPackage extends Model<GuaribasPackage> {
|
||||||
export class GuaribasChannel extends Model<GuaribasChannel> {
|
export class GuaribasChannel extends Model<GuaribasChannel> {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public channelId: number;
|
public channelId: number;
|
||||||
|
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
|
|
|
@ -44,7 +44,8 @@ import {
|
||||||
ForeignKey,
|
ForeignKey,
|
||||||
Model,
|
Model,
|
||||||
PrimaryKey,
|
PrimaryKey,
|
||||||
Table} from 'sequelize-typescript';
|
Table
|
||||||
|
} from 'sequelize-typescript';
|
||||||
|
|
||||||
import { GuaribasInstance } from '../../core.gbapp/models/GBModel';
|
import { GuaribasInstance } from '../../core.gbapp/models/GBModel';
|
||||||
|
|
||||||
|
@ -56,17 +57,17 @@ export class GuaribasQuestionAlternate extends Model<GuaribasQuestionAlternate>
|
||||||
|
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public quickAnswerId: number;
|
public quickAnswerId: number;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public questionTyped: string;
|
public questionTyped: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public questionText: string;
|
public questionText: string;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasInstance)
|
@BelongsTo(() => GuaribasInstance)
|
||||||
|
|
|
@ -67,27 +67,26 @@ import { GuaribasUser } from '../../security.gbapp/models';
|
||||||
export class GuaribasSubject extends Model<GuaribasSubject> {
|
export class GuaribasSubject extends Model<GuaribasSubject> {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public subjectId: number;
|
public subjectId: number;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public internalId: string;
|
public internalId: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public title: string;
|
public title: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(512))
|
@Column(DataType.STRING(512))
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public description: string;
|
public description: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public from: string;
|
public from: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public to: string;
|
public to: string;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasSubject)
|
@ForeignKey(() => GuaribasSubject)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public parentSubjectId: number;
|
public parentSubjectId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasSubject, 'parentSubjectId')
|
@BelongsTo(() => GuaribasSubject, 'parentSubjectId')
|
||||||
|
@ -97,21 +96,21 @@ public to: string;
|
||||||
public childrenSubjects: GuaribasSubject[];
|
public childrenSubjects: GuaribasSubject[];
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasInstance)
|
@BelongsTo(() => GuaribasInstance)
|
||||||
public instance: GuaribasInstance;
|
public instance: GuaribasInstance;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasUser)
|
@ForeignKey(() => GuaribasUser)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public responsibleUserId: number;
|
public responsibleUserId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasUser)
|
@BelongsTo(() => GuaribasUser)
|
||||||
public responsibleUser: GuaribasUser;
|
public responsibleUser: GuaribasUser;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasPackage)
|
@ForeignKey(() => GuaribasPackage)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public packageId: number;
|
public packageId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasPackage)
|
@BelongsTo(() => GuaribasPackage)
|
||||||
|
@ -125,30 +124,25 @@ public to: string;
|
||||||
export class GuaribasQuestion extends Model<GuaribasQuestion> {
|
export class GuaribasQuestion extends Model<GuaribasQuestion> {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public questionId: number;
|
public questionId: number;
|
||||||
|
|
||||||
@Column(DataType.STRING(64))
|
@Column(DataType.STRING(64))
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public subject1: string;
|
public subject1: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(64))
|
@Column(DataType.STRING(64))
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public subject2: string;
|
public subject2: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(64))
|
@Column(DataType.STRING(64))
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public subject3: string;
|
public subject3: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(64))
|
@Column(DataType.STRING(64))
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public subject4: string;
|
public subject4: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(1024))
|
@Column(DataType.STRING(1024))
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public keywords: string;
|
public keywords: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.BOOLEAN)
|
||||||
public skipIndex: boolean;
|
public skipIndex: boolean;
|
||||||
|
|
||||||
@Column(DataType.STRING(512))
|
@Column(DataType.STRING(512))
|
||||||
|
@ -160,7 +154,7 @@ export class GuaribasQuestion extends Model<GuaribasQuestion> {
|
||||||
@Column(DataType.TEXT)
|
@Column(DataType.TEXT)
|
||||||
public content: string;
|
public content: string;
|
||||||
|
|
||||||
@Column(DataType.DATE)
|
@Column(DataType.DATE)
|
||||||
@CreatedAt
|
@CreatedAt
|
||||||
public createdAt: Date;
|
public createdAt: Date;
|
||||||
|
|
||||||
|
@ -171,18 +165,18 @@ export class GuaribasQuestion extends Model<GuaribasQuestion> {
|
||||||
|
|
||||||
//tslint:disable-next-line:no-use-before-declare
|
//tslint:disable-next-line:no-use-before-declare
|
||||||
@ForeignKey(() => GuaribasAnswer)
|
@ForeignKey(() => GuaribasAnswer)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public answerId: number;
|
public answerId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasInstance)
|
@BelongsTo(() => GuaribasInstance)
|
||||||
public instance: GuaribasInstance;
|
public instance: GuaribasInstance;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasPackage)
|
@ForeignKey(() => GuaribasPackage)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public packageId: number;
|
public packageId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasPackage)
|
@BelongsTo(() => GuaribasPackage)
|
||||||
|
@ -196,21 +190,21 @@ export class GuaribasQuestion extends Model<GuaribasQuestion> {
|
||||||
export class GuaribasAnswer extends Model<GuaribasAnswer> {
|
export class GuaribasAnswer extends Model<GuaribasAnswer> {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public answerId: number;
|
public answerId: number;
|
||||||
|
|
||||||
@Length({ min: 0, max: 512 })
|
@Length({ min: 0, max: 512 })
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(512))
|
||||||
public media: string;
|
public media: string;
|
||||||
|
|
||||||
@Length({ min: 0, max: 12 })
|
@Length({ min: 0, max: 12 })
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(12))
|
||||||
public format: string;
|
public format: string;
|
||||||
|
|
||||||
@Column(DataType.TEXT)
|
@Column(DataType.TEXT)
|
||||||
public content: string;
|
public content: string;
|
||||||
|
|
||||||
@Column(DataType.DATE)
|
@Column(DataType.DATE)
|
||||||
@CreatedAt
|
@CreatedAt
|
||||||
public createdAt: Date;
|
public createdAt: Date;
|
||||||
|
|
||||||
|
@ -229,19 +223,19 @@ export class GuaribasAnswer extends Model<GuaribasAnswer> {
|
||||||
public next: GuaribasQuestion;
|
public next: GuaribasQuestion;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasQuestion)
|
@ForeignKey(() => GuaribasQuestion)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public nextId: number;
|
public nextId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasQuestion)
|
@ForeignKey(() => GuaribasQuestion)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public prevId: number;
|
public prevId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasPackage)
|
@ForeignKey(() => GuaribasPackage)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public packageId: number;
|
public packageId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasPackage)
|
@BelongsTo(() => GuaribasPackage)
|
||||||
|
|
|
@ -45,7 +45,8 @@ import {
|
||||||
Length,
|
Length,
|
||||||
Model,
|
Model,
|
||||||
PrimaryKey,
|
PrimaryKey,
|
||||||
Table} from 'sequelize-typescript';
|
Table
|
||||||
|
} from 'sequelize-typescript';
|
||||||
|
|
||||||
import { GuaribasInstance } from '../../core.gbapp/models/GBModel';
|
import { GuaribasInstance } from '../../core.gbapp/models/GBModel';
|
||||||
|
|
||||||
|
@ -59,42 +60,40 @@ export class GuaribasUser extends Model<GuaribasUser> {
|
||||||
@Column(DataType.INTEGER)
|
@Column(DataType.INTEGER)
|
||||||
public userId: number;
|
public userId: number;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public displayName: string;
|
public displayName: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public userSystemId: string;
|
public userSystemId: string;
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public userName: string;
|
public userName: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public defaultChannel: string;
|
public defaultChannel: string;
|
||||||
|
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(255))
|
||||||
public email: string;
|
public email: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(5))
|
@Column(DataType.STRING(5))
|
||||||
public locale: string;
|
public locale: string;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasInstance)
|
@BelongsTo(() => GuaribasInstance)
|
||||||
public instance: GuaribasInstance;
|
public instance: GuaribasInstance;
|
||||||
|
|
||||||
@Column(DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public agentSystemId: string;
|
public agentSystemId: string;
|
||||||
|
|
||||||
@Column(DataType.DATE)
|
@Column(DataType.DATE)
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public agentContacted: Date;
|
public agentContacted: Date;
|
||||||
|
|
||||||
@Column(DataType.STRING(16))
|
@Column(DataType.STRING(16))
|
||||||
public agentMode: string;
|
public agentMode: string;
|
||||||
|
|
||||||
@Column(DataType.TEXT)
|
@Column(DataType.TEXT)
|
||||||
@Column (DataType.STRING(255))
|
|
||||||
public conversationReference: string;
|
public conversationReference: string;
|
||||||
|
|
||||||
@Column(DataType.STRING(64))
|
@Column(DataType.STRING(64))
|
||||||
|
@ -108,15 +107,15 @@ public email: string;
|
||||||
export class GuaribasGroup extends Model<GuaribasGroup> {
|
export class GuaribasGroup extends Model<GuaribasGroup> {
|
||||||
@PrimaryKey
|
@PrimaryKey
|
||||||
@AutoIncrement
|
@AutoIncrement
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public groupId: number;
|
public groupId: number;
|
||||||
|
|
||||||
@Length({ min: 0, max: 512 })
|
@Length({ min: 0, max: 512 })
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.STRING(512))
|
||||||
public displayName: string;
|
public displayName: string;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasInstance)
|
@BelongsTo(() => GuaribasInstance)
|
||||||
|
@ -129,15 +128,15 @@ export class GuaribasGroup extends Model<GuaribasGroup> {
|
||||||
@Table
|
@Table
|
||||||
export class GuaribasUserGroup extends Model<GuaribasUserGroup> {
|
export class GuaribasUserGroup extends Model<GuaribasUserGroup> {
|
||||||
@ForeignKey(() => GuaribasUser)
|
@ForeignKey(() => GuaribasUser)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public userId: number;
|
public userId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasGroup)
|
@ForeignKey(() => GuaribasGroup)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public groupId: number;
|
public groupId: number;
|
||||||
|
|
||||||
@ForeignKey(() => GuaribasInstance)
|
@ForeignKey(() => GuaribasInstance)
|
||||||
@Column (DataType.STRING(255))
|
@Column(DataType.INTEGER)
|
||||||
public instanceId: number;
|
public instanceId: number;
|
||||||
|
|
||||||
@BelongsTo(() => GuaribasInstance)
|
@BelongsTo(() => GuaribasInstance)
|
||||||
|
|
Loading…
Add table
Reference in a new issue