Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Merge branch 'dev' into boards

Mike Caoe3e2ed043580
diff --cc prisma/schema.prisma
index 6439b916b,01cc372f6..435a406f2
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@@ -318,24 -315,15 +317,37 @@@ model Pixel
@@map("pixel")
}
+model Board {
+ id String @id() @unique() @map("board_id") @db.Uuid
+ type String @db.VarChar(50)
+ name String @db.VarChar(200)
+ description String @db.VarChar(500)
+ parameters Json
+ slug String @unique() @db.VarChar(100)
+ userId String? @map("user_id") @db.Uuid
+ teamId String? @map("team_id") @db.Uuid
+ createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
+ updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)
+
+ user User? @relation("user", fields: [userId], references: [id])
+ team Team? @relation(fields: [teamId], references: [id])
+
+ @@index([slug])
+ @@index([userId])
+ @@index([teamId])
+ @@index([createdAt])
+ @@map("board")
+}
++
+ model Share {
+ id String @id() @unique() @map("share_id") @db.Uuid
+ entityId String @map("entity_id") @db.Uuid
+ shareType Int @map("share_type") @db.Integer
+ slug String @unique() @db.VarChar(100)
+ parameters Json
+ createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)
+ updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)
+
+ @@index([entityId])
+ @@map("share")
+ }
diff --cc src/permissions/index.ts
index 12fbca8af,475cdaa48..c566d77c6
--- a/src/permissions/index.ts
+++ b/src/permissions/index.ts
@@@ -1,4 -1,4 +1,5 @@@
+export * from './board';
+ export * from './entity';
export * from './link';
export * from './pixel';
export * from './report';