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,
modelName: 'Setting'
})
return Setting
}