mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
30 lines
595 B
JavaScript
30 lines
595 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up (queryInterface, Sequelize) {
|
|
return queryInterface.createTable('cohorts', {
|
|
id: {
|
|
type: Sequelize.INTEGER,
|
|
primaryKey: true,
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
},
|
|
name: {
|
|
type: Sequelize.STRING,
|
|
unique: true,
|
|
index: true,
|
|
allowNull: false
|
|
},
|
|
isActor: {
|
|
type: Sequelize.BOOLEAN
|
|
},
|
|
isTop: {
|
|
type: Sequelize.BOOLEAN
|
|
}
|
|
})
|
|
},
|
|
|
|
down (queryInterface, Sequelize) {
|
|
return queryInterface.dropTable('cohorts')
|
|
}
|
|
};
|