audiobookshelf/server/models/Setting.js

19 lines
336 B
JavaScript
Raw Normal View History

2023-03-13 23:13:31 +01:00
const { DataTypes, Model } = require('sequelize')
module.exports = (sequelize) => {
class Setting extends Model { }
Setting.init({
key: {
type: DataTypes.STRING,
primaryKey: true
},
value: DataTypes.STRING,
type: DataTypes.INTEGER
}, {
sequelize,
2023-03-19 21:19:22 +01:00
modelName: 'setting'
2023-03-13 23:13:31 +01:00
})
return Setting
}