Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] feat: coupon에 cafe_coupon_design_id, cafe_policy_id에 외래키 제약조건 추가 #953

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- cafe_coupon_design_id에 대한 외래 키 제약 조건 추가
ALTER TABLE coupon
ADD CONSTRAINT fk_coupon_cafe_coupon_design
FOREIGN KEY (cafe_coupon_design_id) REFERENCES cafe_coupon_design (id);

-- cafe_policy_id에 대한 외래 키 제약 조건 추가
ALTER TABLE coupon
ADD CONSTRAINT fk_coupon_cafe_policy
FOREIGN KEY (cafe_policy_id) REFERENCES cafe_policy (id);