mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
19 lines
336 B
JavaScript
19 lines
336 B
JavaScript
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
|
|
} |