inital commit

This commit is contained in:
Torsten Schulz
2024-06-15 23:01:46 +02:00
parent 1b7fefe381
commit 61653ff407
105 changed files with 7805 additions and 524 deletions

View File

@@ -0,0 +1,20 @@
'use strict';
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.addColumn('events', 'event_place_id', {
type: Sequelize.INTEGER,
references: {
model: 'event_places',
key: 'id'
},
onUpdate: 'CASCADE',
onDelete: 'SET NULL',
allowNull: true
});
},
down: async (queryInterface, Sequelize) => {
await queryInterface.removeColumn('events', 'event_place_id');
}
};