@a_team/prisma 3.13.4-win → 3.13.5-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/edge.js +4 -4
- package/dist/client/index.d.ts +136 -0
- package/dist/client/index.js +6 -6
- package/dist/client/{query_engine-windows.dll.node → libquery_engine-linux-musl-openssl-3.0.x.so.node} +0 -0
- package/dist/client/package.json +1 -1
- package/dist/client/schema.prisma +15 -9
- package/package.json +2 -2
|
Binary file
|
package/dist/client/package.json
CHANGED
|
@@ -84,6 +84,11 @@ type CalendarCredentials {
|
|
|
84
84
|
ext_expires_in Int?
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
type NotificationChannel {
|
|
88
|
+
channelId String
|
|
89
|
+
resourceId String
|
|
90
|
+
}
|
|
91
|
+
|
|
87
92
|
enum CalendarProvider {
|
|
88
93
|
google
|
|
89
94
|
apple
|
|
@@ -91,15 +96,16 @@ enum CalendarProvider {
|
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
model Calendar {
|
|
94
|
-
id
|
|
95
|
-
credentials
|
|
96
|
-
calendarId
|
|
97
|
-
provider
|
|
98
|
-
userId
|
|
99
|
-
calendarUser
|
|
100
|
-
createdAt
|
|
101
|
-
updatedAt
|
|
102
|
-
events
|
|
99
|
+
id String @id @default(auto()) @map("_id") @db.ObjectId
|
|
100
|
+
credentials CalendarCredentials
|
|
101
|
+
calendarId String
|
|
102
|
+
provider CalendarProvider
|
|
103
|
+
userId String @unique @db.ObjectId
|
|
104
|
+
calendarUser User @relation(fields: [userId], references: [id], name: "calendarUser")
|
|
105
|
+
createdAt DateTime @default(now()) @db.Date
|
|
106
|
+
updatedAt DateTime @updatedAt @db.Date
|
|
107
|
+
events CalendarEvent[] @relation("calendar")
|
|
108
|
+
notificationChannel NotificationChannel?
|
|
103
109
|
|
|
104
110
|
@@unique([userId, provider])
|
|
105
111
|
@@index([provider])
|