mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Added indexes. Removed old migration.
This commit is contained in:
parent
3ccdd95f49
commit
0724201f69
@ -1,19 +0,0 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "user_report" (
|
||||
"report_id" UUID NOT NULL,
|
||||
"user_id" UUID NOT NULL,
|
||||
"website_id" UUID NOT NULL,
|
||||
"report_name" VARCHAR(200) NOT NULL,
|
||||
"template_name" VARCHAR(200) NOT NULL,
|
||||
"parameters" VARCHAR(6000) NOT NULL,
|
||||
"created_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" TIMESTAMPTZ(6),
|
||||
|
||||
CONSTRAINT "user_report_pkey" PRIMARY KEY ("report_id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "user_report_report_id_key" ON "user_report"("report_id");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "user_report_user_id_idx" ON "user_report"("user_id");
|
@ -173,5 +173,7 @@ model Report {
|
||||
|
||||
@@index([userId])
|
||||
@@index([websiteId])
|
||||
@@index([type])
|
||||
@@index([name])
|
||||
@@map("report")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user