expo-backend-types 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +12 -21
- package/src/auth/dto/login.dto.ts +22 -0
- package/src/auth/dto/register.dto.ts +16 -0
- package/src/cuenta/dto/cuenta.dto.ts +28 -0
- package/{dist/types/dto.d.ts → types/dto.ts} +1 -1
- package/types/index.d.ts +2 -0
- package/types/prisma-schema/default.d.ts +1 -0
- package/types/prisma-schema/default.js +1 -0
- package/types/prisma-schema/edge.d.ts +1 -0
- package/types/prisma-schema/edge.js +306 -0
- package/types/prisma-schema/index-browser.js +298 -0
- package/types/prisma-schema/index.d.ts +16638 -0
- package/types/prisma-schema/index.js +327 -0
- package/types/prisma-schema/package.json +84 -0
- package/types/prisma-schema/query_engine-windows.dll.node +0 -0
- package/types/prisma-schema/runtime/edge-esm.js +28 -0
- package/types/prisma-schema/runtime/edge.js +28 -0
- package/types/prisma-schema/runtime/index-browser.d.ts +365 -0
- package/types/prisma-schema/runtime/index-browser.js +13 -0
- package/types/prisma-schema/runtime/library.d.ts +3193 -0
- package/types/prisma-schema/runtime/library.js +140 -0
- package/types/prisma-schema/runtime/react-native.js +77 -0
- package/types/prisma-schema/runtime/wasm.js +29 -0
- package/types/prisma-schema/schema.prisma +170 -0
- package/types/prisma-schema/wasm.d.ts +1 -0
- package/types/prisma-schema/wasm.js +298 -0
- package/{dist/types → types}/schema.d.ts +15 -0
- package/dist/src/auth/dto/login.dto.d.ts +0 -170
- package/dist/src/auth/dto/login.dto.js +0 -29
- package/dist/src/auth/dto/login.dto.js.map +0 -1
- package/dist/src/auth/dto/register.dto.d.ts +0 -73
- package/dist/src/auth/dto/register.dto.js +0 -20
- package/dist/src/auth/dto/register.dto.js.map +0 -1
- package/dist/src/auth/exports.d.ts +0 -2
- package/dist/src/auth/exports.js +0 -19
- package/dist/src/auth/exports.js.map +0 -1
- package/dist/src/cuenta/dto/cuenta.dto.d.ts +0 -60
- package/dist/src/cuenta/dto/cuenta.dto.js +0 -31
- package/dist/src/cuenta/dto/cuenta.dto.js.map +0 -1
- package/dist/src/cuenta/exports.d.ts +0 -1
- package/dist/src/cuenta/exports.js +0 -18
- package/dist/src/cuenta/exports.js.map +0 -1
- package/dist/src/exports.d.ts +0 -2
- package/dist/src/exports.js +0 -19
- package/dist/src/exports.js.map +0 -1
- package/dist/types/dto.js +0 -18
- package/dist/types/dto.js.map +0 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -19
- package/dist/types/index.js.map +0 -1
- package/dist/types/schema.js +0 -3
- package/dist/types/schema.js.map +0 -1
- package/tsconfig.json +0 -27
package/package.json
CHANGED
@@ -1,26 +1,22 @@
|
|
1
1
|
{
|
2
2
|
"name": "expo-backend-types",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.41",
|
4
4
|
"description": "",
|
5
5
|
"author": "Expo",
|
6
6
|
"private": false,
|
7
7
|
"license": "UNLICENSED",
|
8
8
|
"files": [
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"dist/src/**/*.dto.*",
|
12
|
-
"dist/src/**/exports.*"
|
9
|
+
"types",
|
10
|
+
"src/**/*.dto.ts"
|
13
11
|
],
|
14
|
-
"engines": {
|
15
|
-
"node": ">=14.17.0"
|
16
|
-
},
|
17
12
|
"scripts": {
|
18
|
-
"ci": "
|
13
|
+
"ci": "npm run build && npm run generate-ts-schema && npm run format && npm run lint && npm run check-exports",
|
19
14
|
"build": "nest build",
|
20
15
|
"format": "prettier --write \"src/**/*.ts\"",
|
21
16
|
"check-format": "prettier --check \"src/**/*.ts\"",
|
22
|
-
"check-exports": "attw --
|
17
|
+
"check-exports": "attw --pack .",
|
23
18
|
"local-release": "changeset version && changeset publish",
|
19
|
+
"commit-schema": "git add ./types/schema.d.ts swagger.yaml && git commit -m \"Update schema\"",
|
24
20
|
"start": "nest start",
|
25
21
|
"dev": "nest start --watch",
|
26
22
|
"start:debug": "nest start --debug --watch",
|
@@ -31,7 +27,7 @@
|
|
31
27
|
"test:cov": "jest --coverage",
|
32
28
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
33
29
|
"test:e2e": "jest --config ./test/jest-e2e.json",
|
34
|
-
"generate-ts-schema": "node ./dist/src/main.swagger.js && openapi-typescript ./swagger.yaml -o ./types/schema.ts",
|
30
|
+
"generate-ts-schema": "node ./dist/src/main.swagger.js && openapi-typescript ./swagger.yaml -o ./types/schema.d.ts",
|
35
31
|
"prepare": "husky",
|
36
32
|
"prepublishOnly": "npm run ci"
|
37
33
|
},
|
@@ -85,18 +81,13 @@
|
|
85
81
|
"tsconfig-paths": "^4.2.0",
|
86
82
|
"typescript": "^5.4.5"
|
87
83
|
},
|
88
|
-
"main": "
|
84
|
+
"main": "types/index.d.ts",
|
89
85
|
"exports": {
|
90
86
|
".": {
|
91
|
-
"import": "./
|
92
|
-
"require": "./
|
93
|
-
"default": "./
|
94
|
-
"types": "./
|
95
|
-
},
|
96
|
-
"./dto": {
|
97
|
-
"import": "./dist/types/dto.js",
|
98
|
-
"default": "./dist/types/dto.js",
|
99
|
-
"types": "./dist/types/dto.d.ts"
|
87
|
+
"import": "./types/index.d.ts",
|
88
|
+
"require": "./types/index.d.ts",
|
89
|
+
"default": "./types/index.d.ts",
|
90
|
+
"types": "./types/index.d.ts"
|
100
91
|
}
|
101
92
|
},
|
102
93
|
"lint-staged": {
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { createZodDto } from '@anatine/zod-nestjs';
|
2
|
+
import { cuentaSchema } from 'src/cuenta/dto/cuenta.dto';
|
3
|
+
import z from 'zod';
|
4
|
+
|
5
|
+
export const loginSchema = cuentaSchema.pick({
|
6
|
+
username: true,
|
7
|
+
password: true,
|
8
|
+
});
|
9
|
+
|
10
|
+
export class LoginDto extends createZodDto(loginSchema) {}
|
11
|
+
|
12
|
+
export const loginResponseSchema = z.object({
|
13
|
+
user: cuentaSchema.omit({
|
14
|
+
password: true,
|
15
|
+
}),
|
16
|
+
backendTokens: z.object({
|
17
|
+
accessToken: z.string(),
|
18
|
+
refreshToken: z.string(),
|
19
|
+
}),
|
20
|
+
});
|
21
|
+
|
22
|
+
export class LoginResponseDto extends createZodDto(loginResponseSchema) {}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { createZodDto } from '@anatine/zod-nestjs';
|
2
|
+
import { cuentaSchema } from 'src/cuenta/dto/cuenta.dto';
|
3
|
+
|
4
|
+
export const registerSchema = cuentaSchema.pick({
|
5
|
+
username: true,
|
6
|
+
password: true,
|
7
|
+
isAdmin: true,
|
8
|
+
});
|
9
|
+
|
10
|
+
export class RegisterDto extends createZodDto(registerSchema) {}
|
11
|
+
|
12
|
+
export const registerResponseSchema = registerSchema.omit({
|
13
|
+
password: true,
|
14
|
+
});
|
15
|
+
|
16
|
+
export class RegisterResponseDto extends createZodDto(registerResponseSchema) {}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { createZodDto } from '@anatine/zod-nestjs';
|
2
|
+
import { z } from 'zod';
|
3
|
+
|
4
|
+
export const cuentaSchema = z.object({
|
5
|
+
id: z
|
6
|
+
.string({
|
7
|
+
required_error: 'El id es requerido',
|
8
|
+
})
|
9
|
+
.uuid({
|
10
|
+
message: 'El id debe ser un UUID',
|
11
|
+
}),
|
12
|
+
username: z.string({
|
13
|
+
required_error: 'El nombre de usuario es requerido',
|
14
|
+
}),
|
15
|
+
password: z
|
16
|
+
.string({
|
17
|
+
required_error: 'La contraseña es requerida',
|
18
|
+
})
|
19
|
+
.min(6, 'La contraseña debe tener al menos 6 caracteres'),
|
20
|
+
isAdmin: z.boolean().default(false),
|
21
|
+
created_at: z.string().datetime(),
|
22
|
+
updated_at: z.string().datetime(),
|
23
|
+
// filtroBase: z.array(EtiquetaSchema),
|
24
|
+
filtroBaseActivo: z.boolean().default(false),
|
25
|
+
fcmToken: z.array(z.string()).default([]),
|
26
|
+
});
|
27
|
+
|
28
|
+
export class CuentaDto extends createZodDto(cuentaSchema) {}
|
@@ -1 +1 @@
|
|
1
|
-
export * from '../src/exports';
|
1
|
+
export * from '../src/exports';
|
package/types/index.d.ts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from './index'
|
@@ -0,0 +1 @@
|
|
1
|
+
module.exports = { ...require('.') }
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './default'
|
@@ -0,0 +1,306 @@
|
|
1
|
+
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
|
4
|
+
const {
|
5
|
+
PrismaClientKnownRequestError,
|
6
|
+
PrismaClientUnknownRequestError,
|
7
|
+
PrismaClientRustPanicError,
|
8
|
+
PrismaClientInitializationError,
|
9
|
+
PrismaClientValidationError,
|
10
|
+
NotFoundError,
|
11
|
+
getPrismaClient,
|
12
|
+
sqltag,
|
13
|
+
empty,
|
14
|
+
join,
|
15
|
+
raw,
|
16
|
+
Decimal,
|
17
|
+
Debug,
|
18
|
+
objectEnumValues,
|
19
|
+
makeStrictEnum,
|
20
|
+
Extensions,
|
21
|
+
warnOnce,
|
22
|
+
defineDmmfProperty,
|
23
|
+
Public,
|
24
|
+
getRuntime
|
25
|
+
} = require('./runtime/edge.js')
|
26
|
+
|
27
|
+
|
28
|
+
const Prisma = {}
|
29
|
+
|
30
|
+
exports.Prisma = Prisma
|
31
|
+
exports.$Enums = {}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Prisma Client JS version: 5.14.0
|
35
|
+
* Query Engine version: e9771e62de70f79a5e1c604a2d7c8e2a0a874b48
|
36
|
+
*/
|
37
|
+
Prisma.prismaVersion = {
|
38
|
+
client: "5.14.0",
|
39
|
+
engine: "e9771e62de70f79a5e1c604a2d7c8e2a0a874b48"
|
40
|
+
}
|
41
|
+
|
42
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
43
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
44
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
45
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
46
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
47
|
+
Prisma.NotFoundError = NotFoundError
|
48
|
+
Prisma.Decimal = Decimal
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Re-export of sql-template-tag
|
52
|
+
*/
|
53
|
+
Prisma.sql = sqltag
|
54
|
+
Prisma.empty = empty
|
55
|
+
Prisma.join = join
|
56
|
+
Prisma.raw = raw
|
57
|
+
Prisma.validator = Public.validator
|
58
|
+
|
59
|
+
/**
|
60
|
+
* Extensions
|
61
|
+
*/
|
62
|
+
Prisma.getExtensionContext = Extensions.getExtensionContext
|
63
|
+
Prisma.defineExtension = Extensions.defineExtension
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Shorthand utilities for JSON filtering
|
67
|
+
*/
|
68
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
69
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
70
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
71
|
+
|
72
|
+
Prisma.NullTypes = {
|
73
|
+
DbNull: objectEnumValues.classes.DbNull,
|
74
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
75
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
76
|
+
}
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Enums
|
82
|
+
*/
|
83
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
84
|
+
ReadUncommitted: 'ReadUncommitted',
|
85
|
+
ReadCommitted: 'ReadCommitted',
|
86
|
+
RepeatableRead: 'RepeatableRead',
|
87
|
+
Serializable: 'Serializable'
|
88
|
+
});
|
89
|
+
|
90
|
+
exports.Prisma.CuentaScalarFieldEnum = {
|
91
|
+
id: 'id',
|
92
|
+
nombreUsuario: 'nombreUsuario',
|
93
|
+
contrasena: 'contrasena',
|
94
|
+
esAdmin: 'esAdmin',
|
95
|
+
created_at: 'created_at',
|
96
|
+
updated_at: 'updated_at',
|
97
|
+
filtroBaseActivo: 'filtroBaseActivo',
|
98
|
+
fcmToken: 'fcmToken'
|
99
|
+
};
|
100
|
+
|
101
|
+
exports.Prisma.PerfilScalarFieldEnum = {
|
102
|
+
id: 'id',
|
103
|
+
idLegible: 'idLegible',
|
104
|
+
telefono: 'telefono',
|
105
|
+
nombreCompleto: 'nombreCompleto',
|
106
|
+
nombrePila: 'nombrePila',
|
107
|
+
genero: 'genero',
|
108
|
+
fechaNacimiento: 'fechaNacimiento',
|
109
|
+
fotoUrl: 'fotoUrl',
|
110
|
+
instagram: 'instagram',
|
111
|
+
mail: 'mail',
|
112
|
+
dni: 'dni',
|
113
|
+
nombresAlternativos: 'nombresAlternativos',
|
114
|
+
esPapelera: 'esPapelera',
|
115
|
+
fechaPapelera: 'fechaPapelera',
|
116
|
+
created_at: 'created_at',
|
117
|
+
updated_at: 'updated_at'
|
118
|
+
};
|
119
|
+
|
120
|
+
exports.Prisma.ComentarioScalarFieldEnum = {
|
121
|
+
id: 'id',
|
122
|
+
contenido: 'contenido',
|
123
|
+
creadoPor: 'creadoPor',
|
124
|
+
perfilId: 'perfilId',
|
125
|
+
created_at: 'created_at',
|
126
|
+
updated_at: 'updated_at'
|
127
|
+
};
|
128
|
+
|
129
|
+
exports.Prisma.EtiquetaScalarFieldEnum = {
|
130
|
+
id: 'id',
|
131
|
+
nombre: 'nombre',
|
132
|
+
grupoId: 'grupoId',
|
133
|
+
tipo: 'tipo',
|
134
|
+
created_at: 'created_at',
|
135
|
+
updated_at: 'updated_at'
|
136
|
+
};
|
137
|
+
|
138
|
+
exports.Prisma.EtiquetaGrupoScalarFieldEnum = {
|
139
|
+
id: 'id',
|
140
|
+
nombre: 'nombre',
|
141
|
+
color: 'color',
|
142
|
+
esExclusivo: 'esExclusivo',
|
143
|
+
created_at: 'created_at',
|
144
|
+
updated_at: 'updated_at'
|
145
|
+
};
|
146
|
+
|
147
|
+
exports.Prisma.EventoScalarFieldEnum = {
|
148
|
+
id: 'id',
|
149
|
+
nombre: 'nombre',
|
150
|
+
fecha: 'fecha',
|
151
|
+
ubicacion: 'ubicacion',
|
152
|
+
etiquetaAsistioId: 'etiquetaAsistioId',
|
153
|
+
etiquetaConfirmoId: 'etiquetaConfirmoId',
|
154
|
+
eventoPadreId: 'eventoPadreId',
|
155
|
+
created_at: 'created_at',
|
156
|
+
updated_at: 'updated_at'
|
157
|
+
};
|
158
|
+
|
159
|
+
exports.Prisma.MensajeScalarFieldEnum = {
|
160
|
+
id: 'id',
|
161
|
+
wamId: 'wamId',
|
162
|
+
message: 'message',
|
163
|
+
perfilTelefono: 'perfilTelefono',
|
164
|
+
status: 'status',
|
165
|
+
statusAt: 'statusAt',
|
166
|
+
visto: 'visto',
|
167
|
+
created_at: 'created_at',
|
168
|
+
updated_at: 'updated_at'
|
169
|
+
};
|
170
|
+
|
171
|
+
exports.Prisma.EnumsScalarFieldEnum = {
|
172
|
+
id: 'id',
|
173
|
+
EstadoPlantilla: 'EstadoPlantilla',
|
174
|
+
CategoriaPlantilla: 'CategoriaPlantilla'
|
175
|
+
};
|
176
|
+
|
177
|
+
exports.Prisma.SortOrder = {
|
178
|
+
asc: 'asc',
|
179
|
+
desc: 'desc'
|
180
|
+
};
|
181
|
+
|
182
|
+
exports.Prisma.JsonNullValueInput = {
|
183
|
+
JsonNull: Prisma.JsonNull
|
184
|
+
};
|
185
|
+
|
186
|
+
exports.Prisma.QueryMode = {
|
187
|
+
default: 'default',
|
188
|
+
insensitive: 'insensitive'
|
189
|
+
};
|
190
|
+
|
191
|
+
exports.Prisma.NullsOrder = {
|
192
|
+
first: 'first',
|
193
|
+
last: 'last'
|
194
|
+
};
|
195
|
+
|
196
|
+
exports.Prisma.JsonNullValueFilter = {
|
197
|
+
DbNull: Prisma.DbNull,
|
198
|
+
JsonNull: Prisma.JsonNull,
|
199
|
+
AnyNull: Prisma.AnyNull
|
200
|
+
};
|
201
|
+
exports.TipoEtiqueta = exports.$Enums.TipoEtiqueta = {
|
202
|
+
PERSONAL: 'PERSONAL',
|
203
|
+
EVENTO: 'EVENTO',
|
204
|
+
MODELO: 'MODELO',
|
205
|
+
TENTATIVA: 'TENTATIVA'
|
206
|
+
};
|
207
|
+
|
208
|
+
exports.MensajeStatus = exports.$Enums.MensajeStatus = {
|
209
|
+
ENVIADO: 'ENVIADO',
|
210
|
+
RECIBIDO: 'RECIBIDO',
|
211
|
+
LEIDO: 'LEIDO'
|
212
|
+
};
|
213
|
+
|
214
|
+
exports.EstadoPlantilla = exports.$Enums.EstadoPlantilla = {
|
215
|
+
APRROVED: 'APRROVED',
|
216
|
+
PENDING: 'PENDING',
|
217
|
+
REJECTED: 'REJECTED'
|
218
|
+
};
|
219
|
+
|
220
|
+
exports.CategoriaPlantilla = exports.$Enums.CategoriaPlantilla = {
|
221
|
+
MARKETING: 'MARKETING',
|
222
|
+
UTILITY: 'UTILITY',
|
223
|
+
AUTHENTICATION: 'AUTHENTICATION'
|
224
|
+
};
|
225
|
+
|
226
|
+
exports.Prisma.ModelName = {
|
227
|
+
Cuenta: 'Cuenta',
|
228
|
+
Perfil: 'Perfil',
|
229
|
+
Comentario: 'Comentario',
|
230
|
+
Etiqueta: 'Etiqueta',
|
231
|
+
EtiquetaGrupo: 'EtiquetaGrupo',
|
232
|
+
Evento: 'Evento',
|
233
|
+
Mensaje: 'Mensaje',
|
234
|
+
Enums: 'Enums'
|
235
|
+
};
|
236
|
+
/**
|
237
|
+
* Create the Client
|
238
|
+
*/
|
239
|
+
const config = {
|
240
|
+
"generator": {
|
241
|
+
"name": "client",
|
242
|
+
"provider": {
|
243
|
+
"fromEnvVar": null,
|
244
|
+
"value": "prisma-client-js"
|
245
|
+
},
|
246
|
+
"output": {
|
247
|
+
"value": "D:\\Documents D\\Laburitos\\ExpoArielito\\expo-backend\\types\\prisma-schema",
|
248
|
+
"fromEnvVar": null
|
249
|
+
},
|
250
|
+
"config": {
|
251
|
+
"engineType": "library"
|
252
|
+
},
|
253
|
+
"binaryTargets": [
|
254
|
+
{
|
255
|
+
"fromEnvVar": null,
|
256
|
+
"value": "windows",
|
257
|
+
"native": true
|
258
|
+
}
|
259
|
+
],
|
260
|
+
"previewFeatures": [],
|
261
|
+
"isCustomOutput": true
|
262
|
+
},
|
263
|
+
"relativeEnvPaths": {
|
264
|
+
"rootEnvPath": "../../.env",
|
265
|
+
"schemaEnvPath": "../../.env"
|
266
|
+
},
|
267
|
+
"relativePath": "../../prisma",
|
268
|
+
"clientVersion": "5.14.0",
|
269
|
+
"engineVersion": "e9771e62de70f79a5e1c604a2d7c8e2a0a874b48",
|
270
|
+
"datasourceNames": [
|
271
|
+
"db"
|
272
|
+
],
|
273
|
+
"activeProvider": "postgresql",
|
274
|
+
"postinstall": false,
|
275
|
+
"inlineDatasources": {
|
276
|
+
"db": {
|
277
|
+
"url": {
|
278
|
+
"fromEnvVar": "DATABASE_URL",
|
279
|
+
"value": null
|
280
|
+
}
|
281
|
+
}
|
282
|
+
},
|
283
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client-js\"\n output = \"../types/prisma-schema\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n relationMode = \"foreignKeys\"\n}\n\nmodel Cuenta {\n id String @id @default(uuid())\n nombreUsuario String @unique @map(\"nombre_usuario\")\n contrasena String\n esAdmin Boolean @default(false) @map(\"es_admin\")\n\n comentarios Comentario[]\n etiquetas Etiqueta[] @relation(\"CUENTA_X_ETIQUETA\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n filtroBase Etiqueta[] @relation(\"FILTRO_BASE_X_ETIQUETA\")\n filtroBaseActivo Boolean @default(false) @map(\"filtro_base_activo\")\n\n fcmToken String[] @map(\"fcm_token\")\n\n @@map(\"CUENTA\")\n}\n\nmodel Perfil {\n id String @id @default(uuid())\n idLegible Int @map(\"id_legible\")\n\n telefono String @unique\n nombreCompleto String @map(\"nombre_completo\")\n nombrePila String? @map(\"nombre_pila\")\n genero String?\n fechaNacimiento DateTime? @map(\"fecha_nacimiento\")\n fotoUrl String? @map(\"foto_url\")\n instagram String?\n mail String?\n dni String?\n nombresAlternativos String[] @map(\"nombres_alternativos\")\n\n comentarios Comentario[]\n mensajes Mensaje[] @relation(\"PERFIL_X_MENSAJE\")\n etiquetas Etiqueta[] @relation(\"PERFIL_X_ETIQUETA\")\n esPapelera Boolean @default(false)\n fechaPapelera DateTime? @map(\"fecha_papelera\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"PERFIL\")\n}\n\nmodel Comentario {\n id String @id @default(uuid())\n contenido String\n\n creadoPor String @map(\"creado_por\")\n cuenta Cuenta @relation(fields: [creadoPor], references: [id])\n perfilId String @map(\"perfil_id\")\n perfil Perfil @relation(fields: [perfilId], references: [id], onDelete: Cascade)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"COMENTARIO\")\n}\n\nmodel Etiqueta {\n id String @id @default(uuid())\n nombre String\n grupoId String @map(\"grupo_id\")\n tipo TipoEtiqueta @default(PERSONAL)\n grupo EtiquetaGrupo @relation(fields: [grupoId], references: [id], onDelete: Cascade)\n\n eventosAsistidos Evento[] @relation(\"EVENTOASISTIDO_X_ETIQUETA\")\n eventosConfirmados Evento[] @relation(\"EVENTOCONFIRMADO_X_ETIQUETA\")\n cuentas Cuenta[] @relation(\"CUENTA_X_ETIQUETA\")\n perfiles Perfil[] @relation(\"PERFIL_X_ETIQUETA\")\n cuentasFiltroBase Cuenta[] @relation(\"FILTRO_BASE_X_ETIQUETA\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"ETIQUETA\")\n}\n\nmodel EtiquetaGrupo {\n id String @id @default(uuid())\n nombre String\n color String\n esExclusivo Boolean @map(\"es_exclusivo\")\n etiquetas Etiqueta[]\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"GRUPO_ETIQUETA\")\n}\n\nmodel Evento {\n id String @id @default(uuid())\n nombre String\n fecha DateTime\n ubicacion String\n\n etiquetaAsistioId String @map(\"etiqueta_asistio\")\n etiquetaAsistio Etiqueta @relation(\"EVENTOASISTIDO_X_ETIQUETA\", fields: [etiquetaAsistioId], references: [id], onDelete: Cascade)\n etiquetaConfirmoId String @map(\"etiqueta_confirmo\")\n etiquetaConfirmo Etiqueta @relation(\"EVENTOCONFIRMADO_X_ETIQUETA\", fields: [etiquetaConfirmoId], references: [id], onDelete: Cascade)\n eventoPadreId String? @map(\"evento_padre\")\n eventoPadre Evento? @relation(\"SubEventos\", fields: [eventoPadreId], references: [id], onDelete: Cascade)\n subEventos Evento[] @relation(\"SubEventos\")\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"EVENTO\")\n}\n\nmodel Mensaje {\n id String @id @default(uuid())\n wamId String @unique @map(\"wam_id\")\n message Json\n perfilTelefono String @map(\"perfil_telefono\")\n perfil Perfil @relation(\"PERFIL_X_MENSAJE\", fields: [perfilTelefono], references: [telefono], onDelete: Cascade)\n status MensajeStatus @default(ENVIADO)\n statusAt DateTime? @map(\"status_at\")\n visto Boolean @default(false)\n\n created_at DateTime @default(now())\n updated_at DateTime @updatedAt\n\n @@map(\"MENSAJE\")\n}\n\nmodel Enums {\n id String @id\n EstadoPlantilla EstadoPlantilla\n CategoriaPlantilla CategoriaPlantilla\n}\n\nenum EstadoPlantilla {\n APRROVED\n PENDING\n REJECTED\n}\n\nenum CategoriaPlantilla {\n MARKETING\n UTILITY\n AUTHENTICATION\n}\n\nenum TipoEtiqueta {\n PERSONAL\n EVENTO\n MODELO\n TENTATIVA\n}\n\nenum MensajeStatus {\n ENVIADO\n RECIBIDO\n LEIDO\n}\n",
|
284
|
+
"inlineSchemaHash": "b5810cc88f96e7425668e1cad00a99accedb7d8814bdb5b1462a8c37c123ce0f",
|
285
|
+
"copyEngine": true
|
286
|
+
}
|
287
|
+
config.dirname = '/'
|
288
|
+
|
289
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"Cuenta\":{\"dbName\":\"CUENTA\",\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nombreUsuario\",\"dbName\":\"nombre_usuario\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"contrasena\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"esAdmin\",\"dbName\":\"es_admin\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"comentarios\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Comentario\",\"relationName\":\"ComentarioToCuenta\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"etiquetas\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Etiqueta\",\"relationName\":\"CUENTA_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"filtroBase\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Etiqueta\",\"relationName\":\"FILTRO_BASE_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"filtroBaseActivo\",\"dbName\":\"filtro_base_activo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fcmToken\",\"dbName\":\"fcm_token\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Perfil\":{\"dbName\":\"PERFIL\",\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"idLegible\",\"dbName\":\"id_legible\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"telefono\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nombreCompleto\",\"dbName\":\"nombre_completo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nombrePila\",\"dbName\":\"nombre_pila\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"genero\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fechaNacimiento\",\"dbName\":\"fecha_nacimiento\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fotoUrl\",\"dbName\":\"foto_url\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"instagram\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mail\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"dni\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nombresAlternativos\",\"dbName\":\"nombres_alternativos\",\"kind\":\"scalar\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"comentarios\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Comentario\",\"relationName\":\"ComentarioToPerfil\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"mensajes\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Mensaje\",\"relationName\":\"PERFIL_X_MENSAJE\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"etiquetas\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Etiqueta\",\"relationName\":\"PERFIL_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"esPapelera\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fechaPapelera\",\"dbName\":\"fecha_papelera\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Comentario\":{\"dbName\":\"COMENTARIO\",\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"contenido\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"creadoPor\",\"dbName\":\"creado_por\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cuenta\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Cuenta\",\"relationName\":\"ComentarioToCuenta\",\"relationFromFields\":[\"creadoPor\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"perfilId\",\"dbName\":\"perfil_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"perfil\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Perfil\",\"relationName\":\"ComentarioToPerfil\",\"relationFromFields\":[\"perfilId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Etiqueta\":{\"dbName\":\"ETIQUETA\",\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nombre\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"grupoId\",\"dbName\":\"grupo_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"tipo\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"TipoEtiqueta\",\"default\":\"PERSONAL\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"grupo\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EtiquetaGrupo\",\"relationName\":\"EtiquetaToEtiquetaGrupo\",\"relationFromFields\":[\"grupoId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventosAsistidos\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Evento\",\"relationName\":\"EVENTOASISTIDO_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventosConfirmados\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Evento\",\"relationName\":\"EVENTOCONFIRMADO_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cuentas\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Cuenta\",\"relationName\":\"CUENTA_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"perfiles\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Perfil\",\"relationName\":\"PERFIL_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"cuentasFiltroBase\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Cuenta\",\"relationName\":\"FILTRO_BASE_X_ETIQUETA\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"EtiquetaGrupo\":{\"dbName\":\"GRUPO_ETIQUETA\",\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nombre\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"color\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"esExclusivo\",\"dbName\":\"es_exclusivo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Boolean\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"etiquetas\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Etiqueta\",\"relationName\":\"EtiquetaToEtiquetaGrupo\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Evento\":{\"dbName\":\"EVENTO\",\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"nombre\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"fecha\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"ubicacion\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"etiquetaAsistioId\",\"dbName\":\"etiqueta_asistio\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"etiquetaAsistio\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Etiqueta\",\"relationName\":\"EVENTOASISTIDO_X_ETIQUETA\",\"relationFromFields\":[\"etiquetaAsistioId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"etiquetaConfirmoId\",\"dbName\":\"etiqueta_confirmo\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"etiquetaConfirmo\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Etiqueta\",\"relationName\":\"EVENTOCONFIRMADO_X_ETIQUETA\",\"relationFromFields\":[\"etiquetaConfirmoId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventoPadreId\",\"dbName\":\"evento_padre\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"eventoPadre\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Evento\",\"relationName\":\"SubEventos\",\"relationFromFields\":[\"eventoPadreId\"],\"relationToFields\":[\"id\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"subEventos\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Evento\",\"relationName\":\"SubEventos\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Mensaje\":{\"dbName\":\"MENSAJE\",\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"default\":{\"name\":\"uuid\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"wamId\",\"dbName\":\"wam_id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"message\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"perfilTelefono\",\"dbName\":\"perfil_telefono\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"perfil\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Perfil\",\"relationName\":\"PERFIL_X_MENSAJE\",\"relationFromFields\":[\"perfilTelefono\"],\"relationToFields\":[\"telefono\"],\"relationOnDelete\":\"Cascade\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"MensajeStatus\",\"default\":\"ENVIADO\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"statusAt\",\"dbName\":\"status_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"visto\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"Boolean\",\"default\":false,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"created_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updated_at\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"isGenerated\":false,\"isUpdatedAt\":true}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Enums\":{\"dbName\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"EstadoPlantilla\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"EstadoPlantilla\",\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"CategoriaPlantilla\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"CategoriaPlantilla\",\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{\"EstadoPlantilla\":{\"values\":[{\"name\":\"APRROVED\",\"dbName\":null},{\"name\":\"PENDING\",\"dbName\":null},{\"name\":\"REJECTED\",\"dbName\":null}],\"dbName\":null},\"CategoriaPlantilla\":{\"values\":[{\"name\":\"MARKETING\",\"dbName\":null},{\"name\":\"UTILITY\",\"dbName\":null},{\"name\":\"AUTHENTICATION\",\"dbName\":null}],\"dbName\":null},\"TipoEtiqueta\":{\"values\":[{\"name\":\"PERSONAL\",\"dbName\":null},{\"name\":\"EVENTO\",\"dbName\":null},{\"name\":\"MODELO\",\"dbName\":null},{\"name\":\"TENTATIVA\",\"dbName\":null}],\"dbName\":null},\"MensajeStatus\":{\"values\":[{\"name\":\"ENVIADO\",\"dbName\":null},{\"name\":\"RECIBIDO\",\"dbName\":null},{\"name\":\"LEIDO\",\"dbName\":null}],\"dbName\":null}},\"types\":{}}")
|
290
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
291
|
+
config.engineWasm = undefined
|
292
|
+
|
293
|
+
config.injectableEdgeEnv = () => ({
|
294
|
+
parsed: {
|
295
|
+
DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
|
296
|
+
}
|
297
|
+
})
|
298
|
+
|
299
|
+
if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
|
300
|
+
Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
|
301
|
+
}
|
302
|
+
|
303
|
+
const PrismaClient = getPrismaClient(config)
|
304
|
+
exports.PrismaClient = PrismaClient
|
305
|
+
Object.assign(exports, Prisma)
|
306
|
+
|