type: DataTypes.DATE,
get: function() {
// 'this' allows you to access attributes of the instance
- return moment(this.getDataValue('createdAt')).format("YYYY-MM-DD");
+ return moment(this.getDataValue('createdAt')).format("YYYY-MM-DD HH:mm:ss");
}
},
type: {