fix(all): Sequelize base members demand declare keyword on timestamp fields.
This commit is contained in:
parent
0202ed0ef5
commit
493889beb2
5 changed files with 23 additions and 23 deletions
|
@ -62,9 +62,9 @@ export class GuaribasAdmin extends Model<GuaribasAdmin> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
}
|
||||
|
|
|
@ -96,7 +96,7 @@ export class GuaribasConversation extends Model<GuaribasConversation> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column public text: string;
|
||||
|
||||
|
@ -128,11 +128,11 @@ export class GuaribasConversationMessage extends Model<GuaribasConversationMessa
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
|
||||
//tslint:disable-next-line:no-use-before-declare
|
||||
@ForeignKey(() => GuaribasConversation)
|
||||
|
|
|
@ -70,9 +70,9 @@ export class GuaribasSchedule extends Model<GuaribasSchedule> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
}
|
||||
|
|
|
@ -244,11 +244,11 @@ export class GuaribasInstance extends Model<GuaribasInstance>
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
|
||||
@Column(DataType.STRING(4000))
|
||||
public params: string;
|
||||
|
@ -276,11 +276,11 @@ export class GuaribasPackage extends Model<GuaribasPackage> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
|
||||
@Column({ type: DataType.STRING(512) })
|
||||
public custom: string;
|
||||
|
@ -301,11 +301,11 @@ export class GuaribasChannel extends Model<GuaribasChannel> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -331,11 +331,11 @@ export class GuaribasException extends Model<GuaribasException> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
}
|
||||
|
||||
@Table
|
||||
|
@ -354,11 +354,11 @@ export class GuaribasApplications extends Model<GuaribasApplications> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
}
|
||||
|
||||
@Table
|
||||
|
@ -380,9 +380,9 @@ export class GuaribasSchedule extends Model<GuaribasSchedule> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
}
|
||||
|
|
|
@ -158,11 +158,11 @@ export class GuaribasQuestion extends Model<GuaribasQuestion> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
|
||||
//tslint:disable-next-line:no-use-before-declare
|
||||
@ForeignKey(() => GuaribasAnswer)
|
||||
|
@ -207,11 +207,11 @@ export class GuaribasAnswer extends Model<GuaribasAnswer> {
|
|||
|
||||
@Column
|
||||
@CreatedAt
|
||||
public createdAt: Date;
|
||||
declare public createdAt: Date;
|
||||
|
||||
@Column
|
||||
@UpdatedAt
|
||||
public updatedAt: Date;
|
||||
declare public updatedAt: Date;
|
||||
|
||||
@HasMany(() => GuaribasQuestion)
|
||||
public questions: GuaribasQuestion[];
|
||||
|
|
Loading…
Add table
Reference in a new issue