mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 13:05:36 +01:00
Add mysql migration.
This commit is contained in:
parent
db6d4a6756
commit
48ff59ba5e
3 changed files with 79 additions and 20 deletions
|
|
@ -19,7 +19,7 @@ model User {
|
|||
|
||||
website Website[]
|
||||
teamUser TeamUser[]
|
||||
Report Report[]
|
||||
report Report[]
|
||||
|
||||
@@map("user")
|
||||
}
|
||||
|
|
@ -40,7 +40,7 @@ model Session {
|
|||
createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
|
||||
|
||||
websiteEvent WebsiteEvent[]
|
||||
SessionData SessionData[]
|
||||
sessionData SessionData[]
|
||||
|
||||
@@index([createdAt])
|
||||
@@index([websiteId])
|
||||
|
|
@ -61,8 +61,8 @@ model Website {
|
|||
user User? @relation(fields: [userId], references: [id])
|
||||
teamWebsite TeamWebsite[]
|
||||
eventData EventData[]
|
||||
Report Report[]
|
||||
SessionData SessionData[]
|
||||
report Report[]
|
||||
sessionData SessionData[]
|
||||
|
||||
@@index([userId])
|
||||
@@index([createdAt])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue