Add website annotations with chart markers and CRUD management
This commit is contained in:
1 parent
eea124bbf8
commit
64e4cc1c3b
24 files changed
+957
-3
No files matched your search
@@ -0,0 +1,19 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "annotation" (
|
||||
"annotation_id" UUID NOT NULL,
|
||||
"website_id" UUID NOT NULL,
|
||||
"user_id" UUID,
|
||||
"date" TIMESTAMPTZ(6) NOT NULL,
|
||||
"all_day" BOOLEAN NOT NULL DEFAULT true,
|
||||
"note" VARCHAR(500) NOT NULL,
|
||||
"created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" TIMESTAMPTZ(6),
|
||||
|
||||
CONSTRAINT "annotation_pkey" PRIMARY KEY ("annotation_id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "annotation_annotation_id_key" ON "annotation"("annotation_id");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "annotation_website_id_date_idx" ON "annotation"("website_id", "date");
|
||||
Reference in new issue
Block a user