25 lines
671 B
Plaintext
25 lines
671 B
Plaintext
// 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
|
|
name String @unique
|
|
shape Unsupported("geometry")
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @default(now()) @updatedAt
|
|
|
|
@@index([shape], name: "shape_idx", type: Gist)
|
|
@@map("territory")
|
|
}
|