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.
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
|
|
}
|
|
|