Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
28bba9d9
Commit
28bba9d9
authored
Aug 02, 2021
by
Kim, Subin
Browse files
onDelete: 'CASCADE' - 기능 수정 중
parent
0155b4a9
Changes
1
Show whitespace changes
Inline
Side-by-side
server/db/index.js
View file @
28bba9d9
...
@@ -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
'
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment