mirror of
https://gitlab.com/mobicoop/v3/service/territory.git
synced 2026-01-08 23:32:40 +00:00
basic crud
This commit is contained in:
@@ -13,4 +13,5 @@ CREATE TABLE "territory" (
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "territory_name_key" ON "territory"("name");
|
||||
CREATE INDEX "shape_idx" ON "territory" USING GIST ("shape");
|
||||
|
||||
@@ -14,7 +14,7 @@ datasource db {
|
||||
|
||||
model Territory {
|
||||
uuid String @id @default(uuid()) @db.Uuid
|
||||
name String
|
||||
name String @unique
|
||||
shape Unsupported("geometry")
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
Reference in New Issue
Block a user