@notidotbot/noti-api-client 1.4.11 → 1.4.13

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.
Files changed (49) hide show
  1. package/dist/classes/guild.d.ts +27 -0
  2. package/dist/classes/guild.js +15 -0
  3. package/dist/classes/premium.d.ts +24 -0
  4. package/dist/classes/premium.js +6 -0
  5. package/dist/core/manager.d.ts +2 -0
  6. package/dist/core/manager.js +2 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.js +2 -0
  9. package/dist/modules/stripe.js +1 -0
  10. package/dist/other/zod/client.zod.d.ts +56 -288
  11. package/dist/other/zod/client.zod.js +11 -0
  12. package/dist/other/zod/drops.zod.d.ts +26 -7
  13. package/dist/other/zod/drops.zod.js +13 -11
  14. package/dist/other/zod/giveaways.zod.d.ts +61 -322
  15. package/dist/other/zod/guild.zod.d.ts +260 -1431
  16. package/dist/other/zod/guild.zod.js +21 -4
  17. package/dist/other/zod/kickStreamer.zod.d.ts +116 -669
  18. package/dist/other/zod/kickStreamer.zod.js +3 -3
  19. package/dist/other/zod/member.zod.d.ts +2 -10
  20. package/dist/other/zod/r2Storage.zod.d.ts +9 -41
  21. package/dist/other/zod/r2Storage.zod.js +2 -0
  22. package/dist/other/zod/rumbleStreamer.zod.d.ts +63 -456
  23. package/dist/other/zod/schema.zod.d.ts +130 -17
  24. package/dist/other/zod/schema.zod.js +43 -21
  25. package/dist/other/zod/starboard.zod.d.ts +36 -138
  26. package/dist/other/zod/team.zod.d.ts +9 -79
  27. package/dist/other/zod/tiktokStreamer.zod.d.ts +59 -397
  28. package/dist/other/zod/twitchStreamer.zod.d.ts +58 -396
  29. package/dist/other/zod/user.zod.d.ts +123 -556
  30. package/dist/other/zod/youtubeStreamer.zod.d.ts +58 -398
  31. package/dist/other/zod/zod.d.ts +12 -83
  32. package/dist/other/zod/zod.js +5 -3
  33. package/dist/tsconfig.tsbuildinfo +1 -1
  34. package/package.json +2 -2
  35. package/prisma/generated/ts-prisma.d.ts +2942 -352
  36. package/prisma/schema/models/client.prisma +71 -53
  37. package/prisma/schema/models/drops.prisma +127 -125
  38. package/prisma/schema/models/giveaways.prisma +49 -49
  39. package/prisma/schema/models/guild.prisma +239 -222
  40. package/prisma/schema/models/kickStreamer.prisma +125 -125
  41. package/prisma/schema/models/member.prisma +5 -5
  42. package/prisma/schema/models/r2Storage.prisma +13 -11
  43. package/prisma/schema/models/rumbleStreamer.prisma +73 -73
  44. package/prisma/schema/models/starboard.prisma +36 -36
  45. package/prisma/schema/models/team.prisma +21 -21
  46. package/prisma/schema/models/tiktokStreamer.prisma +74 -74
  47. package/prisma/schema/models/twitchStreamer.prisma +74 -74
  48. package/prisma/schema/models/user.prisma +117 -117
  49. package/prisma/schema/models/youtubeStreamer.prisma +75 -75
@@ -1,368 +1,385 @@
1
1
  model Guild {
2
- dbId String @id @default(uuid())
2
+ dbId String @id @default(uuid())
3
3
 
4
- guildId String @unique
5
- locale String @default("en-US")
6
- blacklisted Boolean?
4
+ guildId String @unique
5
+ locale String @default("en-US")
6
+ blacklisted Boolean?
7
+ leftAt DateTime?
7
8
 
8
- premium GuildPremium?
9
+ premium GuildPremium?
9
10
 
10
- bitfield String?
11
- overrideBranding Boolean?
12
- disableBranding GuildDisableBranding?
11
+ bitfield String?
12
+ overrideBranding Boolean?
13
+ disableBranding GuildDisableBranding?
13
14
 
14
- birthdayRoleId String?
15
- birthdayChannelId String?
15
+ birthdayRoleId String?
16
+ birthdayChannelId String?
16
17
 
17
- welcomeChannelId String?
18
- leaveChannelId String?
18
+ welcomeChannelId String?
19
+ leaveChannelId String?
19
20
 
20
- birthdayEnabled Boolean?
21
- welcomeEnabled Boolean?
22
- leaveEnabled Boolean?
21
+ birthdayEnabled Boolean?
22
+ welcomeEnabled Boolean?
23
+ leaveEnabled Boolean?
23
24
 
24
- syncUsername Boolean?
25
- vodDownloadStoreForHours Int?
25
+ syncUsername Boolean?
26
+ vodDownloadStoreForHours Int?
26
27
 
27
- disableDoubleVoteEntry Boolean?
28
- giveawayLogsChannelId String?
28
+ disableDoubleVoteEntry Boolean?
29
+ giveawayLogsChannelId String?
29
30
 
30
- randomMessages GuildRandomMessage[]
31
+ randomMessages GuildRandomMessage[]
31
32
 
32
- autoLiveRoleLogs String?
33
- autoLiveRoles GuildAutoLiveRole[]
33
+ autoLiveRoleLogs String?
34
+ autoLiveRoles GuildAutoLiveRole[]
34
35
 
35
- statusRoleLogs String?
36
- statusRoles GuildStatusRole[]
36
+ statusRoleLogs String?
37
+ statusRoles GuildStatusRole[]
37
38
 
38
- linkedRoleLogs String?
39
- linkedRoles GuildLinkedRole[]
39
+ linkedRoleLogs String?
40
+ linkedRoles GuildLinkedRole[]
40
41
 
41
- notificationOverrides GuildNotificationOverride[]
42
- ignoreIfNotCatchedByOverride Boolean?
42
+ notificationOverrides GuildNotificationOverride[]
43
+ ignoreIfNotCatchedByOverride Boolean?
43
44
 
44
- singleMessages GuildCustomSingleMessage[]
45
- messages GuildCustomMessage[]
45
+ singleMessages GuildCustomSingleMessage[]
46
+ messages GuildCustomMessage[]
46
47
 
47
- stickyMessages GuildStickyMessage[]
48
- stickyMessageDelaySeconds Int? @default(10)
48
+ stickyMessages GuildStickyMessage[]
49
+ stickyMessageDelaySeconds Int? @default(10)
49
50
 
50
- gettingStarted GuildGettingStarted?
51
+ gettingStarted GuildGettingStarted?
52
+
53
+ customBotProfile GuildCustomBotProfile?
54
+ }
55
+
56
+ model GuildCustomBotProfile {
57
+ dbId String @id @default(uuid())
58
+
59
+ nick String?
60
+ bio String?
61
+ avatarKey String?
62
+ bannerKey String?
63
+
64
+ guildId String @unique
65
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
51
66
  }
52
67
 
53
68
  model GuildPremium {
54
- dbId String @id @default(uuid())
69
+ dbId String @id @default(uuid())
70
+
71
+ tier String
55
72
 
56
- tier String
73
+ additionalStickyMessages Int @default(0)
74
+ additionalAutoLiveRoles Int @default(0)
75
+ additionalLinkedRoles Int @default(0)
76
+ additionalStatusRoles Int @default(0)
77
+ additionalStarboards Int @default(0)
78
+ additionalOverrides Int @default(0)
57
79
 
58
- additionalStickyMessages Int @default(0)
59
- additionalAutoLiveRoles Int @default(0)
60
- additionalLinkedRoles Int @default(0)
61
- additionalStatusRoles Int @default(0)
62
- additionalStarboards Int @default(0)
63
- additionalOverrides Int @default(0)
80
+ additionalKickConnections Int @default(0)
81
+ additionalRumbleConnections Int @default(0)
82
+ additionalTwitchConnections Int @default(0)
83
+ additionalYoutubeConnections Int @default(0)
84
+ additionalTiktokConnections Int @default(0)
64
85
 
65
- additionalKickConnections Int @default(0)
66
- additionalRumbleConnections Int @default(0)
67
- additionalTwitchConnections Int @default(0)
68
- additionalYoutubeConnections Int @default(0)
69
- additionalTiktokConnections Int @default(0)
86
+ customBot Boolean @default(false)
70
87
 
71
- guildId String @unique
72
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
88
+ guildId String @unique
89
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
73
90
  }
74
91
 
75
92
  model GuildDisableBranding {
76
- dbId String @id @default(uuid())
77
-
78
- stickyMessage Boolean?
79
- watchOnButton Boolean?
80
- notifications Boolean?
81
- welcomeLeave Boolean?
82
- leaderboard Boolean?
83
- linkedRoles Boolean?
84
- giveaways Boolean?
85
- starboard Boolean?
86
- birthday Boolean?
87
- clips Boolean?
88
- vods Boolean?
89
-
90
- guildId String @unique
91
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
93
+ dbId String @id @default(uuid())
94
+
95
+ stickyMessage Boolean?
96
+ watchOnButton Boolean?
97
+ notifications Boolean?
98
+ welcomeLeave Boolean?
99
+ leaderboard Boolean?
100
+ linkedRoles Boolean?
101
+ giveaways Boolean?
102
+ starboard Boolean?
103
+ birthday Boolean?
104
+ clips Boolean?
105
+ vods Boolean?
106
+
107
+ guildId String @unique
108
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
92
109
  }
93
110
 
94
111
  model GuildRandomMessage {
95
- dbId String @id @default(uuid())
112
+ dbId String @id @default(uuid())
96
113
 
97
- type GuildMessageTypeEnum
98
- messages String[]
114
+ type GuildMessageTypeEnum
115
+ messages String[]
99
116
 
100
- guildId String
101
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
117
+ guildId String
118
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
102
119
 
103
- @@unique([guildId, type])
120
+ @@unique([guildId, type])
104
121
  }
105
122
 
106
123
  model GuildAutoLiveRole {
107
- dbId String @id @default(uuid())
124
+ dbId String @id @default(uuid())
108
125
 
109
- roleId String
110
- filter GuildAutoLiveRoleFilter?
126
+ roleId String
127
+ filter GuildAutoLiveRoleFilter?
111
128
 
112
- guildId String
113
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
129
+ guildId String
130
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
114
131
 
115
- @@unique([guildId, roleId])
132
+ @@unique([guildId, roleId])
116
133
  }
117
134
 
118
135
  model GuildAutoLiveRoleFilter {
119
- dbId String @id @default(uuid())
136
+ dbId String @id @default(uuid())
120
137
 
121
- mode FilterEnum
122
- roles String[]
138
+ mode FilterEnum
139
+ roles String[]
123
140
 
124
- guildAutoLiveRoleId String @unique
125
- guildAutoLiveRole GuildAutoLiveRole? @relation(fields: [guildAutoLiveRoleId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
141
+ guildAutoLiveRoleId String @unique
142
+ guildAutoLiveRole GuildAutoLiveRole? @relation(fields: [guildAutoLiveRoleId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
126
143
  }
127
144
 
128
145
  model GuildStatusRole {
129
- dbId String @id @default(uuid())
146
+ dbId String @id @default(uuid())
130
147
 
131
- texts String[]
132
- roleId String
148
+ texts String[]
149
+ roleId String
133
150
 
134
- keepOnOffline Boolean? @default(true)
151
+ keepOnOffline Boolean? @default(true)
135
152
 
136
- filter GuildStatusRoleFilter?
153
+ filter GuildStatusRoleFilter?
137
154
 
138
- guildId String
139
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
155
+ guildId String
156
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
140
157
 
141
- @@unique([guildId, roleId])
158
+ @@unique([guildId, roleId])
142
159
  }
143
160
 
144
161
  model GuildStatusRoleFilter {
145
- dbId String @id @default(uuid())
162
+ dbId String @id @default(uuid())
146
163
 
147
- mode FilterEnum
148
- roles String[]
164
+ mode FilterEnum
165
+ roles String[]
149
166
 
150
- guildStatusRoleId String @unique
151
- guildStatusRole GuildStatusRole? @relation(fields: [guildStatusRoleId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
167
+ guildStatusRoleId String @unique
168
+ guildStatusRole GuildStatusRole? @relation(fields: [guildStatusRoleId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
152
169
  }
153
170
 
154
171
  model GuildLinkedRole {
155
- dbId String @id @default(uuid())
172
+ dbId String @id @default(uuid())
156
173
 
157
- roleId String
174
+ roleId String
158
175
 
159
- onAddRolesToAdd String[]
160
- onAddRolesToRemove String[]
176
+ onAddRolesToAdd String[]
177
+ onAddRolesToRemove String[]
161
178
 
162
- onRemoveRolesToAdd String[]
163
- onRemoveRolesToRemove String[]
179
+ onRemoveRolesToAdd String[]
180
+ onRemoveRolesToRemove String[]
164
181
 
165
- guildId String
166
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
182
+ guildId String
183
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
167
184
 
168
- @@unique([guildId, roleId])
185
+ @@unique([guildId, roleId])
169
186
  }
170
187
 
171
188
  model GuildNotificationOverride {
172
- dbId String @id @default(uuid())
189
+ dbId String @id @default(uuid())
173
190
 
174
- query String[]
175
- queryIn QueryInEnum[]
176
- applyTo PlatformEnum[]
191
+ query String[]
192
+ queryIn QueryInEnum[]
193
+ applyTo PlatformEnum[]
177
194
 
178
- durationMinutes Int?
195
+ durationMinutes Int?
179
196
 
180
- overrideChannelId String?
181
- overridePingRoleId String?
197
+ overrideChannelId String?
198
+ overridePingRoleId String?
182
199
 
183
- priorityOnConflict Int
184
- actions OverridesEnum[]
200
+ priorityOnConflict Int
201
+ actions OverridesEnum[]
185
202
 
186
- guildId String
187
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
203
+ guildId String
204
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
188
205
 
189
- @@unique([guildId, priorityOnConflict])
206
+ @@unique([guildId, priorityOnConflict])
190
207
  }
191
208
 
192
209
  model GuildCustomSingleMessage {
193
- dbId String @id @default(uuid())
210
+ dbId String @id @default(uuid())
194
211
 
195
- type GuildSingleMessageTypeEnum
196
- message String? @db.VarChar(100)
212
+ type GuildSingleMessageTypeEnum
213
+ message String? @db.VarChar(100)
197
214
 
198
- webhook GuildSingleMessageWebhook?
215
+ webhook GuildSingleMessageWebhook?
199
216
 
200
- guildId String
201
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
217
+ guildId String
218
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
202
219
 
203
- @@unique([guildId, type])
220
+ @@unique([guildId, type])
204
221
  }
205
222
 
206
223
  model GuildSingleMessageWebhook {
207
- dbId String @id @default(uuid())
224
+ dbId String @id @default(uuid())
208
225
 
209
- enabled Boolean?
210
- username String?
211
- avatarUrl String?
226
+ enabled Boolean?
227
+ username String?
228
+ avatarUrl String?
212
229
 
213
- guildCustomSingleMessageId String @unique
214
- guildCustomSingleMessage GuildCustomSingleMessage? @relation(fields: [guildCustomSingleMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
230
+ guildCustomSingleMessageId String @unique
231
+ guildCustomSingleMessage GuildCustomSingleMessage? @relation(fields: [guildCustomSingleMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
215
232
  }
216
233
 
217
234
  model GuildCustomMessage {
218
- dbId String @id @default(uuid())
235
+ dbId String @id @default(uuid())
219
236
 
220
- type GuildMessageTypeEnum
221
- content String? @db.VarChar(2000)
237
+ type GuildMessageTypeEnum
238
+ content String? @db.VarChar(2000)
222
239
 
223
- embed GuildMessageEmbed?
224
- buttons GuildMessageButton[]
225
- webhook GuildMessageWebhook?
240
+ embed GuildMessageEmbed?
241
+ buttons GuildMessageButton[]
242
+ webhook GuildMessageWebhook?
226
243
 
227
- guildId String
228
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
244
+ guildId String
245
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
229
246
 
230
- @@unique([guildId, type])
247
+ @@unique([guildId, type])
231
248
  }
232
249
 
233
250
  model GuildMessageEmbed {
234
- dbId String @id @default(uuid())
235
-
236
- title String? @db.VarChar(256)
237
- url String?
238
- description String @db.VarChar(2048)
239
- color String? @db.VarChar(10)
240
- footer String? @db.VarChar(1024)
241
- footerIcon String?
242
- image String?
243
- thumbnail String?
244
- author String? @db.VarChar(256)
245
- authorIcon String?
246
- fields GuildEmbedField[]
247
-
248
- guildCustomMessageId String @unique
249
- guildCustomMessage GuildCustomMessage? @relation(fields: [guildCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
251
+ dbId String @id @default(uuid())
252
+
253
+ title String? @db.VarChar(256)
254
+ url String?
255
+ description String @db.VarChar(2048)
256
+ color String? @db.VarChar(10)
257
+ footer String? @db.VarChar(1024)
258
+ footerIcon String?
259
+ image String?
260
+ thumbnail String?
261
+ author String? @db.VarChar(256)
262
+ authorIcon String?
263
+ fields GuildEmbedField[]
264
+
265
+ guildCustomMessageId String @unique
266
+ guildCustomMessage GuildCustomMessage? @relation(fields: [guildCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
250
267
  }
251
268
 
252
269
  model GuildEmbedField {
253
- dbId String @id @default(uuid())
270
+ dbId String @id @default(uuid())
254
271
 
255
- name String @db.VarChar(256)
256
- value String? @db.VarChar(1024)
257
- inline Boolean?
272
+ name String @db.VarChar(256)
273
+ value String? @db.VarChar(1024)
274
+ inline Boolean?
258
275
 
259
- guildMessageEmbedId String
260
- guildMessageEmbed GuildMessageEmbed? @relation(fields: [guildMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
276
+ guildMessageEmbedId String
277
+ guildMessageEmbed GuildMessageEmbed? @relation(fields: [guildMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
261
278
  }
262
279
 
263
280
  model GuildMessageButton {
264
- dbId String @id @default(uuid())
281
+ dbId String @id @default(uuid())
265
282
 
266
- title String @db.VarChar(80)
267
- url String?
283
+ title String @db.VarChar(80)
284
+ url String?
268
285
 
269
- emojiUnicodeOrId String?
286
+ emojiUnicodeOrId String?
270
287
 
271
- guildCustomMessageId String
272
- guildCustomMessage GuildCustomMessage? @relation(fields: [guildCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
288
+ guildCustomMessageId String
289
+ guildCustomMessage GuildCustomMessage? @relation(fields: [guildCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
273
290
  }
274
291
 
275
292
  model GuildMessageWebhook {
276
- dbId String @id @default(uuid())
293
+ dbId String @id @default(uuid())
277
294
 
278
- enabled Boolean?
279
- username String?
280
- avatarUrl String?
295
+ enabled Boolean?
296
+ username String?
297
+ avatarUrl String?
281
298
 
282
- guildCustomMessageId String @unique
283
- guildCustomMessage GuildCustomMessage? @relation(fields: [guildCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
299
+ guildCustomMessageId String @unique
300
+ guildCustomMessage GuildCustomMessage? @relation(fields: [guildCustomMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
284
301
  }
285
302
 
286
303
  model GuildStickyMessage {
287
- dbId String @id @default(uuid())
304
+ dbId String @id @default(uuid())
288
305
 
289
- channelId String
290
- messageId String?
306
+ channelId String
307
+ messageId String?
291
308
 
292
- content String? @db.VarChar(2000)
309
+ content String? @db.VarChar(2000)
293
310
 
294
- embed GuildStickyMessageEmbed?
295
- buttons GuildStickyMessageButton[]
296
- webhook GuildStickyMessageWebhook?
311
+ embed GuildStickyMessageEmbed?
312
+ buttons GuildStickyMessageButton[]
313
+ webhook GuildStickyMessageWebhook?
297
314
 
298
- guildId String
299
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
315
+ guildId String
316
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
300
317
 
301
- @@unique([guildId, channelId])
318
+ @@unique([guildId, channelId])
302
319
  }
303
320
 
304
321
  model GuildStickyMessageEmbed {
305
- dbId String @id @default(uuid())
306
-
307
- title String? @db.VarChar(256)
308
- url String?
309
- description String @db.VarChar(2048)
310
- color String? @db.VarChar(10)
311
- footer String? @db.VarChar(1024)
312
- footerIcon String?
313
- image String?
314
- thumbnail String?
315
- author String? @db.VarChar(256)
316
- authorIcon String?
317
- fields GuildStickyEmbedField[]
318
-
319
- guildStickyMessageId String @unique
320
- guildStickyMessage GuildStickyMessage? @relation(fields: [guildStickyMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
322
+ dbId String @id @default(uuid())
323
+
324
+ title String? @db.VarChar(256)
325
+ url String?
326
+ description String @db.VarChar(2048)
327
+ color String? @db.VarChar(10)
328
+ footer String? @db.VarChar(1024)
329
+ footerIcon String?
330
+ image String?
331
+ thumbnail String?
332
+ author String? @db.VarChar(256)
333
+ authorIcon String?
334
+ fields GuildStickyEmbedField[]
335
+
336
+ guildStickyMessageId String @unique
337
+ guildStickyMessage GuildStickyMessage? @relation(fields: [guildStickyMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
321
338
  }
322
339
 
323
340
  model GuildStickyEmbedField {
324
- dbId String @id @default(uuid())
341
+ dbId String @id @default(uuid())
325
342
 
326
- name String @db.VarChar(256)
327
- value String? @db.VarChar(1024)
328
- inline Boolean?
343
+ name String @db.VarChar(256)
344
+ value String? @db.VarChar(1024)
345
+ inline Boolean?
329
346
 
330
- guildStickyMessageEmbedId String
331
- guildStickyMessageEmbed GuildStickyMessageEmbed? @relation(fields: [guildStickyMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
347
+ guildStickyMessageEmbedId String
348
+ guildStickyMessageEmbed GuildStickyMessageEmbed? @relation(fields: [guildStickyMessageEmbedId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
332
349
  }
333
350
 
334
351
  model GuildStickyMessageButton {
335
- dbId String @id @default(uuid())
352
+ dbId String @id @default(uuid())
336
353
 
337
- title String @db.VarChar(80)
338
- url String?
354
+ title String @db.VarChar(80)
355
+ url String?
339
356
 
340
- emojiUnicodeOrId String?
357
+ emojiUnicodeOrId String?
341
358
 
342
- guildStickyMessageId String
343
- guildStickyMessage GuildStickyMessage? @relation(fields: [guildStickyMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
359
+ guildStickyMessageId String
360
+ guildStickyMessage GuildStickyMessage? @relation(fields: [guildStickyMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
344
361
  }
345
362
 
346
363
  model GuildStickyMessageWebhook {
347
- dbId String @id @default(uuid())
364
+ dbId String @id @default(uuid())
348
365
 
349
- enabled Boolean?
350
- username String?
351
- avatarUrl String?
366
+ enabled Boolean?
367
+ username String?
368
+ avatarUrl String?
352
369
 
353
- guildStickyMessageId String @unique
354
- guildStickyMessage GuildStickyMessage? @relation(fields: [guildStickyMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
370
+ guildStickyMessageId String @unique
371
+ guildStickyMessage GuildStickyMessage? @relation(fields: [guildStickyMessageId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
355
372
  }
356
373
 
357
374
  model GuildGettingStarted {
358
- dbId String @id @default(uuid())
375
+ dbId String @id @default(uuid())
359
376
 
360
- didSetupBirthday Boolean?
361
- didSetupFirstContentCreator Boolean?
362
- didBuyPremium Boolean?
377
+ didSetupBirthday Boolean?
378
+ didSetupFirstContentCreator Boolean?
379
+ didBuyPremium Boolean?
363
380
 
364
- didDismissGuildAds Boolean?
381
+ didDismissGuildAds Boolean?
365
382
 
366
- guildId String @unique
367
- guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
383
+ guildId String @unique
384
+ guild Guild? @relation(fields: [guildId], references: [dbId], onUpdate: Cascade, onDelete: Cascade)
368
385
  }