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,
Posts,
User,
Setting;
Setting,
Settings;
Post = Bookshelf.Model.extend({
@ -68,15 +69,19 @@
});
Setting = Bookshelf.Model.extend({
tableName: 'settings',
hasTimestamps: true
});
tableName: 'settings'
Settings = Bookshelf.Collection.extend({
model: Setting
});
module.exports = {
Post: Post,
Posts: Posts,
User: User,
Setting: Setting
Setting: Setting,
Settings: Settings
};
}());