26 lines
No EOL
471 B
JavaScript
26 lines
No EOL
471 B
JavaScript
const { DataTypes } = require('sequelize');
|
|
const { sequelize } = require('../db');
|
|
|
|
const Config = sequelize.define('Config', {
|
|
key: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
unique: true
|
|
},
|
|
value: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false
|
|
},
|
|
valueType: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false
|
|
},
|
|
isLocked: {
|
|
type: DataTypes.BOOLEAN,
|
|
defaultValue: false
|
|
}
|
|
}, {
|
|
tableName: 'config'
|
|
});
|
|
|
|
module.exports = Config; |