Files
platformV2Web/api/model/sys_parameter.js
张成 8309808835 1
2025-11-21 16:53:49 +08:00

36 lines
731 B
JavaScript
Raw Permalink 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 db = require("../../middleware/db");
const Sequelize = require("sequelize");
// 字典表
module.exports = sys_parameter = db.define("sys_parameter", {
key: {
type: Sequelize.STRING(100),
allowNull: false,
defaultValue: "",
comment: "字典key",
},
value: {
type: Sequelize.STRING(100),
allowNull: false,
defaultValue: "",
comment: "值",
},
remark: {
type: Sequelize.STRING(500),
allowNull: false,
defaultValue: "",
comment: "备注",
},
// 是否允许修改 0 允许1 不允许
is_modified: {
type: Sequelize.INTEGER(2),
allowNull: false,
defaultValue: 0,
comment: "是否允许修改",
},
});
// sys_parameter.sync({ force: true })