Skip to content

Commit 288e4e4

Browse files
committed
add images to db sql file
1 parent 299cfae commit 288e4e4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
CREATE TABLE IF NOT EXISTS PENDING_IMAGE (
2+
ID bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
3+
URL TEXT NOT NULL,
4+
PENDING_TWEET_ID bigint NOT NULL,
5+
PRIMARY KEY (ID),
6+
CONSTRAINT FK_PENDING_TWEET_ID FOREIGN KEY (PENDING_TWEET_ID) REFERENCES PENDING_TWEET (ID)
7+
);
8+
9+
CREATE TABLE IF NOT EXISTS TWEET_IMAGE (
10+
ID bigint NOT NULL,
11+
SIZE bigint NOT NULL,
12+
TYPE TEXT NOT NULL,
13+
WIDTH int NOT NULL,
14+
HEIGHT int NOT NULL,
15+
TWEET_ID bigint NOT NULL,
16+
PRIMARY KEY (ID),
17+
CONSTRAINT FK_TWEET_ID FOREIGN KEY (TWEET_ID) REFERENCES TWEET (ID)
18+
);

0 commit comments

Comments
 (0)