-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee2c8d2
commit 494e066
Showing
4 changed files
with
106 additions
and
36 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CREATE TYPE "public"."faq_status" AS ENUM ('draft', 'active', 'inactive', 'deleted'); | ||
|
||
CREATE SEQUENCE public.faq_order_seq START 1; | ||
|
||
CREATE TABLE "public"."faqs" ( | ||
"id" BIGSERIAL PRIMARY KEY, | ||
"question" TEXT NOT NULL, | ||
"answer" TEXT NOT NULL, | ||
"status" "public"."faq_status" DEFAULT 'draft' NOT NULL, | ||
"order" INT NOT NULL DEFAULT nextval('public.faq_order_seq'), | ||
"created_at" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL, | ||
"updated_at" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL, | ||
"created_by" BIGINT, | ||
"updated_by" BIGINT, | ||
FOREIGN KEY ("created_by") REFERENCES "public"."admin"("id"), | ||
FOREIGN KEY ("updated_by") REFERENCES "public"."admin"("id") | ||
); |
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