1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-19 19:49:37 +02:00
flame/models/Config.js

31 lines
522 B
JavaScript
Raw Normal View History

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