Commit 3eec0c37 authored by 姜登's avatar 姜登

gjj

parent 4972e758
Pipeline #5852 passed with stage
in 5 seconds
...@@ -78,13 +78,13 @@ module.exports = app => { ...@@ -78,13 +78,13 @@ module.exports = app => {
this.setDataValue('note', JSON.stringify(val)); this.setDataValue('note', JSON.stringify(val));
}, },
}, },
create_at: { created_at: {
type: DataTypes.DATE, type: DataTypes.DATE,
allowNull: false, allowNull: false,
defaultValue: app.Sequelize.literal('CURRENT_TIMESTAMP'), defaultValue: app.Sequelize.literal('CURRENT_TIMESTAMP'),
field: 'createDate', field: 'createDate',
}, },
update_at: { updated_at: {
type: DataTypes.DATE, type: DataTypes.DATE,
allowNull: false, allowNull: false,
defaultValue: app.Sequelize.literal('CURRENT_TIMESTAMP'), defaultValue: app.Sequelize.literal('CURRENT_TIMESTAMP'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment