mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
drop foreign keys, add missing indexes
This commit is contained in:
parent
c90bd941b5
commit
8ee7172ea0
2 changed files with 20 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ generator client {
|
|||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
relationMode = "prisma"
|
||||
}
|
||||
|
||||
model User {
|
||||
|
|
@ -54,6 +55,8 @@ model Website {
|
|||
team Team? @relation(fields: [teamId], references: [id])
|
||||
user User? @relation(fields: [userId], references: [id])
|
||||
|
||||
@@index([teamId])
|
||||
@@index([userId])
|
||||
@@index([createdAt])
|
||||
@@index([shareId])
|
||||
@@map("website")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue