gancio-upstream/server/api/models/setting.js

16 lines
309 B
JavaScript
Raw Normal View History

2019-06-07 17:02:33 +02:00
'use strict'
2019-06-06 23:54:32 +02:00
module.exports = (sequelize, DataTypes) => {
const setting = sequelize.define('setting', {
2019-06-07 17:02:33 +02:00
key: {
2019-06-06 23:54:32 +02:00
type: DataTypes.STRING,
primaryKey: true,
allowNull: false,
2019-06-07 17:02:33 +02:00
index: true
2019-06-06 23:54:32 +02:00
},
value: DataTypes.JSON,
is_secret: DataTypes.BOOLEAN
2019-06-07 17:02:33 +02:00
}, {})
2019-06-06 23:54:32 +02:00
2019-06-07 17:02:33 +02:00
return setting
}