Created
September 21, 2017 14:10
-
-
Save Abazhenov/4e581fc47f13a8dd419678eaaca558af 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_link extends Sequelize.Model { | |
//methods, hooks, etc.... | |
} | |
tag_link.init({ | |
table: { | |
type: Sequelize.STRING, | |
allowNull: false, | |
}, | |
foreign_key: { | |
type: Sequelize.INTEGER, | |
allowNull: false, | |
} | |
},{ | |
sequelize: db, | |
tableName: 'tag_link', | |
}); | |
module.exports = tag_link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment