We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c638bd6 commit cbe0e89Copy full SHA for cbe0e89
1 file changed
rentplace/src/main/resources/db/migration/V202505090054__favourites_init.sql
@@ -0,0 +1,8 @@
1
+create table favourites
2
+(
3
+ user_id BIGINT NOT NULL,
4
+ property_id BIGINT NOT NULL,
5
+ PRIMARY KEY (user_id, property_id),
6
+ FOREIGN KEY (user_id) references users (user_id) ON DELETE CASCADE,
7
+ FOREIGN KEY (property_id) references properties (property_id) ON DELETE CASCADE
8
+)
0 commit comments