Files
wechatWeb/api/model/sys_parameter.js
张成 433077f08a 1
2026-04-01 10:42:33 +08:00

34 lines
587 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const Sequelize = require("sequelize");
// 字典表
module.exports = (db) => {
return db.define("sys_parameter", {
key: {
type: Sequelize.STRING(100),
allowNull: false,
defaultValue: "",
},
value: {
type: Sequelize.STRING(100),
allowNull: false,
defaultValue: "",
},
remark: {
type: Sequelize.STRING(500),
allowNull: false,
defaultValue: "",
},
// 是否允许修改 0 允许1 不允许
is_modified: {
type: Sequelize.INTEGER(2),
allowNull: false,
defaultValue: 0,
},
});
};