1
This commit is contained in:
@@ -30,6 +30,12 @@ module.exports = (db) => {
|
||||
type: Sequelize.JSON,
|
||||
allowNull: true,
|
||||
},
|
||||
// 表字段存在且非空无默认时,须由模型声明,否则 insert 缺列报错
|
||||
created_at: {
|
||||
type: Sequelize.DATE,
|
||||
allowNull: false,
|
||||
defaultValue: Sequelize.NOW,
|
||||
},
|
||||
},
|
||||
{
|
||||
tableName: "biz_audit_log",
|
||||
|
||||
Reference in New Issue
Block a user