Commit 28bba9d9 authored by Kim, Subin's avatar Kim, Subin
Browse files

onDelete: 'CASCADE' - 기능 수정 중

parent 0155b4a9
...@@ -39,7 +39,7 @@ const Reservation = ReservationModel(sequelize) ...@@ -39,7 +39,7 @@ const Reservation = ReservationModel(sequelize)
User.belongsTo(Role); User.belongsTo(Role);
Role.hasOne(User); Role.hasOne(User);
Theater.belongsTo(TheaterType); Theater.belongsTo(TheaterType, { onDelete: 'CASCADE' });
TicketFee.belongsTo(TheaterType, { onDelete: 'CASCADE' }); TicketFee.belongsTo(TheaterType, { onDelete: 'CASCADE' });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment