25 lines
575 B
25 lines
575 B
module.exports = function (sequelize, DataTypes) {
|
|
const Constant = sequelize.define(
|
|
"Constant",
|
|
{
|
|
// 键
|
|
key: {
|
|
type: DataTypes.STRING,
|
|
},
|
|
// 值
|
|
value: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
},
|
|
describe: {
|
|
type: DataTypes.STRING,
|
|
allowNull: true,
|
|
},
|
|
},
|
|
{
|
|
underscored: true,
|
|
timestamps: false,
|
|
},
|
|
)
|
|
return Constant
|
|
}
|
|
|