Skip to content

Commit cbe0e89

Browse files
committed
(TP-110) feat: add favourites table to migrations
1 parent c638bd6 commit cbe0e89

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)