Issue of sequelize-typescript timestamps column datatype

Viewed 3

May I know is there anyway to set the timestamps column(@CreatedAt,@UpdatedAt,@DeletedAt) data type to "datetime" instead of "datetimeoffset" while using with mssql server? Since I want to match my old database schema, thx

the following is my current code:

@CreatedAt
createdAt: Date;

@UpdatedAt
updatedAt?: Date;

@DeletedAt
deletedAt?: Date;

enter image description here

0 Answers
Related