2014-06-30 16:58:10 +04:00
|
|
|
var ghostBookshelf = require('./base'),
|
|
|
|
|
|
|
|
Client,
|
|
|
|
Clients;
|
|
|
|
|
2014-07-13 15:17:18 +04:00
|
|
|
|
2014-06-30 16:58:10 +04:00
|
|
|
Client = ghostBookshelf.Model.extend({
|
|
|
|
tableName: 'clients'
|
|
|
|
});
|
|
|
|
|
|
|
|
Clients = ghostBookshelf.Collection.extend({
|
|
|
|
model: Client
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = {
|
2014-07-13 15:17:18 +04:00
|
|
|
Client: ghostBookshelf.model('Client', Client),
|
|
|
|
Clients: ghostBookshelf.collection('Clients', Clients)
|
2014-06-30 16:58:10 +04:00
|
|
|
};
|