mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
15 lines
309 B
JavaScript
15 lines
309 B
JavaScript
'use strict'
|
|
module.exports = (sequelize, DataTypes) => {
|
|
const setting = sequelize.define('setting', {
|
|
key: {
|
|
type: DataTypes.STRING,
|
|
primaryKey: true,
|
|
allowNull: false,
|
|
index: true
|
|
},
|
|
value: DataTypes.JSON,
|
|
is_secret: DataTypes.BOOLEAN
|
|
}, {})
|
|
|
|
return setting
|
|
}
|