This commit is contained in:
张成
2026-03-25 19:01:28 +08:00
parent 5b654824b4
commit 7d0a921805
27 changed files with 560 additions and 245 deletions

View File

@@ -1,7 +1,7 @@
const Sequelize = require("sequelize");
module.exports = (db) => {
return db.define(
const biz_audit_log = db.define(
"biz_audit_log",
{
id: {
@@ -44,11 +44,8 @@ module.exports = (db) => {
timestamps: false,
underscored: true,
comment: "审计日志",
hooks: {
beforeCreate(row) {
if (!row.created_at) row.created_at = new Date();
},
},
}
);
// biz_audit_log.sync({ alter: true });
return biz_audit_log;
};