Skip to content

Instantly share code, notes, and snippets.

@Abazhenov
Created August 29, 2017 00:57
Show Gist options
  • Save Abazhenov/07baa79a748f9195824269a17ed34343 to your computer and use it in GitHub Desktop.
Save Abazhenov/07baa79a748f9195824269a17ed34343 to your computer and use it in GitHub Desktop.
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