@wordrhyme/db 0.1.0-alpha.14

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 (98) hide show
  1. package/README.md +66 -0
  2. package/dist/acl-policy.d.ts +86 -0
  3. package/dist/acl-policy.d.ts.map +1 -0
  4. package/dist/chunk-3TTVLSF5.js +3390 -0
  5. package/dist/chunk-3TTVLSF5.js.map +1 -0
  6. package/dist/chunk-DCJM6GN5.js +264 -0
  7. package/dist/chunk-DCJM6GN5.js.map +1 -0
  8. package/dist/chunk-KWWJRUIK.js +54 -0
  9. package/dist/chunk-KWWJRUIK.js.map +1 -0
  10. package/dist/chunk-XAIEVBMU.js +212 -0
  11. package/dist/chunk-XAIEVBMU.js.map +1 -0
  12. package/dist/delete-policy.d.ts +11 -0
  13. package/dist/delete-policy.d.ts.map +1 -0
  14. package/dist/index.d.ts +31 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +545 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/plugin.d.ts +110 -0
  19. package/dist/plugin.d.ts.map +1 -0
  20. package/dist/plugin.js +21 -0
  21. package/dist/plugin.js.map +1 -0
  22. package/dist/relations/index.d.ts +105 -0
  23. package/dist/relations/index.d.ts.map +1 -0
  24. package/dist/relations/index.js +9 -0
  25. package/dist/relations/index.js.map +1 -0
  26. package/dist/schema/action-journal.d.ts +386 -0
  27. package/dist/schema/action-journal.d.ts.map +1 -0
  28. package/dist/schema/audit-archive.d.ts +934 -0
  29. package/dist/schema/audit-archive.d.ts.map +1 -0
  30. package/dist/schema/audit-events.d.ts +502 -0
  31. package/dist/schema/audit-events.d.ts.map +1 -0
  32. package/dist/schema/audit-logs.d.ts +418 -0
  33. package/dist/schema/audit-logs.d.ts.map +1 -0
  34. package/dist/schema/auth.d.ts +2727 -0
  35. package/dist/schema/auth.d.ts.map +1 -0
  36. package/dist/schema/billing.d.ts +3969 -0
  37. package/dist/schema/billing.d.ts.map +1 -0
  38. package/dist/schema/common.d.ts +87 -0
  39. package/dist/schema/common.d.ts.map +1 -0
  40. package/dist/schema/currency.d.ts +791 -0
  41. package/dist/schema/currency.d.ts.map +1 -0
  42. package/dist/schema/entity-extensions.d.ts +314 -0
  43. package/dist/schema/entity-extensions.d.ts.map +1 -0
  44. package/dist/schema/entity-ownerships.d.ts +862 -0
  45. package/dist/schema/entity-ownerships.d.ts.map +1 -0
  46. package/dist/schema/feature-flags.d.ts +770 -0
  47. package/dist/schema/feature-flags.d.ts.map +1 -0
  48. package/dist/schema/geo.d.ts +824 -0
  49. package/dist/schema/geo.d.ts.map +1 -0
  50. package/dist/schema/i18n.d.ts +1109 -0
  51. package/dist/schema/i18n.d.ts.map +1 -0
  52. package/dist/schema/index.d.ts +43 -0
  53. package/dist/schema/index.d.ts.map +1 -0
  54. package/dist/schema/index.js +507 -0
  55. package/dist/schema/index.js.map +1 -0
  56. package/dist/schema/media.d.ts +1147 -0
  57. package/dist/schema/media.d.ts.map +1 -0
  58. package/dist/schema/menus.d.ts +636 -0
  59. package/dist/schema/menus.d.ts.map +1 -0
  60. package/dist/schema/notification-channels.d.ts +288 -0
  61. package/dist/schema/notification-channels.d.ts.map +1 -0
  62. package/dist/schema/notification-preferences.d.ts +300 -0
  63. package/dist/schema/notification-preferences.d.ts.map +1 -0
  64. package/dist/schema/notification-templates.d.ts +476 -0
  65. package/dist/schema/notification-templates.d.ts.map +1 -0
  66. package/dist/schema/notifications.d.ts +1139 -0
  67. package/dist/schema/notifications.d.ts.map +1 -0
  68. package/dist/schema/permission-fields.d.ts +96 -0
  69. package/dist/schema/permission-fields.d.ts.map +1 -0
  70. package/dist/schema/permissions.d.ts +173 -0
  71. package/dist/schema/permissions.d.ts.map +1 -0
  72. package/dist/schema/plugin-migrations.d.ts +204 -0
  73. package/dist/schema/plugin-migrations.d.ts.map +1 -0
  74. package/dist/schema/plugins.d.ts +1977 -0
  75. package/dist/schema/plugins.d.ts.map +1 -0
  76. package/dist/schema/relationships.d.ts +221 -0
  77. package/dist/schema/relationships.d.ts.map +1 -0
  78. package/dist/schema/role-permissions.d.ts +305 -0
  79. package/dist/schema/role-permissions.d.ts.map +1 -0
  80. package/dist/schema/roles.d.ts +260 -0
  81. package/dist/schema/roles.d.ts.map +1 -0
  82. package/dist/schema/scheduled-tasks.d.ts +1334 -0
  83. package/dist/schema/scheduled-tasks.d.ts.map +1 -0
  84. package/dist/schema/settings.d.ts +819 -0
  85. package/dist/schema/settings.d.ts.map +1 -0
  86. package/dist/schema/site-presentation.d.ts +1587 -0
  87. package/dist/schema/site-presentation.d.ts.map +1 -0
  88. package/dist/schema/teams.d.ts +381 -0
  89. package/dist/schema/teams.d.ts.map +1 -0
  90. package/dist/schema/web-design.d.ts +1542 -0
  91. package/dist/schema/web-design.d.ts.map +1 -0
  92. package/dist/schema/webhooks.d.ts +1016 -0
  93. package/dist/schema/webhooks.d.ts.map +1 -0
  94. package/dist/zod/index.d.ts +2 -0
  95. package/dist/zod/index.d.ts.map +1 -0
  96. package/dist/zod/index.js +6 -0
  97. package/dist/zod/index.js.map +1 -0
  98. package/package.json +63 -0
@@ -0,0 +1,288 @@
1
+ import type { I18nText } from './notification-templates';
2
+ /**
3
+ * Notification Channels Table
4
+ *
5
+ * Stores available notification channels (plugin-registered).
6
+ */
7
+ export declare const notificationChannels: import("drizzle-orm/pg-core").PgTableWithColumns<{
8
+ name: "notification_channels";
9
+ schema: undefined;
10
+ columns: {
11
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
12
+ name: string;
13
+ tableName: "notification_channels";
14
+ dataType: "string";
15
+ data: string;
16
+ driverParam: string;
17
+ notNull: true;
18
+ hasDefault: true;
19
+ isPrimaryKey: false;
20
+ isAutoincrement: false;
21
+ hasRuntimeDefault: false;
22
+ enumValues: undefined;
23
+ identity: undefined;
24
+ generated: undefined;
25
+ }>;
26
+ key: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
27
+ name: string;
28
+ tableName: "notification_channels";
29
+ dataType: "string";
30
+ data: string;
31
+ driverParam: string;
32
+ notNull: true;
33
+ hasDefault: false;
34
+ isPrimaryKey: false;
35
+ isAutoincrement: false;
36
+ hasRuntimeDefault: false;
37
+ enumValues: undefined;
38
+ identity: undefined;
39
+ generated: undefined;
40
+ }>;
41
+ name: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>, I18nText>, {
42
+ name: string;
43
+ tableName: "notification_channels";
44
+ dataType: "object json";
45
+ data: I18nText;
46
+ driverParam: unknown;
47
+ notNull: true;
48
+ hasDefault: false;
49
+ isPrimaryKey: false;
50
+ isAutoincrement: false;
51
+ hasRuntimeDefault: false;
52
+ enumValues: undefined;
53
+ identity: undefined;
54
+ generated: undefined;
55
+ }>;
56
+ description: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, I18nText>, {
57
+ name: string;
58
+ tableName: "notification_channels";
59
+ dataType: "object json";
60
+ data: I18nText;
61
+ driverParam: unknown;
62
+ notNull: false;
63
+ hasDefault: false;
64
+ isPrimaryKey: false;
65
+ isAutoincrement: false;
66
+ hasRuntimeDefault: false;
67
+ enumValues: undefined;
68
+ identity: undefined;
69
+ generated: undefined;
70
+ }>;
71
+ icon: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
72
+ name: string;
73
+ tableName: "notification_channels";
74
+ dataType: "string";
75
+ data: string;
76
+ driverParam: string;
77
+ notNull: false;
78
+ hasDefault: false;
79
+ isPrimaryKey: false;
80
+ isAutoincrement: false;
81
+ hasRuntimeDefault: false;
82
+ enumValues: undefined;
83
+ identity: undefined;
84
+ generated: undefined;
85
+ }>;
86
+ pluginId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
87
+ name: string;
88
+ tableName: "notification_channels";
89
+ dataType: "string";
90
+ data: string;
91
+ driverParam: string;
92
+ notNull: true;
93
+ hasDefault: false;
94
+ isPrimaryKey: false;
95
+ isAutoincrement: false;
96
+ hasRuntimeDefault: false;
97
+ enumValues: undefined;
98
+ identity: undefined;
99
+ generated: undefined;
100
+ }>;
101
+ enabled: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
102
+ name: string;
103
+ tableName: "notification_channels";
104
+ dataType: "boolean";
105
+ data: boolean;
106
+ driverParam: boolean;
107
+ notNull: true;
108
+ hasDefault: true;
109
+ isPrimaryKey: false;
110
+ isAutoincrement: false;
111
+ hasRuntimeDefault: false;
112
+ enumValues: undefined;
113
+ identity: undefined;
114
+ generated: undefined;
115
+ }>;
116
+ configSchema: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").PgJsonbBuilder, {
117
+ name: string;
118
+ tableName: "notification_channels";
119
+ dataType: "object json";
120
+ data: unknown;
121
+ driverParam: unknown;
122
+ notNull: false;
123
+ hasDefault: false;
124
+ isPrimaryKey: false;
125
+ isAutoincrement: false;
126
+ hasRuntimeDefault: false;
127
+ enumValues: undefined;
128
+ identity: undefined;
129
+ generated: undefined;
130
+ }>;
131
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
132
+ name: string;
133
+ tableName: "notification_channels";
134
+ dataType: "object date";
135
+ data: Date;
136
+ driverParam: string;
137
+ notNull: true;
138
+ hasDefault: true;
139
+ isPrimaryKey: false;
140
+ isAutoincrement: false;
141
+ hasRuntimeDefault: false;
142
+ enumValues: undefined;
143
+ identity: undefined;
144
+ generated: undefined;
145
+ }>;
146
+ };
147
+ dialect: "pg";
148
+ }>;
149
+ export declare const notificationChannelSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
150
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
151
+ name: string;
152
+ tableName: "notification_channels";
153
+ dataType: "string";
154
+ data: string;
155
+ driverParam: string;
156
+ notNull: true;
157
+ hasDefault: true;
158
+ isPrimaryKey: false;
159
+ isAutoincrement: false;
160
+ hasRuntimeDefault: false;
161
+ enumValues: undefined;
162
+ identity: undefined;
163
+ generated: undefined;
164
+ }>;
165
+ key: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
166
+ name: string;
167
+ tableName: "notification_channels";
168
+ dataType: "string";
169
+ data: string;
170
+ driverParam: string;
171
+ notNull: true;
172
+ hasDefault: false;
173
+ isPrimaryKey: false;
174
+ isAutoincrement: false;
175
+ hasRuntimeDefault: false;
176
+ enumValues: undefined;
177
+ identity: undefined;
178
+ generated: undefined;
179
+ }>;
180
+ name: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>, I18nText>, {
181
+ name: string;
182
+ tableName: "notification_channels";
183
+ dataType: "object json";
184
+ data: I18nText;
185
+ driverParam: unknown;
186
+ notNull: true;
187
+ hasDefault: false;
188
+ isPrimaryKey: false;
189
+ isAutoincrement: false;
190
+ hasRuntimeDefault: false;
191
+ enumValues: undefined;
192
+ identity: undefined;
193
+ generated: undefined;
194
+ }>;
195
+ description: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, I18nText>, {
196
+ name: string;
197
+ tableName: "notification_channels";
198
+ dataType: "object json";
199
+ data: I18nText;
200
+ driverParam: unknown;
201
+ notNull: false;
202
+ hasDefault: false;
203
+ isPrimaryKey: false;
204
+ isAutoincrement: false;
205
+ hasRuntimeDefault: false;
206
+ enumValues: undefined;
207
+ identity: undefined;
208
+ generated: undefined;
209
+ }>;
210
+ icon: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
211
+ name: string;
212
+ tableName: "notification_channels";
213
+ dataType: "string";
214
+ data: string;
215
+ driverParam: string;
216
+ notNull: false;
217
+ hasDefault: false;
218
+ isPrimaryKey: false;
219
+ isAutoincrement: false;
220
+ hasRuntimeDefault: false;
221
+ enumValues: undefined;
222
+ identity: undefined;
223
+ generated: undefined;
224
+ }>;
225
+ pluginId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
226
+ name: string;
227
+ tableName: "notification_channels";
228
+ dataType: "string";
229
+ data: string;
230
+ driverParam: string;
231
+ notNull: true;
232
+ hasDefault: false;
233
+ isPrimaryKey: false;
234
+ isAutoincrement: false;
235
+ hasRuntimeDefault: false;
236
+ enumValues: undefined;
237
+ identity: undefined;
238
+ generated: undefined;
239
+ }>;
240
+ enabled: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
241
+ name: string;
242
+ tableName: "notification_channels";
243
+ dataType: "boolean";
244
+ data: boolean;
245
+ driverParam: boolean;
246
+ notNull: true;
247
+ hasDefault: true;
248
+ isPrimaryKey: false;
249
+ isAutoincrement: false;
250
+ hasRuntimeDefault: false;
251
+ enumValues: undefined;
252
+ identity: undefined;
253
+ generated: undefined;
254
+ }>;
255
+ configSchema: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").PgJsonbBuilder, {
256
+ name: string;
257
+ tableName: "notification_channels";
258
+ dataType: "object json";
259
+ data: unknown;
260
+ driverParam: unknown;
261
+ notNull: false;
262
+ hasDefault: false;
263
+ isPrimaryKey: false;
264
+ isAutoincrement: false;
265
+ hasRuntimeDefault: false;
266
+ enumValues: undefined;
267
+ identity: undefined;
268
+ generated: undefined;
269
+ }>;
270
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
271
+ name: string;
272
+ tableName: "notification_channels";
273
+ dataType: "object date";
274
+ data: Date;
275
+ driverParam: string;
276
+ notNull: true;
277
+ hasDefault: true;
278
+ isPrimaryKey: false;
279
+ isAutoincrement: false;
280
+ hasRuntimeDefault: false;
281
+ enumValues: undefined;
282
+ identity: undefined;
283
+ generated: undefined;
284
+ }>;
285
+ }, undefined, undefined>;
286
+ export type NotificationChannel = typeof notificationChannels.$inferSelect;
287
+ export type InsertNotificationChannel = typeof notificationChannels.$inferInsert;
288
+ //# sourceMappingURL=notification-channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-channels.d.ts","sourceRoot":"","sources":["../../src/schema/notification-channels.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAMzD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoChC,CAAC;AAMF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA2C,CAAC;AAMlF,MAAM,MAAM,mBAAmB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAC;AAC3E,MAAM,MAAM,yBAAyB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAC"}
@@ -0,0 +1,300 @@
1
+ /**
2
+ * Quiet hours configuration
3
+ */
4
+ export interface QuietHoursConfig {
5
+ enabled: boolean;
6
+ start: string;
7
+ end: string;
8
+ timezone: string;
9
+ }
10
+ /**
11
+ * Email frequency options
12
+ */
13
+ export type EmailFrequency = 'instant' | 'hourly' | 'daily';
14
+ /**
15
+ * Notification Preferences Table
16
+ *
17
+ * Stores user notification preferences per tenant.
18
+ */
19
+ export declare const notificationPreferences: import("drizzle-orm/pg-core").PgTableWithColumns<{
20
+ name: "notification_preferences";
21
+ schema: undefined;
22
+ columns: {
23
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
24
+ name: string;
25
+ tableName: "notification_preferences";
26
+ dataType: "string";
27
+ data: string;
28
+ driverParam: string;
29
+ notNull: true;
30
+ hasDefault: true;
31
+ isPrimaryKey: false;
32
+ isAutoincrement: false;
33
+ hasRuntimeDefault: false;
34
+ enumValues: undefined;
35
+ identity: undefined;
36
+ generated: undefined;
37
+ }>;
38
+ userId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
39
+ name: string;
40
+ tableName: "notification_preferences";
41
+ dataType: "string";
42
+ data: string;
43
+ driverParam: string;
44
+ notNull: true;
45
+ hasDefault: false;
46
+ isPrimaryKey: false;
47
+ isAutoincrement: false;
48
+ hasRuntimeDefault: false;
49
+ enumValues: undefined;
50
+ identity: undefined;
51
+ generated: undefined;
52
+ }>;
53
+ organizationId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
54
+ name: string;
55
+ tableName: "notification_preferences";
56
+ dataType: "string";
57
+ data: string;
58
+ driverParam: string;
59
+ notNull: true;
60
+ hasDefault: false;
61
+ isPrimaryKey: false;
62
+ isAutoincrement: false;
63
+ hasRuntimeDefault: false;
64
+ enumValues: undefined;
65
+ identity: undefined;
66
+ generated: undefined;
67
+ }>;
68
+ enabledChannels: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>>, string[]>, {
69
+ name: string;
70
+ tableName: "notification_preferences";
71
+ dataType: "object json";
72
+ data: string[];
73
+ driverParam: unknown;
74
+ notNull: true;
75
+ hasDefault: true;
76
+ isPrimaryKey: false;
77
+ isAutoincrement: false;
78
+ hasRuntimeDefault: false;
79
+ enumValues: undefined;
80
+ identity: undefined;
81
+ generated: undefined;
82
+ }>;
83
+ templateOverrides: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, string[]>>, {
84
+ name: string;
85
+ tableName: "notification_preferences";
86
+ dataType: "object json";
87
+ data: Record<string, string[]>;
88
+ driverParam: unknown;
89
+ notNull: false;
90
+ hasDefault: false;
91
+ isPrimaryKey: false;
92
+ isAutoincrement: false;
93
+ hasRuntimeDefault: false;
94
+ enumValues: undefined;
95
+ identity: undefined;
96
+ generated: undefined;
97
+ }>;
98
+ quietHours: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, QuietHoursConfig>, {
99
+ name: string;
100
+ tableName: "notification_preferences";
101
+ dataType: "object json";
102
+ data: QuietHoursConfig;
103
+ driverParam: unknown;
104
+ notNull: false;
105
+ hasDefault: false;
106
+ isPrimaryKey: false;
107
+ isAutoincrement: false;
108
+ hasRuntimeDefault: false;
109
+ enumValues: undefined;
110
+ identity: undefined;
111
+ generated: undefined;
112
+ }>;
113
+ emailFrequency: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, EmailFrequency>, {
114
+ name: string;
115
+ tableName: "notification_preferences";
116
+ dataType: "string";
117
+ data: EmailFrequency;
118
+ driverParam: string;
119
+ notNull: true;
120
+ hasDefault: true;
121
+ isPrimaryKey: false;
122
+ isAutoincrement: false;
123
+ hasRuntimeDefault: false;
124
+ enumValues: undefined;
125
+ identity: undefined;
126
+ generated: undefined;
127
+ }>;
128
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
129
+ name: string;
130
+ tableName: "notification_preferences";
131
+ dataType: "object date";
132
+ data: Date;
133
+ driverParam: string;
134
+ notNull: true;
135
+ hasDefault: true;
136
+ isPrimaryKey: false;
137
+ isAutoincrement: false;
138
+ hasRuntimeDefault: false;
139
+ enumValues: undefined;
140
+ identity: undefined;
141
+ generated: undefined;
142
+ }>;
143
+ updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
144
+ name: string;
145
+ tableName: "notification_preferences";
146
+ dataType: "object date";
147
+ data: Date;
148
+ driverParam: string;
149
+ notNull: true;
150
+ hasDefault: true;
151
+ isPrimaryKey: false;
152
+ isAutoincrement: false;
153
+ hasRuntimeDefault: false;
154
+ enumValues: undefined;
155
+ identity: undefined;
156
+ generated: undefined;
157
+ }>;
158
+ };
159
+ dialect: "pg";
160
+ }>;
161
+ export declare const notificationPreferenceSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
162
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetHasRuntimeDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, {
163
+ name: string;
164
+ tableName: "notification_preferences";
165
+ dataType: "string";
166
+ data: string;
167
+ driverParam: string;
168
+ notNull: true;
169
+ hasDefault: true;
170
+ isPrimaryKey: false;
171
+ isAutoincrement: false;
172
+ hasRuntimeDefault: false;
173
+ enumValues: undefined;
174
+ identity: undefined;
175
+ generated: undefined;
176
+ }>;
177
+ userId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
178
+ name: string;
179
+ tableName: "notification_preferences";
180
+ dataType: "string";
181
+ data: string;
182
+ driverParam: string;
183
+ notNull: true;
184
+ hasDefault: false;
185
+ isPrimaryKey: false;
186
+ isAutoincrement: false;
187
+ hasRuntimeDefault: false;
188
+ enumValues: undefined;
189
+ identity: undefined;
190
+ generated: undefined;
191
+ }>;
192
+ organizationId: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>, {
193
+ name: string;
194
+ tableName: "notification_preferences";
195
+ dataType: "string";
196
+ data: string;
197
+ driverParam: string;
198
+ notNull: true;
199
+ hasDefault: false;
200
+ isPrimaryKey: false;
201
+ isAutoincrement: false;
202
+ hasRuntimeDefault: false;
203
+ enumValues: undefined;
204
+ identity: undefined;
205
+ generated: undefined;
206
+ }>;
207
+ enabledChannels: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgJsonbBuilder>>, string[]>, {
208
+ name: string;
209
+ tableName: "notification_preferences";
210
+ dataType: "object json";
211
+ data: string[];
212
+ driverParam: unknown;
213
+ notNull: true;
214
+ hasDefault: true;
215
+ isPrimaryKey: false;
216
+ isAutoincrement: false;
217
+ hasRuntimeDefault: false;
218
+ enumValues: undefined;
219
+ identity: undefined;
220
+ generated: undefined;
221
+ }>;
222
+ templateOverrides: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, string[]>>, {
223
+ name: string;
224
+ tableName: "notification_preferences";
225
+ dataType: "object json";
226
+ data: Record<string, string[]>;
227
+ driverParam: unknown;
228
+ notNull: false;
229
+ hasDefault: false;
230
+ isPrimaryKey: false;
231
+ isAutoincrement: false;
232
+ hasRuntimeDefault: false;
233
+ enumValues: undefined;
234
+ identity: undefined;
235
+ generated: undefined;
236
+ }>;
237
+ quietHours: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, QuietHoursConfig>, {
238
+ name: string;
239
+ tableName: "notification_preferences";
240
+ dataType: "object json";
241
+ data: QuietHoursConfig;
242
+ driverParam: unknown;
243
+ notNull: false;
244
+ hasDefault: false;
245
+ isPrimaryKey: false;
246
+ isAutoincrement: false;
247
+ hasRuntimeDefault: false;
248
+ enumValues: undefined;
249
+ identity: undefined;
250
+ generated: undefined;
251
+ }>;
252
+ emailFrequency: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>>>, EmailFrequency>, {
253
+ name: string;
254
+ tableName: "notification_preferences";
255
+ dataType: "string";
256
+ data: EmailFrequency;
257
+ driverParam: string;
258
+ notNull: true;
259
+ hasDefault: true;
260
+ isPrimaryKey: false;
261
+ isAutoincrement: false;
262
+ hasRuntimeDefault: false;
263
+ enumValues: undefined;
264
+ identity: undefined;
265
+ generated: undefined;
266
+ }>;
267
+ createdAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
268
+ name: string;
269
+ tableName: "notification_preferences";
270
+ dataType: "object date";
271
+ data: Date;
272
+ driverParam: string;
273
+ notNull: true;
274
+ hasDefault: true;
275
+ isPrimaryKey: false;
276
+ isAutoincrement: false;
277
+ hasRuntimeDefault: false;
278
+ enumValues: undefined;
279
+ identity: undefined;
280
+ generated: undefined;
281
+ }>;
282
+ updatedAt: import("drizzle-orm/pg-core").PgBuildColumn<"notification_preferences", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgTimestampBuilder>>, {
283
+ name: string;
284
+ tableName: "notification_preferences";
285
+ dataType: "object date";
286
+ data: Date;
287
+ driverParam: string;
288
+ notNull: true;
289
+ hasDefault: true;
290
+ isPrimaryKey: false;
291
+ isAutoincrement: false;
292
+ hasRuntimeDefault: false;
293
+ enumValues: undefined;
294
+ identity: undefined;
295
+ generated: undefined;
296
+ }>;
297
+ }, undefined, undefined>;
298
+ export type NotificationPreference = typeof notificationPreferences.$inferSelect;
299
+ export type InsertNotificationPreference = typeof notificationPreferences.$inferInsert;
300
+ //# sourceMappingURL=notification-preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-preferences.d.ts","sourceRoot":"","sources":["../../src/schema/notification-preferences.ts"],"names":[],"mappings":"AAoBA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAM5D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+CnC,CAAC;AAMF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAA8C,CAAC;AAMxF,MAAM,MAAM,sBAAsB,GAAG,OAAO,uBAAuB,CAAC,YAAY,CAAC;AACjF,MAAM,MAAM,4BAA4B,GAAG,OAAO,uBAAuB,CAAC,YAAY,CAAC"}