mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-03 06:29:42 +00:00
Feed and Setting models
This commit is contained in:
parent
bed3758268
commit
c7f457da3e
10 changed files with 236 additions and 10 deletions
19
server/models/Setting.js
Normal file
19
server/models/Setting.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue