mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-21 09:11:29 +03:00
31 lines
522 B
JavaScript
31 lines
522 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.TINYINT,
|
|
defaultValue: 0,
|
|
},
|
|
},
|
|
{
|
|
tableName: 'config',
|
|
}
|
|
);
|
|
|
|
module.exports = Config;
|