Skip to content

Defining timestamps: true in the new Sequelize() class doesn't work. #68

@chanlito

Description

@chanlito
private setupDatabase(): void { this.db = this.app.context.db = new Sequelize({ ...this.config.db, modelPaths: [ this.config.app.modelsDir ], define: { timestamps: true, underscored: true, freezeTableName: true, charset: 'utf8', collate: 'utf8_general_ci', createdAt: 'created_date', updatedAt: 'updated_date', deletedAt: 'deleted_date' }, logging: this.config.db.sync.logging, sync: this.config.db.sync, validateOnly: false }); } 

When i call sync() it doesn't create with created_date, updated_date....

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions