Created
August 1, 2021 11:17
-
-
Save lenalytics/8d256f2ca19a0880c8d417c4edbc5c8d to your computer and use it in GitHub Desktop.
Airbnb Review Table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN; | |
CREATE TABLE "airdata"."review" | |
( | |
"listing_id" BIGINT NOT NULL, | |
"id" BIGINT NOT NULL, | |
"date" timestamptz, | |
"reviewer_id" BIGINT, | |
"reviewer_name" TEXT, | |
"comments" TEXT, | |
CONSTRAINT "PK_review_01" PRIMARY KEY ("id") | |
); | |
CREATE INDEX "IDX_review_listing_id" ON "airdata"."review" ("listing_id"); | |
CREATE INDEX "IDX_review_reviewer_id" ON "airdata"."review" ("reviewer_id"); | |
COMMIT; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment