improve tests

This commit is contained in:
sbriat
2023-02-08 12:19:52 +01:00
parent a45d91edcc
commit 4e1fb9a8d6
9 changed files with 128 additions and 22 deletions

View File

@@ -7,7 +7,7 @@ CREATE TABLE "territory" (
"name" TEXT NOT NULL,
"shape" geometry NOT NULL,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" TIMESTAMP(3) NOT NULL,
"updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "territory_pkey" PRIMARY KEY ("uuid")
);

View File

@@ -17,7 +17,7 @@ model Territory {
name String @unique
shape Unsupported("geometry")
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
updatedAt DateTime @default(now()) @updatedAt
@@index([shape], name: "shape_idx", type: Gist)
@@map("territory")