mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +03:00
15 lines
335 B
JavaScript
15 lines
335 B
JavaScript
|
const ghostBookshelf = require('./base');
|
||
|
|
||
|
const Snippet = ghostBookshelf.Model.extend({
|
||
|
tableName: 'snippets'
|
||
|
});
|
||
|
|
||
|
const Snippets = ghostBookshelf.Collection.extend({
|
||
|
model: Snippet
|
||
|
});
|
||
|
|
||
|
module.exports = {
|
||
|
Snippet: ghostBookshelf.model('Snippet', Snippet),
|
||
|
Snippets: ghostBookshelf.collection('Snippets', Snippets)
|
||
|
};
|