Last active
June 8, 2017 17:13
-
-
Save alesanabv/ac9c2fb156b6f53edf9de5697e5d0a8b to your computer and use it in GitHub Desktop.
sequelize model example
This file contains hidden or 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
let Post = sequelize.define( | |
"Post", | |
{ | |
title: { type: Sequelize.STRING }, | |
author: { type: Sequelize.STRING }, | |
body: { type: Sequelize.TEXT } | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment