You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
541 B
24 lines
541 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
|
|
},
|
|
},
|
|
{
|
|
timestamps: false,
|
|
}
|
|
);
|
|
return Constant
|
|
};
|