territory/prisma/schema.prisma

25 lines
671 B
Plaintext
Raw Permalink Normal View History

2023-02-06 12:50:07 +00:00
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
previewFeatures = ["postgresqlExtensions"]
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
extensions = [postgis]
}
model Territory {
uuid String @id @default(uuid()) @db.Uuid
2023-02-07 13:06:24 +00:00
name String @unique
2023-02-06 12:50:07 +00:00
shape Unsupported("geometry")
createdAt DateTime @default(now())
2023-02-08 11:19:52 +00:00
updatedAt DateTime @default(now()) @updatedAt
2023-02-06 12:50:07 +00:00
@@index([shape], name: "shape_idx", type: Gist)
@@map("territory")
}