add confirmed field in schema
This commit is contained in:
@@ -11,7 +11,12 @@ Place.init({
|
|||||||
index: true,
|
index: true,
|
||||||
allowNull: false
|
allowNull: false
|
||||||
},
|
},
|
||||||
address: DataTypes.STRING
|
address: DataTypes.STRING,
|
||||||
|
confirmed: {
|
||||||
|
type: DataTypes.BOOLEAN,
|
||||||
|
defaultValue: true,
|
||||||
|
allowNull: false
|
||||||
|
}
|
||||||
}, { sequelize, modelName: 'place' })
|
}, { sequelize, modelName: 'place' })
|
||||||
|
|
||||||
// Place.hasMany(Event)
|
// Place.hasMany(Event)
|
||||||
|
|||||||
@@ -11,7 +11,16 @@ Tag.init({
|
|||||||
index: true,
|
index: true,
|
||||||
primaryKey: true
|
primaryKey: true
|
||||||
},
|
},
|
||||||
weigth: { type: DataTypes.INTEGER, defaultValue: 0, allowNull: false }
|
weigth: {
|
||||||
|
type: DataTypes.INTEGER,
|
||||||
|
defaultValue: 0,
|
||||||
|
allowNull: false
|
||||||
|
},
|
||||||
|
confirmed: {
|
||||||
|
type: DataTypes.BOOLEAN,
|
||||||
|
defaultValue: true,
|
||||||
|
allowNull: false
|
||||||
|
}
|
||||||
}, { sequelize, modelName: 'tag' })
|
}, { sequelize, modelName: 'tag' })
|
||||||
|
|
||||||
// Tag.belongsToMany(Event, { through: 'event_tags' })
|
// Tag.belongsToMany(Event, { through: 'event_tags' })
|
||||||
|
|||||||
Reference in New Issue
Block a user