reset-infra 1.0.0 → 1.0.3

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/README.md CHANGED
@@ -38,3 +38,32 @@ import { NombreDelModeloSchema } from 'reset-infra';
38
38
  - `npm run db:down`: Detiene y elimina el contenedor de PostgreSQL.
39
39
  - `npm run db:migrate`: Aplica los cambios estructurales detectados en `schema.prisma` hacia la base de datos en desarrollo.
40
40
  - `npm run db:generate`: Invoca el generador del ORM para reconstruir la instancia local de Prisma e invocar dependencias de generacion secundarias (como los esquemas de Zod).
41
+
42
+ ## Integración con MongoDB (Foro)
43
+
44
+ Además de la base de datos relacional PostgreSQL, esta infraestructura orquesta localmente un servicio secundario de **MongoDB** para alojar de forma ágil y eficiente los datos dinámicos generados por el módulo del foro (publicaciones, comentarios, reacciones e hilos de anidación).
45
+
46
+ ### Relación entre Bases de Datos (SQL vs NoSQL)
47
+
48
+ Este ecosistema adopta un modelo híbrido intencional donde las tablas estructuradas (usuarios, pagos, configuración) se mantienen firmes y seguras en PostgreSQL, mientras que el volumen transaccional de lectura/escritura del foro se desplaza a MongoDB.
49
+
50
+ **Dado que MongoDB opera de forma independiente y sin llaves foráneas reales hacia PostgreSQL**, la relación se establece y se aplica lógicamente en la **capa del Backend**.
51
+
52
+ El flujo de integración ocurre de la siguiente forma:
53
+ 1. El backend (ej. usando Node.Js con Mongoose o el adaptador NoSQL de Prisma) decodifica la sesión activa o el token JWT del usuario emisor del Post/Comentario.
54
+ 2. Identifica su Primary Key proveniente de PostgreSQL (un string `UUID`).
55
+ 3. El Backend persiste este string `UUID` dentro del documento JSON de MongoDB, almacenándolo en el campo estricto designado llamado `authorId`.
56
+
57
+ **Manejo de Anonimato (`isAnonymous`)**:
58
+ Para soportar publicaciones anónimas sin perder la trazabilidad administrativa, las colecciones obligan el uso de una bandera booleana `isAnonymous`.
59
+ - El backend **siempre** debe guardar el `authorId` real del usuario en MongoDB (incluso si es anónimo).
60
+ - Si el cliente envía `isAnonymous: true`, el backend guardará este valor en el documento.
61
+ - Al momento de consultar los hilos del foro, el Backend **no** debe incluir en el listado resultante los datos personales (alias, avatar) de aquellos posts/comentarios que tengan `isAnonymous: true`. La trazabilidad se mantiene interna en base de datos, pero el usuario se expone como Anónimo hacia el frontend.
62
+
63
+ Al momento de consultar un hilo del foro público, el Backend extrae de MongoDB la colección de Posts/Comentarios, obtiene el array de `authorId` resultantes (omitiendo o enmascarando los anónimos) y lanza una consulta en bloque hacia PostgreSQL para obtener y mapear el alias o avatar de los respectivos usuarios.
64
+
65
+ ### Componentes de Infraestructura NoSQL
66
+
67
+ - **Contenedor MongoDB (`mongo:7.0`)**: Base de datos documental corriendo en el puerto 27017.
68
+ - **Script de Inicialización**: Existe un archivo `mongo/init-mongo.js` inyectado automáticamente en el volumen de Docker que fuerza la creación asíncrona de las colecciones `posts` y `comments`. Este script también estipula reglas de **JSON Schema Validation** que blindan la base de datos a un nivel nativo; obligando a que, por ejemplo, los campos `authorId` (que actúan como el vínculo virtual a Postgres) no puedan ser nulos ni obviar su tipado tipo cadena (String).
69
+ - **Contenedor Mongo Express**: Despliegue local de una herramienta con Interfaz Gráfica (GUI) servida en el puerto **`8081`**. Si deseas administrar registros, visualizar colecciones o purgar foros localmente por medio del navegador web, deberás acceder e ingresar credenciales listadas en el archivo local `.env` (usuario por defecto: `admin` / clave: `password`).
package/dist/index.d.ts CHANGED
@@ -7,4 +7,5 @@
7
7
  * import { PlaceholderSchema } from 'reset-infra';
8
8
  */
9
9
  export * from './schemas/index.js';
10
+ export * from './schemas/mongo.js';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -23,4 +23,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  __exportStar(require("./schemas/index.js"), exports);
26
+ __exportStar(require("./schemas/mongo.js"), exports);
26
27
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;AAEH,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,qDAAmC"}
@@ -23,12 +23,14 @@ export declare const CravingLevelScalarFieldEnumSchema: z.ZodEnum<{
23
23
  description: "description";
24
24
  level: "level";
25
25
  label: "label";
26
+ recommendation: "recommendation";
26
27
  }>;
27
28
  export declare const EmotionalStateScalarFieldEnumSchema: z.ZodEnum<{
28
29
  id: "id";
29
30
  description: "description";
30
31
  level: "level";
31
32
  label: "label";
33
+ category: "category";
32
34
  }>;
33
35
  export declare const UserAddictionScalarFieldEnumSchema: z.ZodEnum<{
34
36
  id: "id";
@@ -121,16 +123,22 @@ export declare const QueryModeSchema: z.ZodEnum<{
121
123
  default: "default";
122
124
  insensitive: "insensitive";
123
125
  }>;
124
- export declare const NullsOrderSchema: z.ZodEnum<{
125
- first: "first";
126
- last: "last";
126
+ export declare const UserRoleSchema: z.ZodEnum<{
127
+ ADICTO: "ADICTO";
128
+ PADRINO: "PADRINO";
129
+ ADMIN: "ADMIN";
127
130
  }>;
131
+ export type UserRoleType = `${z.infer<typeof UserRoleSchema>}`;
128
132
  export declare const UserSchema: z.ZodObject<{
133
+ role: z.ZodEnum<{
134
+ ADICTO: "ADICTO";
135
+ PADRINO: "PADRINO";
136
+ ADMIN: "ADMIN";
137
+ }>;
129
138
  id: z.ZodUUID;
130
139
  name: z.ZodString;
131
140
  email: z.ZodString;
132
141
  password_hash: z.ZodString;
133
- role: z.ZodNullable<z.ZodString>;
134
142
  created_at: z.ZodCoercedDate<unknown>;
135
143
  updated_at: z.ZodCoercedDate<unknown>;
136
144
  }, z.core.$strip>;
@@ -139,21 +147,23 @@ export declare const CravingLevelSchema: z.ZodObject<{
139
147
  id: z.ZodUUID;
140
148
  level: z.ZodNumber;
141
149
  label: z.ZodString;
142
- description: z.ZodNullable<z.ZodString>;
150
+ description: z.ZodString;
151
+ recommendation: z.ZodString;
143
152
  }, z.core.$strip>;
144
153
  export type CravingLevel = z.infer<typeof CravingLevelSchema>;
145
154
  export declare const EmotionalStateSchema: z.ZodObject<{
146
155
  id: z.ZodUUID;
147
156
  level: z.ZodNumber;
148
157
  label: z.ZodString;
149
- description: z.ZodNullable<z.ZodString>;
158
+ description: z.ZodString;
159
+ category: z.ZodString;
150
160
  }, z.core.$strip>;
151
161
  export type EmotionalState = z.infer<typeof EmotionalStateSchema>;
152
162
  export declare const UserAddictionSchema: z.ZodObject<{
153
163
  id: z.ZodUUID;
154
164
  user_id: z.ZodString;
155
165
  custom_name: z.ZodString;
156
- classification: z.ZodNullable<z.ZodString>;
166
+ classification: z.ZodString;
157
167
  is_active: z.ZodBoolean;
158
168
  registered_at: z.ZodCoercedDate<unknown>;
159
169
  created_at: z.ZodCoercedDate<unknown>;
@@ -161,12 +171,12 @@ export declare const UserAddictionSchema: z.ZodObject<{
161
171
  export type UserAddiction = z.infer<typeof UserAddictionSchema>;
162
172
  export declare const SponsorshipSchema: z.ZodObject<{
163
173
  id: z.ZodUUID;
164
- sponsor_id: z.ZodNullable<z.ZodString>;
165
- addict_id: z.ZodNullable<z.ZodString>;
174
+ sponsor_id: z.ZodString;
175
+ addict_id: z.ZodString;
166
176
  started_at: z.ZodCoercedDate<unknown>;
167
- ended_at: z.ZodNullable<z.ZodCoercedDate<unknown>>;
177
+ ended_at: z.ZodCoercedDate<unknown>;
168
178
  is_active: z.ZodBoolean;
169
- termination_reason: z.ZodNullable<z.ZodString>;
179
+ termination_reason: z.ZodString;
170
180
  created_at: z.ZodCoercedDate<unknown>;
171
181
  }, z.core.$strip>;
172
182
  export type Sponsorship = z.infer<typeof SponsorshipSchema>;
@@ -175,22 +185,22 @@ export declare const DailyLogSchema: z.ZodObject<{
175
185
  user_id: z.ZodString;
176
186
  log_date: z.ZodCoercedDate<unknown>;
177
187
  consumed: z.ZodBoolean;
178
- craving_level_id: z.ZodNullable<z.ZodString>;
179
- emotional_state_id: z.ZodNullable<z.ZodString>;
180
- triggers: z.ZodNullable<z.ZodString>;
181
- notes: z.ZodNullable<z.ZodString>;
188
+ craving_level_id: z.ZodString;
189
+ emotional_state_id: z.ZodString;
190
+ triggers: z.ZodString;
191
+ notes: z.ZodString;
182
192
  created_at: z.ZodCoercedDate<unknown>;
183
193
  }, z.core.$strip>;
184
194
  export type DailyLog = z.infer<typeof DailyLogSchema>;
185
195
  export declare const StreakEventSchema: z.ZodObject<{
186
196
  id: z.ZodUUID;
187
197
  streak_id: z.ZodString;
188
- emergency_alert_id: z.ZodNullable<z.ZodString>;
189
- event_type: z.ZodNullable<z.ZodString>;
198
+ emergency_alert_id: z.ZodString;
199
+ event_type: z.ZodString;
190
200
  event_date: z.ZodCoercedDate<unknown>;
191
- days_achieved: z.ZodNullable<z.ZodNumber>;
192
- avg_craving_period: z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
193
- avg_emotion_period: z.ZodNullable<z.ZodCustom<Prisma.Decimal, Prisma.Decimal>>;
201
+ days_achieved: z.ZodNumber;
202
+ avg_craving_period: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
203
+ avg_emotion_period: z.ZodCustom<Prisma.Decimal, Prisma.Decimal>;
194
204
  created_at: z.ZodCoercedDate<unknown>;
195
205
  }, z.core.$strip>;
196
206
  export type StreakEvent = z.infer<typeof StreakEventSchema>;
@@ -198,23 +208,23 @@ export declare const LogAbsenceSchema: z.ZodObject<{
198
208
  id: z.ZodUUID;
199
209
  user_id: z.ZodString;
200
210
  streak_id: z.ZodString;
201
- last_log_date: z.ZodNullable<z.ZodCoercedDate<unknown>>;
211
+ last_log_date: z.ZodCoercedDate<unknown>;
202
212
  detected_at: z.ZodCoercedDate<unknown>;
203
- absence_hours: z.ZodNullable<z.ZodNumber>;
213
+ absence_hours: z.ZodNumber;
204
214
  event_generated: z.ZodBoolean;
205
- streak_event_id: z.ZodNullable<z.ZodString>;
215
+ streak_event_id: z.ZodString;
206
216
  }, z.core.$strip>;
207
217
  export type LogAbsence = z.infer<typeof LogAbsenceSchema>;
208
218
  export declare const SupportContactSchema: z.ZodObject<{
209
219
  id: z.ZodUUID;
210
220
  user_id: z.ZodString;
211
221
  contact_name: z.ZodString;
212
- phone: z.ZodNullable<z.ZodString>;
213
- email: z.ZodNullable<z.ZodString>;
214
- relationship: z.ZodNullable<z.ZodString>;
215
- custom_relationship: z.ZodNullable<z.ZodString>;
222
+ phone: z.ZodString;
223
+ email: z.ZodString;
224
+ relationship: z.ZodString;
225
+ custom_relationship: z.ZodString;
216
226
  is_active: z.ZodBoolean;
217
- priority_order: z.ZodNullable<z.ZodNumber>;
227
+ priority_order: z.ZodNumber;
218
228
  created_at: z.ZodCoercedDate<unknown>;
219
229
  updated_at: z.ZodCoercedDate<unknown>;
220
230
  }, z.core.$strip>;
@@ -225,7 +235,7 @@ export declare const EmergencyAlertSchema: z.ZodObject<{
225
235
  user_addiction_id: z.ZodString;
226
236
  activated_at: z.ZodCoercedDate<unknown>;
227
237
  resulted_in_relapse: z.ZodBoolean;
228
- resolution_notes: z.ZodNullable<z.ZodString>;
238
+ resolution_notes: z.ZodString;
229
239
  created_at: z.ZodCoercedDate<unknown>;
230
240
  }, z.core.$strip>;
231
241
  export type EmergencyAlert = z.infer<typeof EmergencyAlertSchema>;
@@ -233,10 +243,10 @@ export declare const StreakSchema: z.ZodObject<{
233
243
  id: z.ZodUUID;
234
244
  user_id: z.ZodString;
235
245
  user_addiction_id: z.ZodString;
236
- status: z.ZodNullable<z.ZodString>;
246
+ status: z.ZodString;
237
247
  started_at: z.ZodCoercedDate<unknown>;
238
248
  day_counter: z.ZodNumber;
239
- last_log_date: z.ZodNullable<z.ZodCoercedDate<unknown>>;
249
+ last_log_date: z.ZodCoercedDate<unknown>;
240
250
  updated_at: z.ZodCoercedDate<unknown>;
241
251
  }, z.core.$strip>;
242
252
  export type Streak = z.infer<typeof StreakSchema>;
@@ -419,27 +429,28 @@ export declare const StreakUpdateManyMutationInputSchema: z.ZodType<Prisma.Strea
419
429
  export declare const StreakUncheckedUpdateManyInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateManyInput>;
420
430
  export declare const UuidFilterSchema: z.ZodType<Prisma.UuidFilter>;
421
431
  export declare const StringFilterSchema: z.ZodType<Prisma.StringFilter>;
422
- export declare const StringNullableFilterSchema: z.ZodType<Prisma.StringNullableFilter>;
432
+ export declare const EnumUserRoleFilterSchema: z.ZodType<Prisma.EnumUserRoleFilter>;
423
433
  export declare const DateTimeFilterSchema: z.ZodType<Prisma.DateTimeFilter>;
424
- export declare const UserAddictionNullableScalarRelationFilterSchema: z.ZodType<Prisma.UserAddictionNullableScalarRelationFilter>;
434
+ export declare const UserAddictionListRelationFilterSchema: z.ZodType<Prisma.UserAddictionListRelationFilter>;
425
435
  export declare const DailyLogListRelationFilterSchema: z.ZodType<Prisma.DailyLogListRelationFilter>;
426
436
  export declare const SponsorshipListRelationFilterSchema: z.ZodType<Prisma.SponsorshipListRelationFilter>;
427
437
  export declare const SupportContactListRelationFilterSchema: z.ZodType<Prisma.SupportContactListRelationFilter>;
428
438
  export declare const EmergencyAlertListRelationFilterSchema: z.ZodType<Prisma.EmergencyAlertListRelationFilter>;
429
- export declare const StreakNullableScalarRelationFilterSchema: z.ZodType<Prisma.StreakNullableScalarRelationFilter>;
439
+ export declare const StreakListRelationFilterSchema: z.ZodType<Prisma.StreakListRelationFilter>;
430
440
  export declare const LogAbsenceListRelationFilterSchema: z.ZodType<Prisma.LogAbsenceListRelationFilter>;
431
- export declare const SortOrderInputSchema: z.ZodType<Prisma.SortOrderInput>;
441
+ export declare const UserAddictionOrderByRelationAggregateInputSchema: z.ZodType<Prisma.UserAddictionOrderByRelationAggregateInput>;
432
442
  export declare const DailyLogOrderByRelationAggregateInputSchema: z.ZodType<Prisma.DailyLogOrderByRelationAggregateInput>;
433
443
  export declare const SponsorshipOrderByRelationAggregateInputSchema: z.ZodType<Prisma.SponsorshipOrderByRelationAggregateInput>;
434
444
  export declare const SupportContactOrderByRelationAggregateInputSchema: z.ZodType<Prisma.SupportContactOrderByRelationAggregateInput>;
435
445
  export declare const EmergencyAlertOrderByRelationAggregateInputSchema: z.ZodType<Prisma.EmergencyAlertOrderByRelationAggregateInput>;
446
+ export declare const StreakOrderByRelationAggregateInputSchema: z.ZodType<Prisma.StreakOrderByRelationAggregateInput>;
436
447
  export declare const LogAbsenceOrderByRelationAggregateInputSchema: z.ZodType<Prisma.LogAbsenceOrderByRelationAggregateInput>;
437
448
  export declare const UserCountOrderByAggregateInputSchema: z.ZodType<Prisma.UserCountOrderByAggregateInput>;
438
449
  export declare const UserMaxOrderByAggregateInputSchema: z.ZodType<Prisma.UserMaxOrderByAggregateInput>;
439
450
  export declare const UserMinOrderByAggregateInputSchema: z.ZodType<Prisma.UserMinOrderByAggregateInput>;
440
451
  export declare const UuidWithAggregatesFilterSchema: z.ZodType<Prisma.UuidWithAggregatesFilter>;
441
452
  export declare const StringWithAggregatesFilterSchema: z.ZodType<Prisma.StringWithAggregatesFilter>;
442
- export declare const StringNullableWithAggregatesFilterSchema: z.ZodType<Prisma.StringNullableWithAggregatesFilter>;
453
+ export declare const EnumUserRoleWithAggregatesFilterSchema: z.ZodType<Prisma.EnumUserRoleWithAggregatesFilter>;
443
454
  export declare const DateTimeWithAggregatesFilterSchema: z.ZodType<Prisma.DateTimeWithAggregatesFilter>;
444
455
  export declare const IntFilterSchema: z.ZodType<Prisma.IntFilter>;
445
456
  export declare const CravingLevelCountOrderByAggregateInputSchema: z.ZodType<Prisma.CravingLevelCountOrderByAggregateInput>;
@@ -459,31 +470,24 @@ export declare const UserAddictionCountOrderByAggregateInputSchema: z.ZodType<Pr
459
470
  export declare const UserAddictionMaxOrderByAggregateInputSchema: z.ZodType<Prisma.UserAddictionMaxOrderByAggregateInput>;
460
471
  export declare const UserAddictionMinOrderByAggregateInputSchema: z.ZodType<Prisma.UserAddictionMinOrderByAggregateInput>;
461
472
  export declare const BoolWithAggregatesFilterSchema: z.ZodType<Prisma.BoolWithAggregatesFilter>;
462
- export declare const UuidNullableFilterSchema: z.ZodType<Prisma.UuidNullableFilter>;
463
- export declare const DateTimeNullableFilterSchema: z.ZodType<Prisma.DateTimeNullableFilter>;
464
- export declare const UserNullableScalarRelationFilterSchema: z.ZodType<Prisma.UserNullableScalarRelationFilter>;
465
473
  export declare const SponsorshipCountOrderByAggregateInputSchema: z.ZodType<Prisma.SponsorshipCountOrderByAggregateInput>;
466
474
  export declare const SponsorshipMaxOrderByAggregateInputSchema: z.ZodType<Prisma.SponsorshipMaxOrderByAggregateInput>;
467
475
  export declare const SponsorshipMinOrderByAggregateInputSchema: z.ZodType<Prisma.SponsorshipMinOrderByAggregateInput>;
468
- export declare const UuidNullableWithAggregatesFilterSchema: z.ZodType<Prisma.UuidNullableWithAggregatesFilter>;
469
- export declare const DateTimeNullableWithAggregatesFilterSchema: z.ZodType<Prisma.DateTimeNullableWithAggregatesFilter>;
470
- export declare const CravingLevelNullableScalarRelationFilterSchema: z.ZodType<Prisma.CravingLevelNullableScalarRelationFilter>;
471
- export declare const EmotionalStateNullableScalarRelationFilterSchema: z.ZodType<Prisma.EmotionalStateNullableScalarRelationFilter>;
476
+ export declare const CravingLevelScalarRelationFilterSchema: z.ZodType<Prisma.CravingLevelScalarRelationFilter>;
477
+ export declare const EmotionalStateScalarRelationFilterSchema: z.ZodType<Prisma.EmotionalStateScalarRelationFilter>;
472
478
  export declare const DailyLogUser_idLog_dateCompoundUniqueInputSchema: z.ZodType<Prisma.DailyLogUser_idLog_dateCompoundUniqueInput>;
473
479
  export declare const DailyLogCountOrderByAggregateInputSchema: z.ZodType<Prisma.DailyLogCountOrderByAggregateInput>;
474
480
  export declare const DailyLogMaxOrderByAggregateInputSchema: z.ZodType<Prisma.DailyLogMaxOrderByAggregateInput>;
475
481
  export declare const DailyLogMinOrderByAggregateInputSchema: z.ZodType<Prisma.DailyLogMinOrderByAggregateInput>;
476
- export declare const IntNullableFilterSchema: z.ZodType<Prisma.IntNullableFilter>;
477
- export declare const DecimalNullableFilterSchema: z.ZodType<Prisma.DecimalNullableFilter>;
482
+ export declare const DecimalFilterSchema: z.ZodType<Prisma.DecimalFilter>;
478
483
  export declare const StreakScalarRelationFilterSchema: z.ZodType<Prisma.StreakScalarRelationFilter>;
479
484
  export declare const StreakEventCountOrderByAggregateInputSchema: z.ZodType<Prisma.StreakEventCountOrderByAggregateInput>;
480
485
  export declare const StreakEventAvgOrderByAggregateInputSchema: z.ZodType<Prisma.StreakEventAvgOrderByAggregateInput>;
481
486
  export declare const StreakEventMaxOrderByAggregateInputSchema: z.ZodType<Prisma.StreakEventMaxOrderByAggregateInput>;
482
487
  export declare const StreakEventMinOrderByAggregateInputSchema: z.ZodType<Prisma.StreakEventMinOrderByAggregateInput>;
483
488
  export declare const StreakEventSumOrderByAggregateInputSchema: z.ZodType<Prisma.StreakEventSumOrderByAggregateInput>;
484
- export declare const IntNullableWithAggregatesFilterSchema: z.ZodType<Prisma.IntNullableWithAggregatesFilter>;
485
- export declare const DecimalNullableWithAggregatesFilterSchema: z.ZodType<Prisma.DecimalNullableWithAggregatesFilter>;
486
- export declare const StreakEventNullableScalarRelationFilterSchema: z.ZodType<Prisma.StreakEventNullableScalarRelationFilter>;
489
+ export declare const DecimalWithAggregatesFilterSchema: z.ZodType<Prisma.DecimalWithAggregatesFilter>;
490
+ export declare const StreakEventScalarRelationFilterSchema: z.ZodType<Prisma.StreakEventScalarRelationFilter>;
487
491
  export declare const LogAbsenceCountOrderByAggregateInputSchema: z.ZodType<Prisma.LogAbsenceCountOrderByAggregateInput>;
488
492
  export declare const LogAbsenceAvgOrderByAggregateInputSchema: z.ZodType<Prisma.LogAbsenceAvgOrderByAggregateInput>;
489
493
  export declare const LogAbsenceMaxOrderByAggregateInputSchema: z.ZodType<Prisma.LogAbsenceMaxOrderByAggregateInput>;
@@ -505,40 +509,40 @@ export declare const StreakAvgOrderByAggregateInputSchema: z.ZodType<Prisma.Stre
505
509
  export declare const StreakMaxOrderByAggregateInputSchema: z.ZodType<Prisma.StreakMaxOrderByAggregateInput>;
506
510
  export declare const StreakMinOrderByAggregateInputSchema: z.ZodType<Prisma.StreakMinOrderByAggregateInput>;
507
511
  export declare const StreakSumOrderByAggregateInputSchema: z.ZodType<Prisma.StreakSumOrderByAggregateInput>;
508
- export declare const UserAddictionCreateNestedOneWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionCreateNestedOneWithoutUserInput>;
512
+ export declare const UserAddictionCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionCreateNestedManyWithoutUserInput>;
509
513
  export declare const DailyLogCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.DailyLogCreateNestedManyWithoutUserInput>;
510
514
  export declare const SponsorshipCreateNestedManyWithoutSponsorInputSchema: z.ZodType<Prisma.SponsorshipCreateNestedManyWithoutSponsorInput>;
511
515
  export declare const SponsorshipCreateNestedManyWithoutAddictInputSchema: z.ZodType<Prisma.SponsorshipCreateNestedManyWithoutAddictInput>;
512
516
  export declare const SupportContactCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.SupportContactCreateNestedManyWithoutUserInput>;
513
517
  export declare const EmergencyAlertCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.EmergencyAlertCreateNestedManyWithoutUserInput>;
514
- export declare const StreakCreateNestedOneWithoutUserInputSchema: z.ZodType<Prisma.StreakCreateNestedOneWithoutUserInput>;
518
+ export declare const StreakCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.StreakCreateNestedManyWithoutUserInput>;
515
519
  export declare const LogAbsenceCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceCreateNestedManyWithoutUserInput>;
516
- export declare const UserAddictionUncheckedCreateNestedOneWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUncheckedCreateNestedOneWithoutUserInput>;
520
+ export declare const UserAddictionUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUncheckedCreateNestedManyWithoutUserInput>;
517
521
  export declare const DailyLogUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUncheckedCreateNestedManyWithoutUserInput>;
518
522
  export declare const SponsorshipUncheckedCreateNestedManyWithoutSponsorInputSchema: z.ZodType<Prisma.SponsorshipUncheckedCreateNestedManyWithoutSponsorInput>;
519
523
  export declare const SponsorshipUncheckedCreateNestedManyWithoutAddictInputSchema: z.ZodType<Prisma.SponsorshipUncheckedCreateNestedManyWithoutAddictInput>;
520
524
  export declare const SupportContactUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.SupportContactUncheckedCreateNestedManyWithoutUserInput>;
521
525
  export declare const EmergencyAlertUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedCreateNestedManyWithoutUserInput>;
522
- export declare const StreakUncheckedCreateNestedOneWithoutUserInputSchema: z.ZodType<Prisma.StreakUncheckedCreateNestedOneWithoutUserInput>;
526
+ export declare const StreakUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.StreakUncheckedCreateNestedManyWithoutUserInput>;
523
527
  export declare const LogAbsenceUncheckedCreateNestedManyWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUncheckedCreateNestedManyWithoutUserInput>;
524
528
  export declare const StringFieldUpdateOperationsInputSchema: z.ZodType<Prisma.StringFieldUpdateOperationsInput>;
525
- export declare const NullableStringFieldUpdateOperationsInputSchema: z.ZodType<Prisma.NullableStringFieldUpdateOperationsInput>;
529
+ export declare const EnumUserRoleFieldUpdateOperationsInputSchema: z.ZodType<Prisma.EnumUserRoleFieldUpdateOperationsInput>;
526
530
  export declare const DateTimeFieldUpdateOperationsInputSchema: z.ZodType<Prisma.DateTimeFieldUpdateOperationsInput>;
527
- export declare const UserAddictionUpdateOneWithoutUserNestedInputSchema: z.ZodType<Prisma.UserAddictionUpdateOneWithoutUserNestedInput>;
531
+ export declare const UserAddictionUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.UserAddictionUpdateManyWithoutUserNestedInput>;
528
532
  export declare const DailyLogUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.DailyLogUpdateManyWithoutUserNestedInput>;
529
533
  export declare const SponsorshipUpdateManyWithoutSponsorNestedInputSchema: z.ZodType<Prisma.SponsorshipUpdateManyWithoutSponsorNestedInput>;
530
534
  export declare const SponsorshipUpdateManyWithoutAddictNestedInputSchema: z.ZodType<Prisma.SponsorshipUpdateManyWithoutAddictNestedInput>;
531
535
  export declare const SupportContactUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.SupportContactUpdateManyWithoutUserNestedInput>;
532
536
  export declare const EmergencyAlertUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateManyWithoutUserNestedInput>;
533
- export declare const StreakUpdateOneWithoutUserNestedInputSchema: z.ZodType<Prisma.StreakUpdateOneWithoutUserNestedInput>;
537
+ export declare const StreakUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.StreakUpdateManyWithoutUserNestedInput>;
534
538
  export declare const LogAbsenceUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.LogAbsenceUpdateManyWithoutUserNestedInput>;
535
- export declare const UserAddictionUncheckedUpdateOneWithoutUserNestedInputSchema: z.ZodType<Prisma.UserAddictionUncheckedUpdateOneWithoutUserNestedInput>;
539
+ export declare const UserAddictionUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.UserAddictionUncheckedUpdateManyWithoutUserNestedInput>;
536
540
  export declare const DailyLogUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.DailyLogUncheckedUpdateManyWithoutUserNestedInput>;
537
541
  export declare const SponsorshipUncheckedUpdateManyWithoutSponsorNestedInputSchema: z.ZodType<Prisma.SponsorshipUncheckedUpdateManyWithoutSponsorNestedInput>;
538
542
  export declare const SponsorshipUncheckedUpdateManyWithoutAddictNestedInputSchema: z.ZodType<Prisma.SponsorshipUncheckedUpdateManyWithoutAddictNestedInput>;
539
543
  export declare const SupportContactUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.SupportContactUncheckedUpdateManyWithoutUserNestedInput>;
540
544
  export declare const EmergencyAlertUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedUpdateManyWithoutUserNestedInput>;
541
- export declare const StreakUncheckedUpdateOneWithoutUserNestedInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateOneWithoutUserNestedInput>;
545
+ export declare const StreakUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateManyWithoutUserNestedInput>;
542
546
  export declare const LogAbsenceUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType<Prisma.LogAbsenceUncheckedUpdateManyWithoutUserNestedInput>;
543
547
  export declare const DailyLogCreateNestedManyWithoutCraving_levelInputSchema: z.ZodType<Prisma.DailyLogCreateNestedManyWithoutCraving_levelInput>;
544
548
  export declare const DailyLogUncheckedCreateNestedManyWithoutCraving_levelInputSchema: z.ZodType<Prisma.DailyLogUncheckedCreateNestedManyWithoutCraving_levelInput>;
@@ -550,39 +554,37 @@ export declare const DailyLogUncheckedCreateNestedManyWithoutEmotional_stateInpu
550
554
  export declare const DailyLogUpdateManyWithoutEmotional_stateNestedInputSchema: z.ZodType<Prisma.DailyLogUpdateManyWithoutEmotional_stateNestedInput>;
551
555
  export declare const DailyLogUncheckedUpdateManyWithoutEmotional_stateNestedInputSchema: z.ZodType<Prisma.DailyLogUncheckedUpdateManyWithoutEmotional_stateNestedInput>;
552
556
  export declare const UserCreateNestedOneWithoutAddictionsInputSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutAddictionsInput>;
553
- export declare const StreakCreateNestedOneWithoutAddictionInputSchema: z.ZodType<Prisma.StreakCreateNestedOneWithoutAddictionInput>;
557
+ export declare const StreakCreateNestedManyWithoutAddictionInputSchema: z.ZodType<Prisma.StreakCreateNestedManyWithoutAddictionInput>;
554
558
  export declare const EmergencyAlertCreateNestedManyWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertCreateNestedManyWithoutAddictionInput>;
555
- export declare const StreakUncheckedCreateNestedOneWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUncheckedCreateNestedOneWithoutAddictionInput>;
559
+ export declare const StreakUncheckedCreateNestedManyWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUncheckedCreateNestedManyWithoutAddictionInput>;
556
560
  export declare const EmergencyAlertUncheckedCreateNestedManyWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedCreateNestedManyWithoutAddictionInput>;
557
561
  export declare const BoolFieldUpdateOperationsInputSchema: z.ZodType<Prisma.BoolFieldUpdateOperationsInput>;
558
562
  export declare const UserUpdateOneRequiredWithoutAddictionsNestedInputSchema: z.ZodType<Prisma.UserUpdateOneRequiredWithoutAddictionsNestedInput>;
559
- export declare const StreakUpdateOneWithoutAddictionNestedInputSchema: z.ZodType<Prisma.StreakUpdateOneWithoutAddictionNestedInput>;
563
+ export declare const StreakUpdateManyWithoutAddictionNestedInputSchema: z.ZodType<Prisma.StreakUpdateManyWithoutAddictionNestedInput>;
560
564
  export declare const EmergencyAlertUpdateManyWithoutAddictionNestedInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateManyWithoutAddictionNestedInput>;
561
- export declare const StreakUncheckedUpdateOneWithoutAddictionNestedInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateOneWithoutAddictionNestedInput>;
565
+ export declare const StreakUncheckedUpdateManyWithoutAddictionNestedInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateManyWithoutAddictionNestedInput>;
562
566
  export declare const EmergencyAlertUncheckedUpdateManyWithoutAddictionNestedInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedUpdateManyWithoutAddictionNestedInput>;
563
567
  export declare const UserCreateNestedOneWithoutSponsorships_as_sponsorInputSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutSponsorships_as_sponsorInput>;
564
568
  export declare const UserCreateNestedOneWithoutSponsorships_as_addictInputSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutSponsorships_as_addictInput>;
565
- export declare const NullableDateTimeFieldUpdateOperationsInputSchema: z.ZodType<Prisma.NullableDateTimeFieldUpdateOperationsInput>;
566
- export declare const UserUpdateOneWithoutSponsorships_as_sponsorNestedInputSchema: z.ZodType<Prisma.UserUpdateOneWithoutSponsorships_as_sponsorNestedInput>;
567
- export declare const UserUpdateOneWithoutSponsorships_as_addictNestedInputSchema: z.ZodType<Prisma.UserUpdateOneWithoutSponsorships_as_addictNestedInput>;
569
+ export declare const UserUpdateOneRequiredWithoutSponsorships_as_sponsorNestedInputSchema: z.ZodType<Prisma.UserUpdateOneRequiredWithoutSponsorships_as_sponsorNestedInput>;
570
+ export declare const UserUpdateOneRequiredWithoutSponsorships_as_addictNestedInputSchema: z.ZodType<Prisma.UserUpdateOneRequiredWithoutSponsorships_as_addictNestedInput>;
568
571
  export declare const UserCreateNestedOneWithoutDaily_logsInputSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutDaily_logsInput>;
569
572
  export declare const CravingLevelCreateNestedOneWithoutDaily_logsInputSchema: z.ZodType<Prisma.CravingLevelCreateNestedOneWithoutDaily_logsInput>;
570
573
  export declare const EmotionalStateCreateNestedOneWithoutDaily_logsInputSchema: z.ZodType<Prisma.EmotionalStateCreateNestedOneWithoutDaily_logsInput>;
571
574
  export declare const UserUpdateOneRequiredWithoutDaily_logsNestedInputSchema: z.ZodType<Prisma.UserUpdateOneRequiredWithoutDaily_logsNestedInput>;
572
- export declare const CravingLevelUpdateOneWithoutDaily_logsNestedInputSchema: z.ZodType<Prisma.CravingLevelUpdateOneWithoutDaily_logsNestedInput>;
573
- export declare const EmotionalStateUpdateOneWithoutDaily_logsNestedInputSchema: z.ZodType<Prisma.EmotionalStateUpdateOneWithoutDaily_logsNestedInput>;
575
+ export declare const CravingLevelUpdateOneRequiredWithoutDaily_logsNestedInputSchema: z.ZodType<Prisma.CravingLevelUpdateOneRequiredWithoutDaily_logsNestedInput>;
576
+ export declare const EmotionalStateUpdateOneRequiredWithoutDaily_logsNestedInputSchema: z.ZodType<Prisma.EmotionalStateUpdateOneRequiredWithoutDaily_logsNestedInput>;
574
577
  export declare const StreakCreateNestedOneWithoutEventsInputSchema: z.ZodType<Prisma.StreakCreateNestedOneWithoutEventsInput>;
575
578
  export declare const LogAbsenceCreateNestedManyWithoutStreak_eventInputSchema: z.ZodType<Prisma.LogAbsenceCreateNestedManyWithoutStreak_eventInput>;
576
579
  export declare const LogAbsenceUncheckedCreateNestedManyWithoutStreak_eventInputSchema: z.ZodType<Prisma.LogAbsenceUncheckedCreateNestedManyWithoutStreak_eventInput>;
577
- export declare const NullableIntFieldUpdateOperationsInputSchema: z.ZodType<Prisma.NullableIntFieldUpdateOperationsInput>;
578
- export declare const NullableDecimalFieldUpdateOperationsInputSchema: z.ZodType<Prisma.NullableDecimalFieldUpdateOperationsInput>;
580
+ export declare const DecimalFieldUpdateOperationsInputSchema: z.ZodType<Prisma.DecimalFieldUpdateOperationsInput>;
579
581
  export declare const StreakUpdateOneRequiredWithoutEventsNestedInputSchema: z.ZodType<Prisma.StreakUpdateOneRequiredWithoutEventsNestedInput>;
580
582
  export declare const LogAbsenceUpdateManyWithoutStreak_eventNestedInputSchema: z.ZodType<Prisma.LogAbsenceUpdateManyWithoutStreak_eventNestedInput>;
581
583
  export declare const LogAbsenceUncheckedUpdateManyWithoutStreak_eventNestedInputSchema: z.ZodType<Prisma.LogAbsenceUncheckedUpdateManyWithoutStreak_eventNestedInput>;
582
584
  export declare const UserCreateNestedOneWithoutAbsencesInputSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutAbsencesInput>;
583
585
  export declare const StreakEventCreateNestedOneWithoutAbsencesInputSchema: z.ZodType<Prisma.StreakEventCreateNestedOneWithoutAbsencesInput>;
584
586
  export declare const UserUpdateOneRequiredWithoutAbsencesNestedInputSchema: z.ZodType<Prisma.UserUpdateOneRequiredWithoutAbsencesNestedInput>;
585
- export declare const StreakEventUpdateOneWithoutAbsencesNestedInputSchema: z.ZodType<Prisma.StreakEventUpdateOneWithoutAbsencesNestedInput>;
587
+ export declare const StreakEventUpdateOneRequiredWithoutAbsencesNestedInputSchema: z.ZodType<Prisma.StreakEventUpdateOneRequiredWithoutAbsencesNestedInput>;
586
588
  export declare const UserCreateNestedOneWithoutContactsInputSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutContactsInput>;
587
589
  export declare const UserUpdateOneRequiredWithoutContactsNestedInputSchema: z.ZodType<Prisma.UserUpdateOneRequiredWithoutContactsNestedInput>;
588
590
  export declare const UserCreateNestedOneWithoutAlertsInputSchema: z.ZodType<Prisma.UserCreateNestedOneWithoutAlertsInput>;
@@ -599,29 +601,23 @@ export declare const StreakEventUpdateManyWithoutStreakNestedInputSchema: z.ZodT
599
601
  export declare const StreakEventUncheckedUpdateManyWithoutStreakNestedInputSchema: z.ZodType<Prisma.StreakEventUncheckedUpdateManyWithoutStreakNestedInput>;
600
602
  export declare const NestedUuidFilterSchema: z.ZodType<Prisma.NestedUuidFilter>;
601
603
  export declare const NestedStringFilterSchema: z.ZodType<Prisma.NestedStringFilter>;
602
- export declare const NestedStringNullableFilterSchema: z.ZodType<Prisma.NestedStringNullableFilter>;
604
+ export declare const NestedEnumUserRoleFilterSchema: z.ZodType<Prisma.NestedEnumUserRoleFilter>;
603
605
  export declare const NestedDateTimeFilterSchema: z.ZodType<Prisma.NestedDateTimeFilter>;
604
606
  export declare const NestedUuidWithAggregatesFilterSchema: z.ZodType<Prisma.NestedUuidWithAggregatesFilter>;
605
607
  export declare const NestedIntFilterSchema: z.ZodType<Prisma.NestedIntFilter>;
606
608
  export declare const NestedStringWithAggregatesFilterSchema: z.ZodType<Prisma.NestedStringWithAggregatesFilter>;
607
- export declare const NestedStringNullableWithAggregatesFilterSchema: z.ZodType<Prisma.NestedStringNullableWithAggregatesFilter>;
608
- export declare const NestedIntNullableFilterSchema: z.ZodType<Prisma.NestedIntNullableFilter>;
609
+ export declare const NestedEnumUserRoleWithAggregatesFilterSchema: z.ZodType<Prisma.NestedEnumUserRoleWithAggregatesFilter>;
609
610
  export declare const NestedDateTimeWithAggregatesFilterSchema: z.ZodType<Prisma.NestedDateTimeWithAggregatesFilter>;
610
611
  export declare const NestedIntWithAggregatesFilterSchema: z.ZodType<Prisma.NestedIntWithAggregatesFilter>;
611
612
  export declare const NestedFloatFilterSchema: z.ZodType<Prisma.NestedFloatFilter>;
612
613
  export declare const NestedBoolFilterSchema: z.ZodType<Prisma.NestedBoolFilter>;
613
614
  export declare const NestedBoolWithAggregatesFilterSchema: z.ZodType<Prisma.NestedBoolWithAggregatesFilter>;
614
- export declare const NestedUuidNullableFilterSchema: z.ZodType<Prisma.NestedUuidNullableFilter>;
615
- export declare const NestedDateTimeNullableFilterSchema: z.ZodType<Prisma.NestedDateTimeNullableFilter>;
616
- export declare const NestedUuidNullableWithAggregatesFilterSchema: z.ZodType<Prisma.NestedUuidNullableWithAggregatesFilter>;
617
- export declare const NestedDateTimeNullableWithAggregatesFilterSchema: z.ZodType<Prisma.NestedDateTimeNullableWithAggregatesFilter>;
618
- export declare const NestedDecimalNullableFilterSchema: z.ZodType<Prisma.NestedDecimalNullableFilter>;
619
- export declare const NestedIntNullableWithAggregatesFilterSchema: z.ZodType<Prisma.NestedIntNullableWithAggregatesFilter>;
620
- export declare const NestedFloatNullableFilterSchema: z.ZodType<Prisma.NestedFloatNullableFilter>;
621
- export declare const NestedDecimalNullableWithAggregatesFilterSchema: z.ZodType<Prisma.NestedDecimalNullableWithAggregatesFilter>;
615
+ export declare const NestedDecimalFilterSchema: z.ZodType<Prisma.NestedDecimalFilter>;
616
+ export declare const NestedDecimalWithAggregatesFilterSchema: z.ZodType<Prisma.NestedDecimalWithAggregatesFilter>;
622
617
  export declare const UserAddictionCreateWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionCreateWithoutUserInput>;
623
618
  export declare const UserAddictionUncheckedCreateWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUncheckedCreateWithoutUserInput>;
624
619
  export declare const UserAddictionCreateOrConnectWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionCreateOrConnectWithoutUserInput>;
620
+ export declare const UserAddictionCreateManyUserInputEnvelopeSchema: z.ZodType<Prisma.UserAddictionCreateManyUserInputEnvelope>;
625
621
  export declare const DailyLogCreateWithoutUserInputSchema: z.ZodType<Prisma.DailyLogCreateWithoutUserInput>;
626
622
  export declare const DailyLogUncheckedCreateWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUncheckedCreateWithoutUserInput>;
627
623
  export declare const DailyLogCreateOrConnectWithoutUserInputSchema: z.ZodType<Prisma.DailyLogCreateOrConnectWithoutUserInput>;
@@ -645,14 +641,15 @@ export declare const EmergencyAlertCreateManyUserInputEnvelopeSchema: z.ZodType<
645
641
  export declare const StreakCreateWithoutUserInputSchema: z.ZodType<Prisma.StreakCreateWithoutUserInput>;
646
642
  export declare const StreakUncheckedCreateWithoutUserInputSchema: z.ZodType<Prisma.StreakUncheckedCreateWithoutUserInput>;
647
643
  export declare const StreakCreateOrConnectWithoutUserInputSchema: z.ZodType<Prisma.StreakCreateOrConnectWithoutUserInput>;
644
+ export declare const StreakCreateManyUserInputEnvelopeSchema: z.ZodType<Prisma.StreakCreateManyUserInputEnvelope>;
648
645
  export declare const LogAbsenceCreateWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceCreateWithoutUserInput>;
649
646
  export declare const LogAbsenceUncheckedCreateWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUncheckedCreateWithoutUserInput>;
650
647
  export declare const LogAbsenceCreateOrConnectWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceCreateOrConnectWithoutUserInput>;
651
648
  export declare const LogAbsenceCreateManyUserInputEnvelopeSchema: z.ZodType<Prisma.LogAbsenceCreateManyUserInputEnvelope>;
652
- export declare const UserAddictionUpsertWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUpsertWithoutUserInput>;
653
- export declare const UserAddictionUpdateToOneWithWhereWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUpdateToOneWithWhereWithoutUserInput>;
654
- export declare const UserAddictionUpdateWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUpdateWithoutUserInput>;
655
- export declare const UserAddictionUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUncheckedUpdateWithoutUserInput>;
649
+ export declare const UserAddictionUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUpsertWithWhereUniqueWithoutUserInput>;
650
+ export declare const UserAddictionUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUpdateWithWhereUniqueWithoutUserInput>;
651
+ export declare const UserAddictionUpdateManyWithWhereWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUpdateManyWithWhereWithoutUserInput>;
652
+ export declare const UserAddictionScalarWhereInputSchema: z.ZodType<Prisma.UserAddictionScalarWhereInput>;
656
653
  export declare const DailyLogUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUpsertWithWhereUniqueWithoutUserInput>;
657
654
  export declare const DailyLogUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUpdateWithWhereUniqueWithoutUserInput>;
658
655
  export declare const DailyLogUpdateManyWithWhereWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUpdateManyWithWhereWithoutUserInput>;
@@ -672,10 +669,10 @@ export declare const EmergencyAlertUpsertWithWhereUniqueWithoutUserInputSchema:
672
669
  export declare const EmergencyAlertUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateWithWhereUniqueWithoutUserInput>;
673
670
  export declare const EmergencyAlertUpdateManyWithWhereWithoutUserInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateManyWithWhereWithoutUserInput>;
674
671
  export declare const EmergencyAlertScalarWhereInputSchema: z.ZodType<Prisma.EmergencyAlertScalarWhereInput>;
675
- export declare const StreakUpsertWithoutUserInputSchema: z.ZodType<Prisma.StreakUpsertWithoutUserInput>;
676
- export declare const StreakUpdateToOneWithWhereWithoutUserInputSchema: z.ZodType<Prisma.StreakUpdateToOneWithWhereWithoutUserInput>;
677
- export declare const StreakUpdateWithoutUserInputSchema: z.ZodType<Prisma.StreakUpdateWithoutUserInput>;
678
- export declare const StreakUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateWithoutUserInput>;
672
+ export declare const StreakUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.StreakUpsertWithWhereUniqueWithoutUserInput>;
673
+ export declare const StreakUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.StreakUpdateWithWhereUniqueWithoutUserInput>;
674
+ export declare const StreakUpdateManyWithWhereWithoutUserInputSchema: z.ZodType<Prisma.StreakUpdateManyWithWhereWithoutUserInput>;
675
+ export declare const StreakScalarWhereInputSchema: z.ZodType<Prisma.StreakScalarWhereInput>;
679
676
  export declare const LogAbsenceUpsertWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUpsertWithWhereUniqueWithoutUserInput>;
680
677
  export declare const LogAbsenceUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUpdateWithWhereUniqueWithoutUserInput>;
681
678
  export declare const LogAbsenceUpdateManyWithWhereWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUpdateManyWithWhereWithoutUserInput>;
@@ -700,6 +697,7 @@ export declare const UserCreateOrConnectWithoutAddictionsInputSchema: z.ZodType<
700
697
  export declare const StreakCreateWithoutAddictionInputSchema: z.ZodType<Prisma.StreakCreateWithoutAddictionInput>;
701
698
  export declare const StreakUncheckedCreateWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUncheckedCreateWithoutAddictionInput>;
702
699
  export declare const StreakCreateOrConnectWithoutAddictionInputSchema: z.ZodType<Prisma.StreakCreateOrConnectWithoutAddictionInput>;
700
+ export declare const StreakCreateManyAddictionInputEnvelopeSchema: z.ZodType<Prisma.StreakCreateManyAddictionInputEnvelope>;
703
701
  export declare const EmergencyAlertCreateWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertCreateWithoutAddictionInput>;
704
702
  export declare const EmergencyAlertUncheckedCreateWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedCreateWithoutAddictionInput>;
705
703
  export declare const EmergencyAlertCreateOrConnectWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertCreateOrConnectWithoutAddictionInput>;
@@ -708,10 +706,9 @@ export declare const UserUpsertWithoutAddictionsInputSchema: z.ZodType<Prisma.Us
708
706
  export declare const UserUpdateToOneWithWhereWithoutAddictionsInputSchema: z.ZodType<Prisma.UserUpdateToOneWithWhereWithoutAddictionsInput>;
709
707
  export declare const UserUpdateWithoutAddictionsInputSchema: z.ZodType<Prisma.UserUpdateWithoutAddictionsInput>;
710
708
  export declare const UserUncheckedUpdateWithoutAddictionsInputSchema: z.ZodType<Prisma.UserUncheckedUpdateWithoutAddictionsInput>;
711
- export declare const StreakUpsertWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUpsertWithoutAddictionInput>;
712
- export declare const StreakUpdateToOneWithWhereWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUpdateToOneWithWhereWithoutAddictionInput>;
713
- export declare const StreakUpdateWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUpdateWithoutAddictionInput>;
714
- export declare const StreakUncheckedUpdateWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateWithoutAddictionInput>;
709
+ export declare const StreakUpsertWithWhereUniqueWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUpsertWithWhereUniqueWithoutAddictionInput>;
710
+ export declare const StreakUpdateWithWhereUniqueWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUpdateWithWhereUniqueWithoutAddictionInput>;
711
+ export declare const StreakUpdateManyWithWhereWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUpdateManyWithWhereWithoutAddictionInput>;
715
712
  export declare const EmergencyAlertUpsertWithWhereUniqueWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUpsertWithWhereUniqueWithoutAddictionInput>;
716
713
  export declare const EmergencyAlertUpdateWithWhereUniqueWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateWithWhereUniqueWithoutAddictionInput>;
717
714
  export declare const EmergencyAlertUpdateManyWithWhereWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateManyWithWhereWithoutAddictionInput>;
@@ -821,12 +818,17 @@ export declare const StreakEventUpsertWithWhereUniqueWithoutStreakInputSchema: z
821
818
  export declare const StreakEventUpdateWithWhereUniqueWithoutStreakInputSchema: z.ZodType<Prisma.StreakEventUpdateWithWhereUniqueWithoutStreakInput>;
822
819
  export declare const StreakEventUpdateManyWithWhereWithoutStreakInputSchema: z.ZodType<Prisma.StreakEventUpdateManyWithWhereWithoutStreakInput>;
823
820
  export declare const StreakEventScalarWhereInputSchema: z.ZodType<Prisma.StreakEventScalarWhereInput>;
821
+ export declare const UserAddictionCreateManyUserInputSchema: z.ZodType<Prisma.UserAddictionCreateManyUserInput>;
824
822
  export declare const DailyLogCreateManyUserInputSchema: z.ZodType<Prisma.DailyLogCreateManyUserInput>;
825
823
  export declare const SponsorshipCreateManySponsorInputSchema: z.ZodType<Prisma.SponsorshipCreateManySponsorInput>;
826
824
  export declare const SponsorshipCreateManyAddictInputSchema: z.ZodType<Prisma.SponsorshipCreateManyAddictInput>;
827
825
  export declare const SupportContactCreateManyUserInputSchema: z.ZodType<Prisma.SupportContactCreateManyUserInput>;
828
826
  export declare const EmergencyAlertCreateManyUserInputSchema: z.ZodType<Prisma.EmergencyAlertCreateManyUserInput>;
827
+ export declare const StreakCreateManyUserInputSchema: z.ZodType<Prisma.StreakCreateManyUserInput>;
829
828
  export declare const LogAbsenceCreateManyUserInputSchema: z.ZodType<Prisma.LogAbsenceCreateManyUserInput>;
829
+ export declare const UserAddictionUpdateWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUpdateWithoutUserInput>;
830
+ export declare const UserAddictionUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUncheckedUpdateWithoutUserInput>;
831
+ export declare const UserAddictionUncheckedUpdateManyWithoutUserInputSchema: z.ZodType<Prisma.UserAddictionUncheckedUpdateManyWithoutUserInput>;
830
832
  export declare const DailyLogUpdateWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUpdateWithoutUserInput>;
831
833
  export declare const DailyLogUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUncheckedUpdateWithoutUserInput>;
832
834
  export declare const DailyLogUncheckedUpdateManyWithoutUserInputSchema: z.ZodType<Prisma.DailyLogUncheckedUpdateManyWithoutUserInput>;
@@ -842,6 +844,9 @@ export declare const SupportContactUncheckedUpdateManyWithoutUserInputSchema: z.
842
844
  export declare const EmergencyAlertUpdateWithoutUserInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateWithoutUserInput>;
843
845
  export declare const EmergencyAlertUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedUpdateWithoutUserInput>;
844
846
  export declare const EmergencyAlertUncheckedUpdateManyWithoutUserInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedUpdateManyWithoutUserInput>;
847
+ export declare const StreakUpdateWithoutUserInputSchema: z.ZodType<Prisma.StreakUpdateWithoutUserInput>;
848
+ export declare const StreakUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateWithoutUserInput>;
849
+ export declare const StreakUncheckedUpdateManyWithoutUserInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateManyWithoutUserInput>;
845
850
  export declare const LogAbsenceUpdateWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUpdateWithoutUserInput>;
846
851
  export declare const LogAbsenceUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUncheckedUpdateWithoutUserInput>;
847
852
  export declare const LogAbsenceUncheckedUpdateManyWithoutUserInputSchema: z.ZodType<Prisma.LogAbsenceUncheckedUpdateManyWithoutUserInput>;
@@ -853,7 +858,11 @@ export declare const DailyLogCreateManyEmotional_stateInputSchema: z.ZodType<Pri
853
858
  export declare const DailyLogUpdateWithoutEmotional_stateInputSchema: z.ZodType<Prisma.DailyLogUpdateWithoutEmotional_stateInput>;
854
859
  export declare const DailyLogUncheckedUpdateWithoutEmotional_stateInputSchema: z.ZodType<Prisma.DailyLogUncheckedUpdateWithoutEmotional_stateInput>;
855
860
  export declare const DailyLogUncheckedUpdateManyWithoutEmotional_stateInputSchema: z.ZodType<Prisma.DailyLogUncheckedUpdateManyWithoutEmotional_stateInput>;
861
+ export declare const StreakCreateManyAddictionInputSchema: z.ZodType<Prisma.StreakCreateManyAddictionInput>;
856
862
  export declare const EmergencyAlertCreateManyAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertCreateManyAddictionInput>;
863
+ export declare const StreakUpdateWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUpdateWithoutAddictionInput>;
864
+ export declare const StreakUncheckedUpdateWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateWithoutAddictionInput>;
865
+ export declare const StreakUncheckedUpdateManyWithoutAddictionInputSchema: z.ZodType<Prisma.StreakUncheckedUpdateManyWithoutAddictionInput>;
857
866
  export declare const EmergencyAlertUpdateWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUpdateWithoutAddictionInput>;
858
867
  export declare const EmergencyAlertUncheckedUpdateWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedUpdateWithoutAddictionInput>;
859
868
  export declare const EmergencyAlertUncheckedUpdateManyWithoutAddictionInputSchema: z.ZodType<Prisma.EmergencyAlertUncheckedUpdateManyWithoutAddictionInput>;