mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
29 lines
607 B
JavaScript
29 lines
607 B
JavaScript
|
'use strict';
|
||
|
module.exports = {
|
||
|
up: (queryInterface, Sequelize) => {
|
||
|
return queryInterface.createTable('tags', {
|
||
|
tag: {
|
||
|
type: Sequelize.STRING,
|
||
|
allowNull: false,
|
||
|
primaryKey: true
|
||
|
},
|
||
|
weigth: {
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
color: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
createdAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
},
|
||
|
updatedAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
down: (queryInterface, Sequelize) => {
|
||
|
return queryInterface.dropTable('tags');
|
||
|
}
|
||
|
};
|