Created
August 29, 2017 00:57
-
-
Save Abazhenov/07baa79a748f9195824269a17ed34343 to your computer and use it in GitHub Desktop.
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
const db = require('../_db'); | |
const Sequelize = require('sequelize'); | |
class tag extends Sequelize.Model { | |
//methods, hooks, etc.... | |
} | |
tag.init({ | |
name: { | |
type: Sequelize.STRING(100), | |
allowNull: false, | |
} | |
},{ | |
sequelize: db, | |
tableName: 'tag', | |
}); | |
module.exports = tag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment