flame/models/Config.js

31 lines
522 B
JavaScript
Raw Normal View History

2021-05-15 16:33:59 +00:00
const { DataTypes } = require('sequelize');
const { sequelize } = require('../db');
2021-10-05 10:29:17 +00:00
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.TINYINT,
defaultValue: 0,
},
2021-05-15 16:33:59 +00:00
},
2021-10-05 10:29:17 +00:00
{
tableName: 'config',
2021-05-15 16:33:59 +00:00
}
2021-10-05 10:29:17 +00:00
);
2021-05-15 16:33:59 +00:00
2021-10-05 10:29:17 +00:00
module.exports = Config;