mirror of
https://gitlab.com/mobicoop/v3/service/territory.git
synced 2026-01-08 23:32:40 +00:00
improve tests
This commit is contained in:
@@ -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")
|
||||
);
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user