[model] migrations setup
This commit is contained in:
@@ -4,6 +4,7 @@ const moment = require('moment')
|
||||
module.exports = (sequelize, DataTypes) => {
|
||||
const event = sequelize.define('event', {
|
||||
id: {
|
||||
allowNull: false,
|
||||
type: DataTypes.INTEGER,
|
||||
primaryKey: true,
|
||||
autoIncrement: true
|
||||
|
||||
@@ -7,7 +7,7 @@ module.exports = (sequelize, DataTypes) => {
|
||||
index: true,
|
||||
primaryKey: true
|
||||
},
|
||||
weigth: { type: DataTypes.INTEGER, defaultValue: 0, allowNull: false }
|
||||
weigth: { type: DataTypes.INTEGER, defaultValue: 0, allowNull: false },
|
||||
}, {})
|
||||
|
||||
tag.associate = function (models) {
|
||||
|
||||
Reference in New Issue
Block a user