flame/models/Config.js

26 lines
471 B
JavaScript
Raw Normal View History

2021-05-15 19:33:59 +03:00
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
}
}, {
2021-05-23 18:18:04 +03:00
tableName: 'config'
2021-05-15 19:33:59 +03:00
});
module.exports = Config;