0
Fork 0
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:
Ricardo Tomasi 2013-05-19 18:52:53 -03:00
parent b808f73eff
commit 4860cccef9

View file

@ -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
}; };
}()); }());