Created
November 9, 2015 19:52
-
-
Save randomnerd/29732fb4776de33a15d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Sequelize from 'sequelize'; | |
import ServiceFactory from './service_factory'; | |
let PostService = ServiceFactory('posts', { | |
title: { | |
type: Sequelize.STRING | |
}, | |
body: { | |
type: Sequelize.TEXT | |
} | |
}); | |
// PostService.created = function(data, params, callback) { | |
// console.log(data, params, callback); | |
// callback(null, data); | |
// }; | |
export default PostService; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment