mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Define Settings models
This commit is contained in:
parent
b808f73eff
commit
4860cccef9
1 changed files with 9 additions and 4 deletions
|
@ -12,7 +12,8 @@
|
||||||
Post,
|
Post,
|
||||||
Posts,
|
Posts,
|
||||||
User,
|
User,
|
||||||
Setting;
|
Setting,
|
||||||
|
Settings;
|
||||||
|
|
||||||
Post = Bookshelf.Model.extend({
|
Post = Bookshelf.Model.extend({
|
||||||
|
|
||||||
|
@ -68,15 +69,19 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
Setting = Bookshelf.Model.extend({
|
Setting = Bookshelf.Model.extend({
|
||||||
|
tableName: 'settings',
|
||||||
|
hasTimestamps: true
|
||||||
|
});
|
||||||
|
|
||||||
tableName: 'settings'
|
Settings = Bookshelf.Collection.extend({
|
||||||
|
model: Setting
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
Post: Post,
|
Post: Post,
|
||||||
Posts: Posts,
|
Posts: Posts,
|
||||||
User: User,
|
User: User,
|
||||||
Setting: Setting
|
Setting: Setting,
|
||||||
|
Settings: Settings
|
||||||
};
|
};
|
||||||
}());
|
}());
|
Loading…
Reference in a new issue