@pasosdejesus/m 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/CHANGELOG.md +85 -0
  2. package/dist/base-model/baseline.generated.d.ts +48 -0
  3. package/dist/base-model/baseline.generated.d.ts.map +1 -0
  4. package/dist/base-model/baseline.generated.js +930 -0
  5. package/dist/base-model/baseline.generated.js.map +1 -0
  6. package/dist/base-model/check.d.ts +6 -0
  7. package/dist/base-model/check.d.ts.map +1 -0
  8. package/dist/base-model/check.js +195 -0
  9. package/dist/base-model/check.js.map +1 -0
  10. package/dist/base-model/forward/baseline_1_0_0.d.ts +3 -0
  11. package/dist/base-model/forward/baseline_1_0_0.d.ts.map +1 -0
  12. package/dist/base-model/forward/baseline_1_0_0.js +23 -0
  13. package/dist/base-model/forward/baseline_1_0_0.js.map +1 -0
  14. package/dist/base-model/forward/index.d.ts +28 -0
  15. package/dist/base-model/forward/index.d.ts.map +1 -0
  16. package/dist/base-model/forward/index.js +126 -0
  17. package/dist/base-model/forward/index.js.map +1 -0
  18. package/dist/base-model/forward/index.test.d.ts +2 -0
  19. package/dist/base-model/forward/index.test.d.ts.map +1 -0
  20. package/dist/base-model/forward/index.test.js +65 -0
  21. package/dist/base-model/forward/index.test.js.map +1 -0
  22. package/dist/base-model/forward/policy.d.ts +16 -0
  23. package/dist/base-model/forward/policy.d.ts.map +1 -0
  24. package/dist/base-model/forward/policy.js +37 -0
  25. package/dist/base-model/forward/policy.js.map +1 -0
  26. package/dist/base-model/forward/policy.test.d.ts +2 -0
  27. package/dist/base-model/forward/policy.test.d.ts.map +1 -0
  28. package/dist/base-model/forward/policy.test.js +40 -0
  29. package/dist/base-model/forward/policy.test.js.map +1 -0
  30. package/dist/base-model/forward/types.d.ts +21 -0
  31. package/dist/base-model/forward/types.d.ts.map +1 -0
  32. package/dist/base-model/forward/types.js +2 -0
  33. package/dist/base-model/forward/types.js.map +1 -0
  34. package/dist/base-model/generate.d.ts +42 -0
  35. package/dist/base-model/generate.d.ts.map +1 -0
  36. package/dist/base-model/generate.js +241 -0
  37. package/dist/base-model/generate.js.map +1 -0
  38. package/dist/base-model/guidelines.d.ts +13 -0
  39. package/dist/base-model/guidelines.d.ts.map +1 -0
  40. package/dist/base-model/guidelines.js +61 -0
  41. package/dist/base-model/guidelines.js.map +1 -0
  42. package/dist/base-model/index.d.ts +24 -0
  43. package/dist/base-model/index.d.ts.map +1 -0
  44. package/dist/base-model/index.js +29 -0
  45. package/dist/base-model/index.js.map +1 -0
  46. package/dist/base-model/parse-structure.d.ts +4 -0
  47. package/dist/base-model/parse-structure.d.ts.map +1 -0
  48. package/dist/base-model/parse-structure.js +170 -0
  49. package/dist/base-model/parse-structure.js.map +1 -0
  50. package/dist/base-model/queries.d.ts +34 -0
  51. package/dist/base-model/queries.d.ts.map +1 -0
  52. package/dist/base-model/queries.js +118 -0
  53. package/dist/base-model/queries.js.map +1 -0
  54. package/dist/base-model/references/learn-tg.d.ts +21 -0
  55. package/dist/base-model/references/learn-tg.d.ts.map +1 -0
  56. package/dist/base-model/references/learn-tg.js +65 -0
  57. package/dist/base-model/references/learn-tg.js.map +1 -0
  58. package/dist/base-model/references/msip.d.ts +29 -0
  59. package/dist/base-model/references/msip.d.ts.map +1 -0
  60. package/dist/base-model/references/msip.js +33 -0
  61. package/dist/base-model/references/msip.js.map +1 -0
  62. package/dist/base-model/types.d.ts +207 -0
  63. package/dist/base-model/types.d.ts.map +1 -0
  64. package/dist/base-model/types.js +10 -0
  65. package/dist/base-model/types.js.map +1 -0
  66. package/dist/base-model/version.d.ts +19 -0
  67. package/dist/base-model/version.d.ts.map +1 -0
  68. package/dist/base-model/version.js +26 -0
  69. package/dist/base-model/version.js.map +1 -0
  70. package/dist/base-model/wallet-link.d.ts +69 -0
  71. package/dist/base-model/wallet-link.d.ts.map +1 -0
  72. package/dist/base-model/wallet-link.js +220 -0
  73. package/dist/base-model/wallet-link.js.map +1 -0
  74. package/dist/base-model/wallet-link.test.d.ts +2 -0
  75. package/dist/base-model/wallet-link.test.d.ts.map +1 -0
  76. package/dist/base-model/wallet-link.test.js +147 -0
  77. package/dist/base-model/wallet-link.test.js.map +1 -0
  78. package/dist/e2e/full-wallet.d.ts +19 -0
  79. package/dist/e2e/full-wallet.d.ts.map +1 -1
  80. package/dist/e2e/full-wallet.js +12 -4
  81. package/dist/e2e/full-wallet.js.map +1 -1
  82. package/dist/e2e/full-wallet.test.js +26 -0
  83. package/dist/e2e/full-wallet.test.js.map +1 -1
  84. package/dist/e2e/in-app-wallet.d.ts +23 -0
  85. package/dist/e2e/in-app-wallet.d.ts.map +1 -0
  86. package/dist/e2e/in-app-wallet.js +40 -0
  87. package/dist/e2e/in-app-wallet.js.map +1 -0
  88. package/dist/e2e/in-app-wallet.test.d.ts +2 -0
  89. package/dist/e2e/in-app-wallet.test.d.ts.map +1 -0
  90. package/dist/e2e/in-app-wallet.test.js +52 -0
  91. package/dist/e2e/in-app-wallet.test.js.map +1 -0
  92. package/dist/e2e/index.d.ts +5 -1
  93. package/dist/e2e/index.d.ts.map +1 -1
  94. package/dist/e2e/index.js +2 -0
  95. package/dist/e2e/index.js.map +1 -1
  96. package/dist/e2e/siwe-optional.test.d.ts +2 -0
  97. package/dist/e2e/siwe-optional.test.d.ts.map +1 -0
  98. package/dist/e2e/siwe-optional.test.js +13 -0
  99. package/dist/e2e/siwe-optional.test.js.map +1 -0
  100. package/dist/e2e/siwe.d.ts.map +1 -1
  101. package/dist/e2e/siwe.js +1 -3
  102. package/dist/e2e/siwe.js.map +1 -1
  103. package/dist/e2e/warmup.d.ts +38 -0
  104. package/dist/e2e/warmup.d.ts.map +1 -0
  105. package/dist/e2e/warmup.js +84 -0
  106. package/dist/e2e/warmup.js.map +1 -0
  107. package/dist/e2e/warmup.test.d.ts +2 -0
  108. package/dist/e2e/warmup.test.d.ts.map +1 -0
  109. package/dist/e2e/warmup.test.js +67 -0
  110. package/dist/e2e/warmup.test.js.map +1 -0
  111. package/dist/i18n/locales/cli.d.ts.map +1 -1
  112. package/dist/i18n/locales/cli.js +10 -0
  113. package/dist/i18n/locales/cli.js.map +1 -1
  114. package/dist/m.js +14 -1
  115. package/dist/m.js.map +1 -1
  116. package/dist/tasks/base-model.d.ts +5 -0
  117. package/dist/tasks/base-model.d.ts.map +1 -0
  118. package/dist/tasks/base-model.js +310 -0
  119. package/dist/tasks/base-model.js.map +1 -0
  120. package/dist/tasks/db.d.ts.map +1 -1
  121. package/dist/tasks/db.js +27 -0
  122. package/dist/tasks/db.js.map +1 -1
  123. package/dist/tasks/warmup.d.ts +4 -0
  124. package/dist/tasks/warmup.d.ts.map +1 -0
  125. package/dist/tasks/warmup.js +67 -0
  126. package/dist/tasks/warmup.js.map +1 -0
  127. package/dist/tasks/warmup.test.d.ts +2 -0
  128. package/dist/tasks/warmup.test.d.ts.map +1 -0
  129. package/dist/tasks/warmup.test.js +40 -0
  130. package/dist/tasks/warmup.test.js.map +1 -0
  131. package/dist/templates/apps/nextjs/package.json.hbs +1 -1
  132. package/dist/test-utils/console.d.ts +37 -0
  133. package/dist/test-utils/console.d.ts.map +1 -0
  134. package/dist/test-utils/console.js +65 -0
  135. package/dist/test-utils/console.js.map +1 -0
  136. package/dist/test-utils/console.test.d.ts +2 -0
  137. package/dist/test-utils/console.test.d.ts.map +1 -0
  138. package/dist/test-utils/console.test.js +70 -0
  139. package/dist/test-utils/console.test.js.map +1 -0
  140. package/dist/test-utils/index.d.ts +1 -0
  141. package/dist/test-utils/index.d.ts.map +1 -1
  142. package/dist/test-utils/index.js +1 -0
  143. package/dist/test-utils/index.js.map +1 -1
  144. package/dist/test-utils/kysely-mocks.d.ts +244 -103
  145. package/dist/test-utils/kysely-mocks.d.ts.map +1 -1
  146. package/dist/test-utils/kysely-mocks.js +161 -18
  147. package/dist/test-utils/kysely-mocks.js.map +1 -1
  148. package/dist/test-utils/kysely-mocks.test.d.ts +2 -0
  149. package/dist/test-utils/kysely-mocks.test.d.ts.map +1 -0
  150. package/dist/test-utils/kysely-mocks.test.js +110 -0
  151. package/dist/test-utils/kysely-mocks.test.js.map +1 -0
  152. package/package.json +5 -1
  153. package/src/e2e/README.md +42 -0
  154. package/src/tasks/README.md +1 -0
  155. package/src/test-utils/README.md +28 -0
@@ -0,0 +1,930 @@
1
+ export const BASELINE_GENERATED_MANIFEST = {
2
+ "version": "1.0.0",
3
+ "reference": {
4
+ "source": "/var/www/adJ-ia/msip-2.2/test/dummy/db/structure.sql",
5
+ "sha256": "020e05eed2c281787ffd6f75b282b87c0768a976b0ceac447354ad50d56734cf"
6
+ },
7
+ "additions": "built-in msip additions (references/msip.ts)",
8
+ "tables": {
9
+ "usuario": {
10
+ "columns": 25,
11
+ "constraints": 3,
12
+ "extensions": 0
13
+ },
14
+ "msip_pais": {
15
+ "columns": 27,
16
+ "constraints": 2,
17
+ "extensions": 0
18
+ },
19
+ "msip_departamento": {
20
+ "columns": 23,
21
+ "constraints": 7,
22
+ "extensions": 0
23
+ },
24
+ "msip_municipio": {
25
+ "columns": 22,
26
+ "constraints": 6,
27
+ "extensions": 0
28
+ },
29
+ "msip_centropoblado": {
30
+ "columns": 21,
31
+ "constraints": 6,
32
+ "extensions": 0
33
+ }
34
+ },
35
+ "externalConstraints": [
36
+ {
37
+ "table": "msip_centropoblado",
38
+ "name": "msip_centropoblado_id_tcentropoblado_fkey",
39
+ "references": "msip_tcentropoblado(id)"
40
+ },
41
+ {
42
+ "table": "usuario",
43
+ "name": "fk_rails_cc636858ad",
44
+ "references": "msip_tema(id)"
45
+ }
46
+ ]
47
+ };
48
+ export const BASELINE_INVENTORY = {
49
+ "version": "1.0.0",
50
+ "tables": {
51
+ "usuario": {
52
+ "columns": {
53
+ "nusuario": {
54
+ "name": "nusuario",
55
+ "type": "character varying(15)",
56
+ "notNull": true
57
+ },
58
+ "password": {
59
+ "name": "password",
60
+ "type": "character varying(64)",
61
+ "notNull": true,
62
+ "default": "''::character varying"
63
+ },
64
+ "descripcion": {
65
+ "name": "descripcion",
66
+ "type": "character varying(50)",
67
+ "notNull": false
68
+ },
69
+ "rol": {
70
+ "name": "rol",
71
+ "type": "integer",
72
+ "notNull": false,
73
+ "default": "4"
74
+ },
75
+ "idioma": {
76
+ "name": "idioma",
77
+ "type": "character varying(6)",
78
+ "notNull": true,
79
+ "default": "'es_CO'::character varying"
80
+ },
81
+ "id": {
82
+ "name": "id",
83
+ "type": "integer",
84
+ "notNull": true,
85
+ "default": "nextval('public.usuario_id_seq'::regclass)"
86
+ },
87
+ "fechacreacion": {
88
+ "name": "fechacreacion",
89
+ "type": "date",
90
+ "notNull": true,
91
+ "default": "('now'::text)::date"
92
+ },
93
+ "fechadeshabilitacion": {
94
+ "name": "fechadeshabilitacion",
95
+ "type": "date",
96
+ "notNull": false
97
+ },
98
+ "email": {
99
+ "name": "email",
100
+ "type": "character varying(255)",
101
+ "notNull": true,
102
+ "default": "''::character varying"
103
+ },
104
+ "encrypted_password": {
105
+ "name": "encrypted_password",
106
+ "type": "character varying(255)",
107
+ "notNull": true,
108
+ "default": "''::character varying"
109
+ },
110
+ "sign_in_count": {
111
+ "name": "sign_in_count",
112
+ "type": "integer",
113
+ "notNull": true,
114
+ "default": "0"
115
+ },
116
+ "failed_attempts": {
117
+ "name": "failed_attempts",
118
+ "type": "integer",
119
+ "notNull": false
120
+ },
121
+ "unlock_token": {
122
+ "name": "unlock_token",
123
+ "type": "character varying(64)",
124
+ "notNull": false
125
+ },
126
+ "locked_at": {
127
+ "name": "locked_at",
128
+ "type": "timestamp without time zone",
129
+ "notNull": false
130
+ },
131
+ "reset_password_token": {
132
+ "name": "reset_password_token",
133
+ "type": "character varying(255)",
134
+ "notNull": false
135
+ },
136
+ "reset_password_sent_at": {
137
+ "name": "reset_password_sent_at",
138
+ "type": "timestamp without time zone",
139
+ "notNull": false
140
+ },
141
+ "remember_created_at": {
142
+ "name": "remember_created_at",
143
+ "type": "timestamp without time zone",
144
+ "notNull": false
145
+ },
146
+ "current_sign_in_at": {
147
+ "name": "current_sign_in_at",
148
+ "type": "timestamp without time zone",
149
+ "notNull": false
150
+ },
151
+ "last_sign_in_at": {
152
+ "name": "last_sign_in_at",
153
+ "type": "timestamp without time zone",
154
+ "notNull": false
155
+ },
156
+ "current_sign_in_ip": {
157
+ "name": "current_sign_in_ip",
158
+ "type": "character varying(255)",
159
+ "notNull": false
160
+ },
161
+ "last_sign_in_ip": {
162
+ "name": "last_sign_in_ip",
163
+ "type": "character varying(255)",
164
+ "notNull": false
165
+ },
166
+ "created_at": {
167
+ "name": "created_at",
168
+ "type": "timestamp without time zone",
169
+ "notNull": false
170
+ },
171
+ "updated_at": {
172
+ "name": "updated_at",
173
+ "type": "timestamp without time zone",
174
+ "notNull": false
175
+ },
176
+ "nombre": {
177
+ "name": "nombre",
178
+ "type": "character varying(50)",
179
+ "notNull": false
180
+ },
181
+ "tema_id": {
182
+ "name": "tema_id",
183
+ "type": "integer",
184
+ "notNull": false
185
+ }
186
+ },
187
+ "constraints": [
188
+ {
189
+ "name": "usuario_check",
190
+ "kind": "check",
191
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
192
+ "columns": [
193
+ "(fechadeshabilitacion"
194
+ ]
195
+ },
196
+ {
197
+ "name": "usuario_rol_check",
198
+ "kind": "check",
199
+ "definition": "CHECK ((rol >= 1))",
200
+ "columns": [
201
+ "(rol"
202
+ ]
203
+ },
204
+ {
205
+ "name": "usuario_pkey",
206
+ "kind": "primary-key",
207
+ "definition": "PRIMARY KEY (id)",
208
+ "columns": [
209
+ "id"
210
+ ]
211
+ }
212
+ ]
213
+ },
214
+ "msip_pais": {
215
+ "columns": {
216
+ "id": {
217
+ "name": "id",
218
+ "type": "integer",
219
+ "notNull": true,
220
+ "default": "nextval('public.msip_pais_id_seq'::regclass)"
221
+ },
222
+ "nombre": {
223
+ "name": "nombre",
224
+ "type": "character varying(200)",
225
+ "notNull": false
226
+ },
227
+ "nombreiso_espanol": {
228
+ "name": "nombreiso_espanol",
229
+ "type": "character varying(200)",
230
+ "notNull": false
231
+ },
232
+ "latitud": {
233
+ "name": "latitud",
234
+ "type": "double precision",
235
+ "notNull": false
236
+ },
237
+ "longitud": {
238
+ "name": "longitud",
239
+ "type": "double precision",
240
+ "notNull": false
241
+ },
242
+ "alfa2": {
243
+ "name": "alfa2",
244
+ "type": "character varying(2)",
245
+ "notNull": false
246
+ },
247
+ "alfa3": {
248
+ "name": "alfa3",
249
+ "type": "character varying(3)",
250
+ "notNull": false
251
+ },
252
+ "codiso": {
253
+ "name": "codiso",
254
+ "type": "integer",
255
+ "notNull": false
256
+ },
257
+ "div1": {
258
+ "name": "div1",
259
+ "type": "character varying(100)",
260
+ "notNull": false
261
+ },
262
+ "div2": {
263
+ "name": "div2",
264
+ "type": "character varying(100)",
265
+ "notNull": false
266
+ },
267
+ "div3": {
268
+ "name": "div3",
269
+ "type": "character varying(100)",
270
+ "notNull": false
271
+ },
272
+ "fechacreacion": {
273
+ "name": "fechacreacion",
274
+ "type": "date",
275
+ "notNull": false
276
+ },
277
+ "fechadeshabilitacion": {
278
+ "name": "fechadeshabilitacion",
279
+ "type": "date",
280
+ "notNull": false
281
+ },
282
+ "created_at": {
283
+ "name": "created_at",
284
+ "type": "timestamp without time zone",
285
+ "notNull": false
286
+ },
287
+ "updated_at": {
288
+ "name": "updated_at",
289
+ "type": "timestamp without time zone",
290
+ "notNull": false
291
+ },
292
+ "observaciones": {
293
+ "name": "observaciones",
294
+ "type": "character varying(5000)",
295
+ "notNull": false
296
+ },
297
+ "nombreiso_ingles": {
298
+ "name": "nombreiso_ingles",
299
+ "type": "character varying(512)",
300
+ "notNull": false
301
+ },
302
+ "nombreiso_frances": {
303
+ "name": "nombreiso_frances",
304
+ "type": "character varying(512)",
305
+ "notNull": false
306
+ },
307
+ "ultvigenciaini": {
308
+ "name": "ultvigenciaini",
309
+ "type": "date",
310
+ "notNull": false
311
+ },
312
+ "ultvigenciafin": {
313
+ "name": "ultvigenciafin",
314
+ "type": "date",
315
+ "notNull": false
316
+ },
317
+ "svgruta": {
318
+ "name": "svgruta",
319
+ "type": "character varying",
320
+ "notNull": false
321
+ },
322
+ "svgcdx": {
323
+ "name": "svgcdx",
324
+ "type": "integer",
325
+ "notNull": false
326
+ },
327
+ "svgcdy": {
328
+ "name": "svgcdy",
329
+ "type": "integer",
330
+ "notNull": false
331
+ },
332
+ "svgcdancho": {
333
+ "name": "svgcdancho",
334
+ "type": "integer",
335
+ "notNull": false
336
+ },
337
+ "svgcdalto": {
338
+ "name": "svgcdalto",
339
+ "type": "integer",
340
+ "notNull": false
341
+ },
342
+ "svgrotx": {
343
+ "name": "svgrotx",
344
+ "type": "double precision",
345
+ "notNull": false
346
+ },
347
+ "svgroty": {
348
+ "name": "svgroty",
349
+ "type": "double precision",
350
+ "notNull": false
351
+ }
352
+ },
353
+ "constraints": [
354
+ {
355
+ "name": "msip_pais_codiso_unico",
356
+ "kind": "unique",
357
+ "definition": "UNIQUE (codiso)",
358
+ "columns": [
359
+ "codiso"
360
+ ]
361
+ },
362
+ {
363
+ "name": "pais_pkey",
364
+ "kind": "primary-key",
365
+ "definition": "PRIMARY KEY (id)",
366
+ "columns": [
367
+ "id"
368
+ ]
369
+ }
370
+ ]
371
+ },
372
+ "msip_departamento": {
373
+ "columns": {
374
+ "id": {
375
+ "name": "id",
376
+ "type": "integer",
377
+ "notNull": true,
378
+ "default": "nextval('public.msip_departamento_id_seq'::regclass)"
379
+ },
380
+ "nombre": {
381
+ "name": "nombre",
382
+ "type": "character varying(500)",
383
+ "notNull": true
384
+ },
385
+ "pais_id": {
386
+ "name": "pais_id",
387
+ "type": "integer",
388
+ "notNull": true
389
+ },
390
+ "deplocal_cod": {
391
+ "name": "deplocal_cod",
392
+ "type": "integer",
393
+ "notNull": false
394
+ },
395
+ "latitud": {
396
+ "name": "latitud",
397
+ "type": "double precision",
398
+ "notNull": false
399
+ },
400
+ "longitud": {
401
+ "name": "longitud",
402
+ "type": "double precision",
403
+ "notNull": false
404
+ },
405
+ "fechacreacion": {
406
+ "name": "fechacreacion",
407
+ "type": "date",
408
+ "notNull": true,
409
+ "default": "('now'::text)::date"
410
+ },
411
+ "fechadeshabilitacion": {
412
+ "name": "fechadeshabilitacion",
413
+ "type": "date",
414
+ "notNull": false
415
+ },
416
+ "created_at": {
417
+ "name": "created_at",
418
+ "type": "timestamp without time zone",
419
+ "notNull": false
420
+ },
421
+ "updated_at": {
422
+ "name": "updated_at",
423
+ "type": "timestamp without time zone",
424
+ "notNull": false
425
+ },
426
+ "observaciones": {
427
+ "name": "observaciones",
428
+ "type": "character varying(5000)",
429
+ "notNull": false
430
+ },
431
+ "codiso": {
432
+ "name": "codiso",
433
+ "type": "character varying(6)",
434
+ "notNull": false
435
+ },
436
+ "catiso": {
437
+ "name": "catiso",
438
+ "type": "character varying(64)",
439
+ "notNull": false
440
+ },
441
+ "codreg": {
442
+ "name": "codreg",
443
+ "type": "integer",
444
+ "notNull": false
445
+ },
446
+ "ultvigenciaini": {
447
+ "name": "ultvigenciaini",
448
+ "type": "date",
449
+ "notNull": false
450
+ },
451
+ "ultvigenciafin": {
452
+ "name": "ultvigenciafin",
453
+ "type": "date",
454
+ "notNull": false
455
+ },
456
+ "svgruta": {
457
+ "name": "svgruta",
458
+ "type": "character varying",
459
+ "notNull": false
460
+ },
461
+ "svgcdx": {
462
+ "name": "svgcdx",
463
+ "type": "integer",
464
+ "notNull": false
465
+ },
466
+ "svgcdy": {
467
+ "name": "svgcdy",
468
+ "type": "integer",
469
+ "notNull": false
470
+ },
471
+ "svgcdancho": {
472
+ "name": "svgcdancho",
473
+ "type": "integer",
474
+ "notNull": false
475
+ },
476
+ "svgcdalto": {
477
+ "name": "svgcdalto",
478
+ "type": "integer",
479
+ "notNull": false
480
+ },
481
+ "svgrotx": {
482
+ "name": "svgrotx",
483
+ "type": "double precision",
484
+ "notNull": false
485
+ },
486
+ "svgroty": {
487
+ "name": "svgroty",
488
+ "type": "double precision",
489
+ "notNull": false
490
+ }
491
+ },
492
+ "constraints": [
493
+ {
494
+ "name": "departamento_check",
495
+ "kind": "check",
496
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
497
+ "columns": [
498
+ "(fechadeshabilitacion"
499
+ ]
500
+ },
501
+ {
502
+ "name": "msip_departamento_id_key",
503
+ "kind": "unique",
504
+ "definition": "UNIQUE (id)",
505
+ "columns": [
506
+ "id"
507
+ ]
508
+ },
509
+ {
510
+ "name": "msip_departamento_id_pais_id_deplocal_unico",
511
+ "kind": "unique",
512
+ "definition": "UNIQUE (pais_id, deplocal_cod)",
513
+ "columns": [
514
+ "pais_id",
515
+ "deplocal_cod"
516
+ ]
517
+ },
518
+ {
519
+ "name": "msip_departamento_pais_id_id_unico",
520
+ "kind": "unique",
521
+ "definition": "UNIQUE (pais_id, id)",
522
+ "columns": [
523
+ "pais_id",
524
+ "id"
525
+ ]
526
+ },
527
+ {
528
+ "name": "msip_departamento_pkey",
529
+ "kind": "primary-key",
530
+ "definition": "PRIMARY KEY (id)",
531
+ "columns": [
532
+ "id"
533
+ ]
534
+ },
535
+ {
536
+ "name": "departamento_id_pais_fkey",
537
+ "kind": "foreign-key",
538
+ "definition": "FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id)",
539
+ "columns": [
540
+ "pais_id"
541
+ ],
542
+ "references": {
543
+ "table": "msip_pais",
544
+ "columns": [
545
+ "id"
546
+ ]
547
+ }
548
+ },
549
+ {
550
+ "name": "fk_rails_92093de1a1",
551
+ "kind": "foreign-key",
552
+ "definition": "FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id)",
553
+ "columns": [
554
+ "pais_id"
555
+ ],
556
+ "references": {
557
+ "table": "msip_pais",
558
+ "columns": [
559
+ "id"
560
+ ]
561
+ }
562
+ }
563
+ ]
564
+ },
565
+ "msip_municipio": {
566
+ "columns": {
567
+ "id": {
568
+ "name": "id",
569
+ "type": "integer",
570
+ "notNull": true,
571
+ "default": "nextval('public.msip_municipio_id_seq'::regclass)"
572
+ },
573
+ "nombre": {
574
+ "name": "nombre",
575
+ "type": "character varying(500)",
576
+ "notNull": true
577
+ },
578
+ "departamento_id": {
579
+ "name": "departamento_id",
580
+ "type": "integer",
581
+ "notNull": true
582
+ },
583
+ "munlocal_cod": {
584
+ "name": "munlocal_cod",
585
+ "type": "integer",
586
+ "notNull": false
587
+ },
588
+ "latitud": {
589
+ "name": "latitud",
590
+ "type": "double precision",
591
+ "notNull": false
592
+ },
593
+ "longitud": {
594
+ "name": "longitud",
595
+ "type": "double precision",
596
+ "notNull": false
597
+ },
598
+ "fechacreacion": {
599
+ "name": "fechacreacion",
600
+ "type": "date",
601
+ "notNull": true,
602
+ "default": "('now'::text)::date"
603
+ },
604
+ "fechadeshabilitacion": {
605
+ "name": "fechadeshabilitacion",
606
+ "type": "date",
607
+ "notNull": false
608
+ },
609
+ "created_at": {
610
+ "name": "created_at",
611
+ "type": "timestamp without time zone",
612
+ "notNull": false
613
+ },
614
+ "updated_at": {
615
+ "name": "updated_at",
616
+ "type": "timestamp without time zone",
617
+ "notNull": false
618
+ },
619
+ "observaciones": {
620
+ "name": "observaciones",
621
+ "type": "character varying(5000)",
622
+ "notNull": false
623
+ },
624
+ "codreg": {
625
+ "name": "codreg",
626
+ "type": "integer",
627
+ "notNull": false
628
+ },
629
+ "ultvigenciaini": {
630
+ "name": "ultvigenciaini",
631
+ "type": "date",
632
+ "notNull": false
633
+ },
634
+ "ultvigenciafin": {
635
+ "name": "ultvigenciafin",
636
+ "type": "date",
637
+ "notNull": false
638
+ },
639
+ "tipomun": {
640
+ "name": "tipomun",
641
+ "type": "character varying(32)",
642
+ "notNull": false
643
+ },
644
+ "svgruta": {
645
+ "name": "svgruta",
646
+ "type": "character varying",
647
+ "notNull": false
648
+ },
649
+ "svgcdx": {
650
+ "name": "svgcdx",
651
+ "type": "integer",
652
+ "notNull": false
653
+ },
654
+ "svgcdy": {
655
+ "name": "svgcdy",
656
+ "type": "integer",
657
+ "notNull": false
658
+ },
659
+ "svgcdancho": {
660
+ "name": "svgcdancho",
661
+ "type": "integer",
662
+ "notNull": false
663
+ },
664
+ "svgcdalto": {
665
+ "name": "svgcdalto",
666
+ "type": "integer",
667
+ "notNull": false
668
+ },
669
+ "svgrotx": {
670
+ "name": "svgrotx",
671
+ "type": "double precision",
672
+ "notNull": false
673
+ },
674
+ "svgroty": {
675
+ "name": "svgroty",
676
+ "type": "double precision",
677
+ "notNull": false
678
+ }
679
+ },
680
+ "constraints": [
681
+ {
682
+ "name": "municipio_check",
683
+ "kind": "check",
684
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
685
+ "columns": [
686
+ "(fechadeshabilitacion"
687
+ ]
688
+ },
689
+ {
690
+ "name": "msip_municipio_departamento_id_id_unico",
691
+ "kind": "unique",
692
+ "definition": "UNIQUE (departamento_id, id)",
693
+ "columns": [
694
+ "departamento_id",
695
+ "id"
696
+ ]
697
+ },
698
+ {
699
+ "name": "msip_municipio_id_departamento_id_munlocal_unico",
700
+ "kind": "unique",
701
+ "definition": "UNIQUE (departamento_id, munlocal_cod)",
702
+ "columns": [
703
+ "departamento_id",
704
+ "munlocal_cod"
705
+ ]
706
+ },
707
+ {
708
+ "name": "municipio_pkey",
709
+ "kind": "primary-key",
710
+ "definition": "PRIMARY KEY (id)",
711
+ "columns": [
712
+ "id"
713
+ ]
714
+ },
715
+ {
716
+ "name": "fk_rails_089870a38d",
717
+ "kind": "foreign-key",
718
+ "definition": "FOREIGN KEY (departamento_id) REFERENCES public.msip_departamento(id)",
719
+ "columns": [
720
+ "departamento_id"
721
+ ],
722
+ "references": {
723
+ "table": "msip_departamento",
724
+ "columns": [
725
+ "id"
726
+ ]
727
+ }
728
+ },
729
+ {
730
+ "name": "msip_municipio_id_departamento_fkey",
731
+ "kind": "foreign-key",
732
+ "definition": "FOREIGN KEY (departamento_id) REFERENCES public.msip_departamento(id)",
733
+ "columns": [
734
+ "departamento_id"
735
+ ],
736
+ "references": {
737
+ "table": "msip_departamento",
738
+ "columns": [
739
+ "id"
740
+ ]
741
+ }
742
+ }
743
+ ]
744
+ },
745
+ "msip_centropoblado": {
746
+ "columns": {
747
+ "id": {
748
+ "name": "id",
749
+ "type": "integer",
750
+ "notNull": true,
751
+ "default": "nextval('public.msip_centropoblado_id_seq'::regclass)"
752
+ },
753
+ "nombre": {
754
+ "name": "nombre",
755
+ "type": "character varying(500)",
756
+ "notNull": true
757
+ },
758
+ "municipio_id": {
759
+ "name": "municipio_id",
760
+ "type": "integer",
761
+ "notNull": true
762
+ },
763
+ "cplocal_cod": {
764
+ "name": "cplocal_cod",
765
+ "type": "integer",
766
+ "notNull": false
767
+ },
768
+ "tcentropoblado_id": {
769
+ "name": "tcentropoblado_id",
770
+ "type": "character varying(10)",
771
+ "notNull": true,
772
+ "default": "'CP'::character varying"
773
+ },
774
+ "latitud": {
775
+ "name": "latitud",
776
+ "type": "double precision",
777
+ "notNull": false
778
+ },
779
+ "longitud": {
780
+ "name": "longitud",
781
+ "type": "double precision",
782
+ "notNull": false
783
+ },
784
+ "fechacreacion": {
785
+ "name": "fechacreacion",
786
+ "type": "date",
787
+ "notNull": true
788
+ },
789
+ "fechadeshabilitacion": {
790
+ "name": "fechadeshabilitacion",
791
+ "type": "date",
792
+ "notNull": false
793
+ },
794
+ "created_at": {
795
+ "name": "created_at",
796
+ "type": "timestamp without time zone",
797
+ "notNull": false
798
+ },
799
+ "updated_at": {
800
+ "name": "updated_at",
801
+ "type": "timestamp without time zone",
802
+ "notNull": false
803
+ },
804
+ "observaciones": {
805
+ "name": "observaciones",
806
+ "type": "character varying(5000)",
807
+ "notNull": false
808
+ },
809
+ "ultvigenciaini": {
810
+ "name": "ultvigenciaini",
811
+ "type": "date",
812
+ "notNull": false
813
+ },
814
+ "ultvigenciafin": {
815
+ "name": "ultvigenciafin",
816
+ "type": "date",
817
+ "notNull": false
818
+ },
819
+ "svgruta": {
820
+ "name": "svgruta",
821
+ "type": "character varying",
822
+ "notNull": false
823
+ },
824
+ "svgcdx": {
825
+ "name": "svgcdx",
826
+ "type": "integer",
827
+ "notNull": false
828
+ },
829
+ "svgcdy": {
830
+ "name": "svgcdy",
831
+ "type": "integer",
832
+ "notNull": false
833
+ },
834
+ "svgcdancho": {
835
+ "name": "svgcdancho",
836
+ "type": "integer",
837
+ "notNull": false
838
+ },
839
+ "svgcdalto": {
840
+ "name": "svgcdalto",
841
+ "type": "integer",
842
+ "notNull": false
843
+ },
844
+ "svgrotx": {
845
+ "name": "svgrotx",
846
+ "type": "double precision",
847
+ "notNull": false
848
+ },
849
+ "svgroty": {
850
+ "name": "svgroty",
851
+ "type": "double precision",
852
+ "notNull": false
853
+ }
854
+ },
855
+ "constraints": [
856
+ {
857
+ "name": "msip_centropoblado_check",
858
+ "kind": "check",
859
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
860
+ "columns": [
861
+ "(fechadeshabilitacion"
862
+ ]
863
+ },
864
+ {
865
+ "name": "msip_centropoblado_id_municipio_id_cplocal_key",
866
+ "kind": "unique",
867
+ "definition": "UNIQUE (municipio_id, cplocal_cod)",
868
+ "columns": [
869
+ "municipio_id",
870
+ "cplocal_cod"
871
+ ]
872
+ },
873
+ {
874
+ "name": "msip_centropoblado_municipio_id_id_unico",
875
+ "kind": "unique",
876
+ "definition": "UNIQUE (municipio_id, id)",
877
+ "columns": [
878
+ "municipio_id",
879
+ "id"
880
+ ]
881
+ },
882
+ {
883
+ "name": "msip_centropoblado_pkey",
884
+ "kind": "primary-key",
885
+ "definition": "PRIMARY KEY (id)",
886
+ "columns": [
887
+ "id"
888
+ ]
889
+ },
890
+ {
891
+ "name": "fk_rails_fb09f016e4",
892
+ "kind": "foreign-key",
893
+ "definition": "FOREIGN KEY (municipio_id) REFERENCES public.msip_municipio(id)",
894
+ "columns": [
895
+ "municipio_id"
896
+ ],
897
+ "references": {
898
+ "table": "msip_municipio",
899
+ "columns": [
900
+ "id"
901
+ ]
902
+ }
903
+ },
904
+ {
905
+ "name": "msip_centropoblado_id_municipio_fkey",
906
+ "kind": "foreign-key",
907
+ "definition": "FOREIGN KEY (municipio_id) REFERENCES public.msip_municipio(id)",
908
+ "columns": [
909
+ "municipio_id"
910
+ ],
911
+ "references": {
912
+ "table": "msip_municipio",
913
+ "columns": [
914
+ "id"
915
+ ]
916
+ }
917
+ }
918
+ ]
919
+ }
920
+ },
921
+ "counts": {
922
+ "usuario": 25,
923
+ "msip_pais": 27,
924
+ "msip_departamento": 23,
925
+ "msip_municipio": 22,
926
+ "msip_centropoblado": 21
927
+ }
928
+ };
929
+ export const BASELINE_SQL = "-- Base model baseline (generated, do not edit by hand).\n-- Source of truth: the reference database; regenerate with\n-- bin/m base-model:dump --from-structure <structure.sql> [--additions <file>]\n-- Consumers apply this to a fresh database and then their own migrations.\n-- Base model version: 1.0.0\n-- Reference: /var/www/adJ-ia/msip-2.2/test/dummy/db/structure.sql (sha256 020e05eed2c281787ffd6f75b282b87c0768a976b0ceac447354ad50d56734cf)\n\nCREATE SEQUENCE public.usuario_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\n\nCREATE SEQUENCE public.msip_pais_histvigencia_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\nCREATE SEQUENCE public.msip_pais_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\n\nCREATE SEQUENCE public.msip_departamento_histvigencia_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\nCREATE SEQUENCE public.msip_departamento_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\n\nCREATE SEQUENCE public.msip_municipio_histvigencia_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\nCREATE SEQUENCE public.msip_municipio_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\n\nCREATE SEQUENCE public.msip_centropoblado_histvigencia_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\nCREATE SEQUENCE public.msip_centropoblado_id_seq\n START WITH 1\n INCREMENT BY 1\n NO MINVALUE\n NO MAXVALUE\n CACHE 1;\n\nCREATE TABLE public.usuario (\n nusuario character varying(15) NOT NULL,\n password character varying(64) DEFAULT ''::character varying NOT NULL,\n descripcion character varying(50),\n rol integer DEFAULT 4,\n idioma character varying(6) DEFAULT 'es_CO'::character varying NOT NULL,\n id integer DEFAULT nextval('public.usuario_id_seq'::regclass) NOT NULL,\n fechacreacion date DEFAULT ('now'::text)::date NOT NULL,\n fechadeshabilitacion date,\n email character varying(255) DEFAULT ''::character varying NOT NULL,\n encrypted_password character varying(255) DEFAULT ''::character varying NOT NULL,\n sign_in_count integer DEFAULT 0 NOT NULL,\n failed_attempts integer,\n unlock_token character varying(64),\n locked_at timestamp without time zone,\n reset_password_token character varying(255),\n reset_password_sent_at timestamp without time zone,\n remember_created_at timestamp without time zone,\n current_sign_in_at timestamp without time zone,\n last_sign_in_at timestamp without time zone,\n current_sign_in_ip character varying(255),\n last_sign_in_ip character varying(255),\n created_at timestamp without time zone,\n updated_at timestamp without time zone,\n nombre character varying(50),\n tema_id integer,\n CONSTRAINT usuario_check CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion))),\n CONSTRAINT usuario_rol_check CHECK ((rol >= 1))\n);\n\nCREATE TABLE public.msip_pais (\n id integer DEFAULT nextval('public.msip_pais_id_seq'::regclass) NOT NULL,\n nombre character varying(200),\n nombreiso_espanol character varying(200),\n latitud double precision,\n longitud double precision,\n alfa2 character varying(2),\n alfa3 character varying(3),\n codiso integer,\n div1 character varying(100),\n div2 character varying(100),\n div3 character varying(100),\n fechacreacion date,\n fechadeshabilitacion date,\n created_at timestamp without time zone,\n updated_at timestamp without time zone,\n observaciones character varying(5000),\n nombreiso_ingles character varying(512),\n nombreiso_frances character varying(512),\n ultvigenciaini date,\n ultvigenciafin date,\n svgruta character varying,\n svgcdx integer,\n svgcdy integer,\n svgcdancho integer,\n svgcdalto integer,\n svgrotx double precision,\n svgroty double precision\n);\n\nCREATE TABLE public.msip_departamento (\n id integer DEFAULT nextval('public.msip_departamento_id_seq'::regclass) NOT NULL,\n nombre character varying(500) NOT NULL,\n pais_id integer NOT NULL,\n deplocal_cod integer,\n latitud double precision,\n longitud double precision,\n fechacreacion date DEFAULT ('now'::text)::date NOT NULL,\n fechadeshabilitacion date,\n created_at timestamp without time zone,\n updated_at timestamp without time zone,\n observaciones character varying(5000),\n codiso character varying(6),\n catiso character varying(64),\n codreg integer,\n ultvigenciaini date,\n ultvigenciafin date,\n svgruta character varying,\n svgcdx integer,\n svgcdy integer,\n svgcdancho integer,\n svgcdalto integer,\n svgrotx double precision,\n svgroty double precision,\n CONSTRAINT departamento_check CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))\n);\n\nCREATE TABLE public.msip_municipio (\n id integer DEFAULT nextval('public.msip_municipio_id_seq'::regclass) NOT NULL,\n nombre character varying(500) NOT NULL,\n departamento_id integer NOT NULL,\n munlocal_cod integer,\n latitud double precision,\n longitud double precision,\n fechacreacion date DEFAULT ('now'::text)::date NOT NULL,\n fechadeshabilitacion date,\n created_at timestamp without time zone,\n updated_at timestamp without time zone,\n observaciones character varying(5000),\n codreg integer,\n ultvigenciaini date,\n ultvigenciafin date,\n tipomun character varying(32),\n svgruta character varying,\n svgcdx integer,\n svgcdy integer,\n svgcdancho integer,\n svgcdalto integer,\n svgrotx double precision,\n svgroty double precision,\n CONSTRAINT municipio_check CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))\n);\n\nCREATE TABLE public.msip_centropoblado (\n id integer DEFAULT nextval('public.msip_centropoblado_id_seq'::regclass) NOT NULL,\n nombre character varying(500) NOT NULL,\n municipio_id integer NOT NULL,\n cplocal_cod integer,\n tcentropoblado_id character varying(10) DEFAULT 'CP'::character varying NOT NULL,\n latitud double precision,\n longitud double precision,\n fechacreacion date NOT NULL,\n fechadeshabilitacion date,\n created_at timestamp without time zone,\n updated_at timestamp without time zone,\n observaciones character varying(5000),\n ultvigenciaini date,\n ultvigenciafin date,\n svgruta character varying,\n svgcdx integer,\n svgcdy integer,\n svgcdancho integer,\n svgcdalto integer,\n svgrotx double precision,\n svgroty double precision,\n CONSTRAINT msip_centropoblado_check CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))\n);\n\nALTER TABLE ONLY public.usuario\n ADD CONSTRAINT usuario_pkey PRIMARY KEY (id);\n\nALTER TABLE ONLY public.msip_pais\n ADD CONSTRAINT msip_pais_codiso_unico UNIQUE (codiso);\n\nALTER TABLE ONLY public.msip_pais\n ADD CONSTRAINT pais_pkey PRIMARY KEY (id);\n\nALTER TABLE ONLY public.msip_departamento\n ADD CONSTRAINT msip_departamento_id_key UNIQUE (id);\n\nALTER TABLE ONLY public.msip_departamento\n ADD CONSTRAINT msip_departamento_id_pais_id_deplocal_unico UNIQUE (pais_id, deplocal_cod);\n\nALTER TABLE ONLY public.msip_departamento\n ADD CONSTRAINT msip_departamento_pais_id_id_unico UNIQUE (pais_id, id);\n\nALTER TABLE ONLY public.msip_departamento\n ADD CONSTRAINT msip_departamento_pkey PRIMARY KEY (id);\n\nALTER TABLE ONLY public.msip_municipio\n ADD CONSTRAINT msip_municipio_departamento_id_id_unico UNIQUE (departamento_id, id);\n\nALTER TABLE ONLY public.msip_municipio\n ADD CONSTRAINT msip_municipio_id_departamento_id_munlocal_unico UNIQUE (departamento_id, munlocal_cod);\n\nALTER TABLE ONLY public.msip_municipio\n ADD CONSTRAINT municipio_pkey PRIMARY KEY (id);\n\nALTER TABLE ONLY public.msip_centropoblado\n ADD CONSTRAINT msip_centropoblado_id_municipio_id_cplocal_key UNIQUE (municipio_id, cplocal_cod);\n\nALTER TABLE ONLY public.msip_centropoblado\n ADD CONSTRAINT msip_centropoblado_municipio_id_id_unico UNIQUE (municipio_id, id);\n\nALTER TABLE ONLY public.msip_centropoblado\n ADD CONSTRAINT msip_centropoblado_pkey PRIMARY KEY (id);\n\nALTER TABLE ONLY public.msip_departamento\n ADD CONSTRAINT departamento_id_pais_fkey FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id);\n\nALTER TABLE ONLY public.msip_departamento\n ADD CONSTRAINT fk_rails_92093de1a1 FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id);\n\nALTER TABLE ONLY public.msip_municipio\n ADD CONSTRAINT fk_rails_089870a38d FOREIGN KEY (departamento_id) REFERENCES public.msip_departamento(id);\n\nALTER TABLE ONLY public.msip_municipio\n ADD CONSTRAINT msip_municipio_id_departamento_fkey FOREIGN KEY (departamento_id) REFERENCES public.msip_departamento(id);\n\nALTER TABLE ONLY public.msip_centropoblado\n ADD CONSTRAINT fk_rails_fb09f016e4 FOREIGN KEY (municipio_id) REFERENCES public.msip_municipio(id);\n\nALTER TABLE ONLY public.msip_centropoblado\n ADD CONSTRAINT msip_centropoblado_id_municipio_fkey FOREIGN KEY (municipio_id) REFERENCES public.msip_municipio(id);\n";
930
+ //# sourceMappingURL=baseline.generated.js.map