@pasosdejesus/m 0.21.1 → 0.22.1

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 (130) hide show
  1. package/dist/base-model/baseline.generated.d.ts +60 -0
  2. package/dist/base-model/baseline.generated.d.ts.map +1 -0
  3. package/dist/base-model/baseline.generated.js +1110 -0
  4. package/dist/base-model/baseline.generated.js.map +1 -0
  5. package/dist/base-model/check.d.ts +6 -0
  6. package/dist/base-model/check.d.ts.map +1 -0
  7. package/dist/base-model/check.js +195 -0
  8. package/dist/base-model/check.js.map +1 -0
  9. package/dist/base-model/generate.d.ts +37 -0
  10. package/dist/base-model/generate.d.ts.map +1 -0
  11. package/dist/base-model/generate.js +184 -0
  12. package/dist/base-model/generate.js.map +1 -0
  13. package/dist/base-model/guidelines.d.ts +13 -0
  14. package/dist/base-model/guidelines.d.ts.map +1 -0
  15. package/dist/base-model/guidelines.js +61 -0
  16. package/dist/base-model/guidelines.js.map +1 -0
  17. package/dist/base-model/index.d.ts +19 -0
  18. package/dist/base-model/index.d.ts.map +1 -0
  19. package/dist/base-model/index.js +22 -0
  20. package/dist/base-model/index.js.map +1 -0
  21. package/dist/base-model/parse-structure.d.ts +4 -0
  22. package/dist/base-model/parse-structure.d.ts.map +1 -0
  23. package/dist/base-model/parse-structure.js +170 -0
  24. package/dist/base-model/parse-structure.js.map +1 -0
  25. package/dist/base-model/queries.d.ts +41 -0
  26. package/dist/base-model/queries.d.ts.map +1 -0
  27. package/dist/base-model/queries.js +157 -0
  28. package/dist/base-model/queries.js.map +1 -0
  29. package/dist/base-model/references/learn-tg.d.ts +16 -0
  30. package/dist/base-model/references/learn-tg.d.ts.map +1 -0
  31. package/dist/base-model/references/learn-tg.js +60 -0
  32. package/dist/base-model/references/learn-tg.js.map +1 -0
  33. package/dist/base-model/types.d.ts +183 -0
  34. package/dist/base-model/types.d.ts.map +1 -0
  35. package/dist/base-model/types.js +10 -0
  36. package/dist/base-model/types.js.map +1 -0
  37. package/dist/base-model/version.d.ts +12 -0
  38. package/dist/base-model/version.d.ts.map +1 -0
  39. package/dist/base-model/version.js +20 -0
  40. package/dist/base-model/version.js.map +1 -0
  41. package/dist/debug/DebugConsole.js +6 -6
  42. package/dist/debug/DebugConsole.js.map +1 -1
  43. package/dist/debug/Logger.js +2 -2
  44. package/dist/debug/Logger.js.map +1 -1
  45. package/dist/e2e/assertions.js +3 -3
  46. package/dist/e2e/assertions.js.map +1 -1
  47. package/dist/e2e/env.js +3 -3
  48. package/dist/e2e/env.js.map +1 -1
  49. package/dist/i18n/common-cli.js +2 -2
  50. package/dist/i18n/common-cli.js.map +1 -1
  51. package/dist/m.js +37 -5
  52. package/dist/m.js.map +1 -1
  53. package/dist/tasks/base-model.d.ts +3 -0
  54. package/dist/tasks/base-model.d.ts.map +1 -0
  55. package/dist/tasks/base-model.js +177 -0
  56. package/dist/tasks/base-model.js.map +1 -0
  57. package/dist/tasks/context-git.d.ts +27 -0
  58. package/dist/tasks/context-git.d.ts.map +1 -0
  59. package/dist/tasks/context-git.js +96 -0
  60. package/dist/tasks/context-git.js.map +1 -0
  61. package/dist/tasks/context-ignore.d.ts +18 -0
  62. package/dist/tasks/context-ignore.d.ts.map +1 -0
  63. package/dist/tasks/context-ignore.js +63 -0
  64. package/dist/tasks/context-ignore.js.map +1 -0
  65. package/dist/tasks/context-profiles.d.ts +42 -0
  66. package/dist/tasks/context-profiles.d.ts.map +1 -0
  67. package/dist/tasks/context-profiles.js +295 -0
  68. package/dist/tasks/context-profiles.js.map +1 -0
  69. package/dist/tasks/context-render.d.ts +37 -0
  70. package/dist/tasks/context-render.d.ts.map +1 -0
  71. package/dist/tasks/context-render.js +162 -0
  72. package/dist/tasks/context-render.js.map +1 -0
  73. package/dist/tasks/context-reqs.d.ts +20 -0
  74. package/dist/tasks/context-reqs.d.ts.map +1 -0
  75. package/dist/tasks/context-reqs.js +75 -0
  76. package/dist/tasks/context-reqs.js.map +1 -0
  77. package/dist/tasks/context-workspaces.d.ts +22 -0
  78. package/dist/tasks/context-workspaces.d.ts.map +1 -0
  79. package/dist/tasks/context-workspaces.js +116 -0
  80. package/dist/tasks/context-workspaces.js.map +1 -0
  81. package/dist/tasks/context.d.ts +39 -3
  82. package/dist/tasks/context.d.ts.map +1 -1
  83. package/dist/tasks/context.js +254 -262
  84. package/dist/tasks/context.js.map +1 -1
  85. package/dist/tasks/db.js +5 -5
  86. package/dist/tasks/db.js.map +1 -1
  87. package/dist/tasks/edit.js +44 -44
  88. package/dist/tasks/edit.js.map +1 -1
  89. package/dist/tasks/engine.js +2 -2
  90. package/dist/tasks/engine.js.map +1 -1
  91. package/dist/tasks/env-diff.js +2 -2
  92. package/dist/tasks/env-diff.js.map +1 -1
  93. package/dist/tasks/glob.js +6 -6
  94. package/dist/tasks/glob.js.map +1 -1
  95. package/dist/tasks/grep.js +9 -9
  96. package/dist/tasks/grep.js.map +1 -1
  97. package/dist/tasks/readfile.js +17 -17
  98. package/dist/tasks/readfile.js.map +1 -1
  99. package/dist/tasks/req.js +17 -17
  100. package/dist/tasks/req.js.map +1 -1
  101. package/dist/tasks/wallet.js +15 -15
  102. package/dist/tasks/wallet.js.map +1 -1
  103. package/dist/tasks/writefile.js +8 -8
  104. package/dist/tasks/writefile.js.map +1 -1
  105. package/dist/templates/AGENTS.md.hbs +2 -2
  106. package/dist/templates/ARCHITECTURE.md.hbs +2 -2
  107. package/dist/templates/CONTRIBUTING.md.hbs +2 -2
  108. package/dist/templates/apps/.env.example.hbs +1 -1
  109. package/dist/templates/apps/hardhat/package.json +1 -1
  110. package/dist/templates/apps/hardhat/scripts/verifyDeployment.ts +10 -10
  111. package/dist/templates/apps/hardhat/sync-abis.mjs +3 -3
  112. package/dist/templates/apps/nextjs/app/page.tsx.hbs +2 -2
  113. package/dist/util/cli-parser.d.ts +3 -3
  114. package/dist/util/cli-parser.d.ts.map +1 -1
  115. package/dist/util/cli-parser.js +8 -1
  116. package/dist/util/cli-parser.js.map +1 -1
  117. package/dist/util/fs-walk.d.ts +11 -0
  118. package/dist/util/fs-walk.d.ts.map +1 -0
  119. package/dist/util/fs-walk.js +39 -0
  120. package/dist/util/fs-walk.js.map +1 -0
  121. package/dist/util/glob-match.d.ts +8 -0
  122. package/dist/util/glob-match.d.ts.map +1 -0
  123. package/dist/util/glob-match.js +79 -0
  124. package/dist/util/glob-match.js.map +1 -0
  125. package/package.json +2 -2
  126. package/src/blockchain/README.md +1 -1
  127. package/src/debug/README.md +1 -1
  128. package/src/e2e/README.md +2 -2
  129. package/src/tasks/README.md +16 -10
  130. package/src/test-utils/README.md +16 -16
@@ -0,0 +1,1110 @@
1
+ export const BASELINE_GENERATED_MANIFEST = {
2
+ "version": "1.0.0",
3
+ "reference": {
4
+ "source": "/var/www/adJ-ia/learn.tg/apps/nextjs/db/structure.sql",
5
+ "sha256": "52217f2b52df2b2dcf3de529844caa80644c50cd277ed41a09230b27d54b57cd"
6
+ },
7
+ "tables": {
8
+ "usuario": {
9
+ "columns": 32,
10
+ "constraints": 5,
11
+ "extensions": 35
12
+ },
13
+ "billetera_usuario": {
14
+ "columns": 5,
15
+ "constraints": 2,
16
+ "extensions": 3
17
+ },
18
+ "msip_pais": {
19
+ "columns": 30,
20
+ "constraints": 4,
21
+ "extensions": 0
22
+ },
23
+ "msip_departamento": {
24
+ "columns": 24,
25
+ "constraints": 7,
26
+ "extensions": 0
27
+ },
28
+ "msip_municipio": {
29
+ "columns": 22,
30
+ "constraints": 7,
31
+ "extensions": 0
32
+ },
33
+ "msip_centropoblado": {
34
+ "columns": 21,
35
+ "constraints": 7,
36
+ "extensions": 0
37
+ }
38
+ },
39
+ "externalConstraints": [
40
+ {
41
+ "table": "msip_centropoblado",
42
+ "name": "msip_centropoblado_id_tcentropoblado_fkey",
43
+ "references": "msip_tcentropoblado(id)"
44
+ },
45
+ {
46
+ "table": "usuario",
47
+ "name": "fk_rails_cc636858ad",
48
+ "references": "msip_tema(id)"
49
+ },
50
+ {
51
+ "table": "usuario",
52
+ "name": "fk_rails_ee8a18179f",
53
+ "references": "religion(id)"
54
+ },
55
+ {
56
+ "table": "usuario",
57
+ "name": "usuario_oficina_id_fk",
58
+ "references": "msip_oficina(id)"
59
+ }
60
+ ]
61
+ };
62
+ export const BASELINE_INVENTORY = {
63
+ "version": "1.0.0",
64
+ "tables": {
65
+ "usuario": {
66
+ "columns": {
67
+ "id": {
68
+ "name": "id",
69
+ "type": "integer",
70
+ "notNull": true,
71
+ "default": "nextval('public.usuario_id_seq'::regclass)"
72
+ },
73
+ "nusuario": {
74
+ "name": "nusuario",
75
+ "type": "character varying(15)",
76
+ "notNull": true
77
+ },
78
+ "password": {
79
+ "name": "password",
80
+ "type": "character varying(64)",
81
+ "notNull": true,
82
+ "default": "''::character varying"
83
+ },
84
+ "nombre": {
85
+ "name": "nombre",
86
+ "type": "character varying(50)",
87
+ "notNull": false
88
+ },
89
+ "descripcion": {
90
+ "name": "descripcion",
91
+ "type": "character varying(50)",
92
+ "notNull": false
93
+ },
94
+ "rol": {
95
+ "name": "rol",
96
+ "type": "integer",
97
+ "notNull": false,
98
+ "default": "7"
99
+ },
100
+ "idioma": {
101
+ "name": "idioma",
102
+ "type": "character varying(6)",
103
+ "notNull": true,
104
+ "default": "'es_CO'::character varying"
105
+ },
106
+ "email": {
107
+ "name": "email",
108
+ "type": "character varying(255)",
109
+ "notNull": true,
110
+ "default": "''::character varying"
111
+ },
112
+ "encrypted_password": {
113
+ "name": "encrypted_password",
114
+ "type": "character varying(255)",
115
+ "notNull": true,
116
+ "default": "''::character varying"
117
+ },
118
+ "sign_in_count": {
119
+ "name": "sign_in_count",
120
+ "type": "integer",
121
+ "notNull": true,
122
+ "default": "0"
123
+ },
124
+ "fechacreacion": {
125
+ "name": "fechacreacion",
126
+ "type": "date",
127
+ "notNull": true,
128
+ "default": "('now'::text)::date"
129
+ },
130
+ "fechadeshabilitacion": {
131
+ "name": "fechadeshabilitacion",
132
+ "type": "date",
133
+ "notNull": false
134
+ },
135
+ "reset_password_token": {
136
+ "name": "reset_password_token",
137
+ "type": "character varying(255)",
138
+ "notNull": false
139
+ },
140
+ "reset_password_sent_at": {
141
+ "name": "reset_password_sent_at",
142
+ "type": "timestamp without time zone",
143
+ "notNull": false
144
+ },
145
+ "remember_created_at": {
146
+ "name": "remember_created_at",
147
+ "type": "timestamp without time zone",
148
+ "notNull": false
149
+ },
150
+ "current_sign_in_at": {
151
+ "name": "current_sign_in_at",
152
+ "type": "timestamp without time zone",
153
+ "notNull": false
154
+ },
155
+ "last_sign_in_at": {
156
+ "name": "last_sign_in_at",
157
+ "type": "timestamp without time zone",
158
+ "notNull": false
159
+ },
160
+ "current_sign_in_ip": {
161
+ "name": "current_sign_in_ip",
162
+ "type": "character varying(255)",
163
+ "notNull": false
164
+ },
165
+ "last_sign_in_ip": {
166
+ "name": "last_sign_in_ip",
167
+ "type": "character varying(255)",
168
+ "notNull": false
169
+ },
170
+ "created_at": {
171
+ "name": "created_at",
172
+ "type": "timestamp without time zone",
173
+ "notNull": false
174
+ },
175
+ "updated_at": {
176
+ "name": "updated_at",
177
+ "type": "timestamp without time zone",
178
+ "notNull": false
179
+ },
180
+ "failed_attempts": {
181
+ "name": "failed_attempts",
182
+ "type": "integer",
183
+ "notNull": false,
184
+ "default": "0"
185
+ },
186
+ "unlock_token": {
187
+ "name": "unlock_token",
188
+ "type": "character varying(255)",
189
+ "notNull": false
190
+ },
191
+ "locked_at": {
192
+ "name": "locked_at",
193
+ "type": "timestamp without time zone",
194
+ "notNull": false
195
+ },
196
+ "oficina_id": {
197
+ "name": "oficina_id",
198
+ "type": "integer",
199
+ "notNull": false
200
+ },
201
+ "tema_id": {
202
+ "name": "tema_id",
203
+ "type": "integer",
204
+ "notNull": false
205
+ },
206
+ "foto_file_name": {
207
+ "name": "foto_file_name",
208
+ "type": "character varying",
209
+ "notNull": false
210
+ },
211
+ "foto_content_type": {
212
+ "name": "foto_content_type",
213
+ "type": "character varying",
214
+ "notNull": false
215
+ },
216
+ "foto_file_size": {
217
+ "name": "foto_file_size",
218
+ "type": "bigint",
219
+ "notNull": false
220
+ },
221
+ "foto_updated_at": {
222
+ "name": "foto_updated_at",
223
+ "type": "timestamp without time zone",
224
+ "notNull": false
225
+ },
226
+ "religion_id": {
227
+ "name": "religion_id",
228
+ "type": "integer",
229
+ "notNull": false
230
+ },
231
+ "pais_id": {
232
+ "name": "pais_id",
233
+ "type": "integer",
234
+ "notNull": false
235
+ }
236
+ },
237
+ "constraints": [
238
+ {
239
+ "name": "usuario_check",
240
+ "kind": "check",
241
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
242
+ "columns": [
243
+ "(fechadeshabilitacion"
244
+ ]
245
+ },
246
+ {
247
+ "name": "usuario_rol_check",
248
+ "kind": "check",
249
+ "definition": "CHECK ((rol >= 1))",
250
+ "columns": [
251
+ "(rol"
252
+ ]
253
+ },
254
+ {
255
+ "name": "usuario_nusuario_key",
256
+ "kind": "unique",
257
+ "definition": "UNIQUE (nusuario)",
258
+ "columns": [
259
+ "nusuario"
260
+ ]
261
+ },
262
+ {
263
+ "name": "usuario_pkey",
264
+ "kind": "primary-key",
265
+ "definition": "PRIMARY KEY (id)",
266
+ "columns": [
267
+ "id"
268
+ ]
269
+ },
270
+ {
271
+ "name": "fk_rails_4649f3efec",
272
+ "kind": "foreign-key",
273
+ "definition": "FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id)",
274
+ "columns": [
275
+ "pais_id"
276
+ ],
277
+ "references": {
278
+ "table": "msip_pais",
279
+ "columns": [
280
+ "id"
281
+ ]
282
+ }
283
+ }
284
+ ]
285
+ },
286
+ "billetera_usuario": {
287
+ "columns": {
288
+ "id": {
289
+ "name": "id",
290
+ "type": "bigint",
291
+ "notNull": true
292
+ },
293
+ "billetera": {
294
+ "name": "billetera",
295
+ "type": "character varying(60)",
296
+ "notNull": true
297
+ },
298
+ "usuario_id": {
299
+ "name": "usuario_id",
300
+ "type": "integer",
301
+ "notNull": true
302
+ },
303
+ "created_at": {
304
+ "name": "created_at",
305
+ "type": "timestamp without time zone",
306
+ "notNull": true
307
+ },
308
+ "updated_at": {
309
+ "name": "updated_at",
310
+ "type": "timestamp without time zone",
311
+ "notNull": true
312
+ }
313
+ },
314
+ "constraints": [
315
+ {
316
+ "name": "billetera_usuario_pkey",
317
+ "kind": "primary-key",
318
+ "definition": "PRIMARY KEY (id)",
319
+ "columns": [
320
+ "id"
321
+ ]
322
+ },
323
+ {
324
+ "name": "fk_rails_16c33c90b0",
325
+ "kind": "foreign-key",
326
+ "definition": "FOREIGN KEY (usuario_id) REFERENCES public.usuario(id)",
327
+ "columns": [
328
+ "usuario_id"
329
+ ],
330
+ "references": {
331
+ "table": "usuario",
332
+ "columns": [
333
+ "id"
334
+ ]
335
+ }
336
+ }
337
+ ]
338
+ },
339
+ "msip_pais": {
340
+ "columns": {
341
+ "id": {
342
+ "name": "id",
343
+ "type": "integer",
344
+ "notNull": true
345
+ },
346
+ "nombre": {
347
+ "name": "nombre",
348
+ "type": "character varying(200)",
349
+ "notNull": true
350
+ },
351
+ "nombreiso_espanol": {
352
+ "name": "nombreiso_espanol",
353
+ "type": "character varying(200)",
354
+ "notNull": true
355
+ },
356
+ "latitud": {
357
+ "name": "latitud",
358
+ "type": "double precision",
359
+ "notNull": false
360
+ },
361
+ "longitud": {
362
+ "name": "longitud",
363
+ "type": "double precision",
364
+ "notNull": false
365
+ },
366
+ "alfa2": {
367
+ "name": "alfa2",
368
+ "type": "character varying(2)",
369
+ "notNull": false
370
+ },
371
+ "alfa3": {
372
+ "name": "alfa3",
373
+ "type": "character varying(3)",
374
+ "notNull": false
375
+ },
376
+ "codiso": {
377
+ "name": "codiso",
378
+ "type": "integer",
379
+ "notNull": false
380
+ },
381
+ "div1": {
382
+ "name": "div1",
383
+ "type": "character varying(100)",
384
+ "notNull": false
385
+ },
386
+ "div2": {
387
+ "name": "div2",
388
+ "type": "character varying(100)",
389
+ "notNull": false
390
+ },
391
+ "div3": {
392
+ "name": "div3",
393
+ "type": "character varying(100)",
394
+ "notNull": false
395
+ },
396
+ "fechacreacion": {
397
+ "name": "fechacreacion",
398
+ "type": "date",
399
+ "notNull": true,
400
+ "default": "('now'::text)::date"
401
+ },
402
+ "fechadeshabilitacion": {
403
+ "name": "fechadeshabilitacion",
404
+ "type": "date",
405
+ "notNull": false
406
+ },
407
+ "created_at": {
408
+ "name": "created_at",
409
+ "type": "timestamp without time zone",
410
+ "notNull": false
411
+ },
412
+ "updated_at": {
413
+ "name": "updated_at",
414
+ "type": "timestamp without time zone",
415
+ "notNull": false
416
+ },
417
+ "observaciones": {
418
+ "name": "observaciones",
419
+ "type": "character varying(5000)",
420
+ "notNull": false
421
+ },
422
+ "nombreiso_ingles": {
423
+ "name": "nombreiso_ingles",
424
+ "type": "character varying(512)",
425
+ "notNull": false
426
+ },
427
+ "nombreiso_frances": {
428
+ "name": "nombreiso_frances",
429
+ "type": "character varying(512)",
430
+ "notNull": false
431
+ },
432
+ "ultvigenciaini": {
433
+ "name": "ultvigenciaini",
434
+ "type": "date",
435
+ "notNull": false
436
+ },
437
+ "ultvigenciafin": {
438
+ "name": "ultvigenciafin",
439
+ "type": "date",
440
+ "notNull": false
441
+ },
442
+ "svgruta": {
443
+ "name": "svgruta",
444
+ "type": "character varying",
445
+ "notNull": false
446
+ },
447
+ "svgcdx": {
448
+ "name": "svgcdx",
449
+ "type": "integer",
450
+ "notNull": false
451
+ },
452
+ "svgcdy": {
453
+ "name": "svgcdy",
454
+ "type": "integer",
455
+ "notNull": false
456
+ },
457
+ "svgcdancho": {
458
+ "name": "svgcdancho",
459
+ "type": "integer",
460
+ "notNull": false
461
+ },
462
+ "svgcdalto": {
463
+ "name": "svgcdalto",
464
+ "type": "integer",
465
+ "notNull": false
466
+ },
467
+ "svgrotx": {
468
+ "name": "svgrotx",
469
+ "type": "double precision",
470
+ "notNull": false
471
+ },
472
+ "svgroty": {
473
+ "name": "svgroty",
474
+ "type": "double precision",
475
+ "notNull": false
476
+ },
477
+ "indicativo": {
478
+ "name": "indicativo",
479
+ "type": "character varying(10)",
480
+ "notNull": false
481
+ },
482
+ "timezone": {
483
+ "name": "timezone",
484
+ "type": "character varying(63)",
485
+ "notNull": false
486
+ },
487
+ "tipo_region": {
488
+ "name": "tipo_region",
489
+ "type": "smallint",
490
+ "notNull": false
491
+ }
492
+ },
493
+ "constraints": [
494
+ {
495
+ "name": "msip_pais_tipo_region_check",
496
+ "kind": "check",
497
+ "definition": "CHECK ((tipo_region = ANY (ARRAY[1, 2])))",
498
+ "columns": [
499
+ "tipo_region",
500
+ "2])"
501
+ ]
502
+ },
503
+ {
504
+ "name": "pais_check",
505
+ "kind": "check",
506
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
507
+ "columns": [
508
+ "(fechadeshabilitacion"
509
+ ]
510
+ },
511
+ {
512
+ "name": "msip_pais_codiso_unico",
513
+ "kind": "unique",
514
+ "definition": "UNIQUE (codiso)",
515
+ "columns": [
516
+ "codiso"
517
+ ]
518
+ },
519
+ {
520
+ "name": "msip_pais_pkey",
521
+ "kind": "primary-key",
522
+ "definition": "PRIMARY KEY (id)",
523
+ "columns": [
524
+ "id"
525
+ ]
526
+ }
527
+ ]
528
+ },
529
+ "msip_departamento": {
530
+ "columns": {
531
+ "deplocal_cod": {
532
+ "name": "deplocal_cod",
533
+ "type": "integer",
534
+ "notNull": false
535
+ },
536
+ "nombre": {
537
+ "name": "nombre",
538
+ "type": "character varying(500)",
539
+ "notNull": true
540
+ },
541
+ "latitud": {
542
+ "name": "latitud",
543
+ "type": "double precision",
544
+ "notNull": false
545
+ },
546
+ "longitud": {
547
+ "name": "longitud",
548
+ "type": "double precision",
549
+ "notNull": false
550
+ },
551
+ "fechacreacion": {
552
+ "name": "fechacreacion",
553
+ "type": "date",
554
+ "notNull": true,
555
+ "default": "('now'::text)::date"
556
+ },
557
+ "fechadeshabilitacion": {
558
+ "name": "fechadeshabilitacion",
559
+ "type": "date",
560
+ "notNull": false
561
+ },
562
+ "created_at": {
563
+ "name": "created_at",
564
+ "type": "timestamp without time zone",
565
+ "notNull": false
566
+ },
567
+ "updated_at": {
568
+ "name": "updated_at",
569
+ "type": "timestamp without time zone",
570
+ "notNull": false
571
+ },
572
+ "pais_id": {
573
+ "name": "pais_id",
574
+ "type": "integer",
575
+ "notNull": true,
576
+ "default": "0"
577
+ },
578
+ "id": {
579
+ "name": "id",
580
+ "type": "integer",
581
+ "notNull": true,
582
+ "default": "nextval('public.msip_departamento_id_seq'::regclass)"
583
+ },
584
+ "observaciones": {
585
+ "name": "observaciones",
586
+ "type": "character varying(5000)",
587
+ "notNull": false
588
+ },
589
+ "codiso": {
590
+ "name": "codiso",
591
+ "type": "character varying(6)",
592
+ "notNull": false
593
+ },
594
+ "catiso": {
595
+ "name": "catiso",
596
+ "type": "character varying(64)",
597
+ "notNull": false
598
+ },
599
+ "codreg": {
600
+ "name": "codreg",
601
+ "type": "integer",
602
+ "notNull": false
603
+ },
604
+ "ultvigenciaini": {
605
+ "name": "ultvigenciaini",
606
+ "type": "date",
607
+ "notNull": false
608
+ },
609
+ "ultvigenciafin": {
610
+ "name": "ultvigenciafin",
611
+ "type": "date",
612
+ "notNull": false
613
+ },
614
+ "svgruta": {
615
+ "name": "svgruta",
616
+ "type": "character varying",
617
+ "notNull": false
618
+ },
619
+ "svgcdx": {
620
+ "name": "svgcdx",
621
+ "type": "integer",
622
+ "notNull": false
623
+ },
624
+ "svgcdy": {
625
+ "name": "svgcdy",
626
+ "type": "integer",
627
+ "notNull": false
628
+ },
629
+ "svgcdancho": {
630
+ "name": "svgcdancho",
631
+ "type": "integer",
632
+ "notNull": false
633
+ },
634
+ "svgcdalto": {
635
+ "name": "svgcdalto",
636
+ "type": "integer",
637
+ "notNull": false
638
+ },
639
+ "svgrotx": {
640
+ "name": "svgrotx",
641
+ "type": "double precision",
642
+ "notNull": false
643
+ },
644
+ "svgroty": {
645
+ "name": "svgroty",
646
+ "type": "double precision",
647
+ "notNull": false
648
+ },
649
+ "timezone": {
650
+ "name": "timezone",
651
+ "type": "character varying(63)",
652
+ "notNull": false
653
+ }
654
+ },
655
+ "constraints": [
656
+ {
657
+ "name": "departamento_check",
658
+ "kind": "check",
659
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
660
+ "columns": [
661
+ "(fechadeshabilitacion"
662
+ ]
663
+ },
664
+ {
665
+ "name": "msip_departamento_id_key",
666
+ "kind": "unique",
667
+ "definition": "UNIQUE (id)",
668
+ "columns": [
669
+ "id"
670
+ ]
671
+ },
672
+ {
673
+ "name": "msip_departamento_id_pais_id_deplocal_unico",
674
+ "kind": "unique",
675
+ "definition": "UNIQUE (pais_id, deplocal_cod)",
676
+ "columns": [
677
+ "pais_id",
678
+ "deplocal_cod"
679
+ ]
680
+ },
681
+ {
682
+ "name": "msip_departamento_pais_id_id_unico",
683
+ "kind": "unique",
684
+ "definition": "UNIQUE (pais_id, id)",
685
+ "columns": [
686
+ "pais_id",
687
+ "id"
688
+ ]
689
+ },
690
+ {
691
+ "name": "msip_departamento_pkey",
692
+ "kind": "primary-key",
693
+ "definition": "PRIMARY KEY (id)",
694
+ "columns": [
695
+ "id"
696
+ ]
697
+ },
698
+ {
699
+ "name": "departamento_id_pais_fkey",
700
+ "kind": "foreign-key",
701
+ "definition": "FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id)",
702
+ "columns": [
703
+ "pais_id"
704
+ ],
705
+ "references": {
706
+ "table": "msip_pais",
707
+ "columns": [
708
+ "id"
709
+ ]
710
+ }
711
+ },
712
+ {
713
+ "name": "fk_rails_92093de1a1",
714
+ "kind": "foreign-key",
715
+ "definition": "FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id)",
716
+ "columns": [
717
+ "pais_id"
718
+ ],
719
+ "references": {
720
+ "table": "msip_pais",
721
+ "columns": [
722
+ "id"
723
+ ]
724
+ }
725
+ }
726
+ ]
727
+ },
728
+ "msip_municipio": {
729
+ "columns": {
730
+ "munlocal_cod": {
731
+ "name": "munlocal_cod",
732
+ "type": "integer",
733
+ "notNull": false
734
+ },
735
+ "nombre": {
736
+ "name": "nombre",
737
+ "type": "character varying(500)",
738
+ "notNull": true
739
+ },
740
+ "latitud": {
741
+ "name": "latitud",
742
+ "type": "double precision",
743
+ "notNull": false
744
+ },
745
+ "longitud": {
746
+ "name": "longitud",
747
+ "type": "double precision",
748
+ "notNull": false
749
+ },
750
+ "fechacreacion": {
751
+ "name": "fechacreacion",
752
+ "type": "date",
753
+ "notNull": true,
754
+ "default": "('now'::text)::date"
755
+ },
756
+ "fechadeshabilitacion": {
757
+ "name": "fechadeshabilitacion",
758
+ "type": "date",
759
+ "notNull": false
760
+ },
761
+ "created_at": {
762
+ "name": "created_at",
763
+ "type": "timestamp without time zone",
764
+ "notNull": false
765
+ },
766
+ "updated_at": {
767
+ "name": "updated_at",
768
+ "type": "timestamp without time zone",
769
+ "notNull": false
770
+ },
771
+ "departamento_id": {
772
+ "name": "departamento_id",
773
+ "type": "integer",
774
+ "notNull": false
775
+ },
776
+ "id": {
777
+ "name": "id",
778
+ "type": "integer",
779
+ "notNull": true,
780
+ "default": "nextval('public.msip_municipio_id_seq'::regclass)"
781
+ },
782
+ "observaciones": {
783
+ "name": "observaciones",
784
+ "type": "character varying(5000)",
785
+ "notNull": false
786
+ },
787
+ "codreg": {
788
+ "name": "codreg",
789
+ "type": "integer",
790
+ "notNull": false
791
+ },
792
+ "ultvigenciaini": {
793
+ "name": "ultvigenciaini",
794
+ "type": "date",
795
+ "notNull": false
796
+ },
797
+ "ultvigenciafin": {
798
+ "name": "ultvigenciafin",
799
+ "type": "date",
800
+ "notNull": false
801
+ },
802
+ "tipomun": {
803
+ "name": "tipomun",
804
+ "type": "character varying(32)",
805
+ "notNull": false
806
+ },
807
+ "svgruta": {
808
+ "name": "svgruta",
809
+ "type": "character varying",
810
+ "notNull": false
811
+ },
812
+ "svgcdx": {
813
+ "name": "svgcdx",
814
+ "type": "integer",
815
+ "notNull": false
816
+ },
817
+ "svgcdy": {
818
+ "name": "svgcdy",
819
+ "type": "integer",
820
+ "notNull": false
821
+ },
822
+ "svgcdancho": {
823
+ "name": "svgcdancho",
824
+ "type": "integer",
825
+ "notNull": false
826
+ },
827
+ "svgcdalto": {
828
+ "name": "svgcdalto",
829
+ "type": "integer",
830
+ "notNull": false
831
+ },
832
+ "svgrotx": {
833
+ "name": "svgrotx",
834
+ "type": "double precision",
835
+ "notNull": false
836
+ },
837
+ "svgroty": {
838
+ "name": "svgroty",
839
+ "type": "double precision",
840
+ "notNull": false
841
+ }
842
+ },
843
+ "constraints": [
844
+ {
845
+ "name": "municipio_check",
846
+ "kind": "check",
847
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
848
+ "columns": [
849
+ "(fechadeshabilitacion"
850
+ ]
851
+ },
852
+ {
853
+ "name": "msip_municipio_departamento_id_id_unico",
854
+ "kind": "unique",
855
+ "definition": "UNIQUE (departamento_id, id)",
856
+ "columns": [
857
+ "departamento_id",
858
+ "id"
859
+ ]
860
+ },
861
+ {
862
+ "name": "msip_municipio_id_departamento_id_munlocal_unico",
863
+ "kind": "unique",
864
+ "definition": "UNIQUE (departamento_id, munlocal_cod)",
865
+ "columns": [
866
+ "departamento_id",
867
+ "munlocal_cod"
868
+ ]
869
+ },
870
+ {
871
+ "name": "msip_municipio_id_key",
872
+ "kind": "unique",
873
+ "definition": "UNIQUE (id)",
874
+ "columns": [
875
+ "id"
876
+ ]
877
+ },
878
+ {
879
+ "name": "msip_municipio_pkey",
880
+ "kind": "primary-key",
881
+ "definition": "PRIMARY KEY (id)",
882
+ "columns": [
883
+ "id"
884
+ ]
885
+ },
886
+ {
887
+ "name": "fk_rails_089870a38d",
888
+ "kind": "foreign-key",
889
+ "definition": "FOREIGN KEY (departamento_id) REFERENCES public.msip_departamento(id)",
890
+ "columns": [
891
+ "departamento_id"
892
+ ],
893
+ "references": {
894
+ "table": "msip_departamento",
895
+ "columns": [
896
+ "id"
897
+ ]
898
+ }
899
+ },
900
+ {
901
+ "name": "msip_municipio_id_departamento_fkey",
902
+ "kind": "foreign-key",
903
+ "definition": "FOREIGN KEY (departamento_id) REFERENCES public.msip_departamento(id)",
904
+ "columns": [
905
+ "departamento_id"
906
+ ],
907
+ "references": {
908
+ "table": "msip_departamento",
909
+ "columns": [
910
+ "id"
911
+ ]
912
+ }
913
+ }
914
+ ]
915
+ },
916
+ "msip_centropoblado": {
917
+ "columns": {
918
+ "cplocal_cod": {
919
+ "name": "cplocal_cod",
920
+ "type": "integer",
921
+ "notNull": false
922
+ },
923
+ "nombre": {
924
+ "name": "nombre",
925
+ "type": "character varying(500)",
926
+ "notNull": true
927
+ },
928
+ "tcentropoblado_id": {
929
+ "name": "tcentropoblado_id",
930
+ "type": "character varying(10)",
931
+ "notNull": true,
932
+ "default": "'CP'::character varying"
933
+ },
934
+ "latitud": {
935
+ "name": "latitud",
936
+ "type": "double precision",
937
+ "notNull": false
938
+ },
939
+ "longitud": {
940
+ "name": "longitud",
941
+ "type": "double precision",
942
+ "notNull": false
943
+ },
944
+ "fechacreacion": {
945
+ "name": "fechacreacion",
946
+ "type": "date",
947
+ "notNull": true
948
+ },
949
+ "fechadeshabilitacion": {
950
+ "name": "fechadeshabilitacion",
951
+ "type": "date",
952
+ "notNull": false
953
+ },
954
+ "created_at": {
955
+ "name": "created_at",
956
+ "type": "timestamp without time zone",
957
+ "notNull": false
958
+ },
959
+ "updated_at": {
960
+ "name": "updated_at",
961
+ "type": "timestamp without time zone",
962
+ "notNull": false
963
+ },
964
+ "municipio_id": {
965
+ "name": "municipio_id",
966
+ "type": "integer",
967
+ "notNull": false
968
+ },
969
+ "id": {
970
+ "name": "id",
971
+ "type": "integer",
972
+ "notNull": true,
973
+ "default": "nextval('public.msip_centropoblado_id_seq'::regclass)"
974
+ },
975
+ "observaciones": {
976
+ "name": "observaciones",
977
+ "type": "character varying(5000)",
978
+ "notNull": false
979
+ },
980
+ "ultvigenciaini": {
981
+ "name": "ultvigenciaini",
982
+ "type": "date",
983
+ "notNull": false
984
+ },
985
+ "ultvigenciafin": {
986
+ "name": "ultvigenciafin",
987
+ "type": "date",
988
+ "notNull": false
989
+ },
990
+ "svgruta": {
991
+ "name": "svgruta",
992
+ "type": "character varying",
993
+ "notNull": false
994
+ },
995
+ "svgcdx": {
996
+ "name": "svgcdx",
997
+ "type": "integer",
998
+ "notNull": false
999
+ },
1000
+ "svgcdy": {
1001
+ "name": "svgcdy",
1002
+ "type": "integer",
1003
+ "notNull": false
1004
+ },
1005
+ "svgcdancho": {
1006
+ "name": "svgcdancho",
1007
+ "type": "integer",
1008
+ "notNull": false
1009
+ },
1010
+ "svgcdalto": {
1011
+ "name": "svgcdalto",
1012
+ "type": "integer",
1013
+ "notNull": false
1014
+ },
1015
+ "svgrotx": {
1016
+ "name": "svgrotx",
1017
+ "type": "double precision",
1018
+ "notNull": false
1019
+ },
1020
+ "svgroty": {
1021
+ "name": "svgroty",
1022
+ "type": "double precision",
1023
+ "notNull": false
1024
+ }
1025
+ },
1026
+ "constraints": [
1027
+ {
1028
+ "name": "msip_centropoblado_check",
1029
+ "kind": "check",
1030
+ "definition": "CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))",
1031
+ "columns": [
1032
+ "(fechadeshabilitacion"
1033
+ ]
1034
+ },
1035
+ {
1036
+ "name": "msip_centropoblado_id_municipio_id_cplocal_key",
1037
+ "kind": "unique",
1038
+ "definition": "UNIQUE (municipio_id, cplocal_cod)",
1039
+ "columns": [
1040
+ "municipio_id",
1041
+ "cplocal_cod"
1042
+ ]
1043
+ },
1044
+ {
1045
+ "name": "msip_centropoblado_id_uniq",
1046
+ "kind": "unique",
1047
+ "definition": "UNIQUE (id)",
1048
+ "columns": [
1049
+ "id"
1050
+ ]
1051
+ },
1052
+ {
1053
+ "name": "msip_centropoblado_municipio_id_id_unico",
1054
+ "kind": "unique",
1055
+ "definition": "UNIQUE (municipio_id, id)",
1056
+ "columns": [
1057
+ "municipio_id",
1058
+ "id"
1059
+ ]
1060
+ },
1061
+ {
1062
+ "name": "msip_centropoblado_pkey",
1063
+ "kind": "primary-key",
1064
+ "definition": "PRIMARY KEY (id)",
1065
+ "columns": [
1066
+ "id"
1067
+ ]
1068
+ },
1069
+ {
1070
+ "name": "fk_rails_fb09f016e4",
1071
+ "kind": "foreign-key",
1072
+ "definition": "FOREIGN KEY (municipio_id) REFERENCES public.msip_municipio(id)",
1073
+ "columns": [
1074
+ "municipio_id"
1075
+ ],
1076
+ "references": {
1077
+ "table": "msip_municipio",
1078
+ "columns": [
1079
+ "id"
1080
+ ]
1081
+ }
1082
+ },
1083
+ {
1084
+ "name": "msip_centropoblado_municipio_id_fkey",
1085
+ "kind": "foreign-key",
1086
+ "definition": "FOREIGN KEY (municipio_id) REFERENCES public.msip_municipio(id)",
1087
+ "columns": [
1088
+ "municipio_id"
1089
+ ],
1090
+ "references": {
1091
+ "table": "msip_municipio",
1092
+ "columns": [
1093
+ "id"
1094
+ ]
1095
+ }
1096
+ }
1097
+ ]
1098
+ }
1099
+ },
1100
+ "counts": {
1101
+ "usuario": 32,
1102
+ "billetera_usuario": 5,
1103
+ "msip_pais": 30,
1104
+ "msip_departamento": 24,
1105
+ "msip_municipio": 22,
1106
+ "msip_centropoblado": 21
1107
+ }
1108
+ };
1109
+ 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> --extensions <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/learn.tg/apps/nextjs/db/structure.sql (sha256 52217f2b52df2b2dcf3de529844caa80644c50cd277ed41a09230b27d54b57cd)\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.billetera_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 id integer DEFAULT nextval('public.usuario_id_seq'::regclass) NOT NULL,\n nusuario character varying(15) NOT NULL,\n password character varying(64) DEFAULT ''::character varying NOT NULL,\n nombre character varying(50),\n descripcion character varying(50),\n rol integer DEFAULT 7,\n idioma character varying(6) DEFAULT 'es_CO'::character varying NOT NULL,\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 fechacreacion date DEFAULT ('now'::text)::date NOT NULL,\n fechadeshabilitacion date,\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 failed_attempts integer DEFAULT 0,\n unlock_token character varying(255),\n locked_at timestamp without time zone,\n oficina_id integer,\n tema_id integer,\n foto_file_name character varying,\n foto_content_type character varying,\n foto_file_size bigint,\n foto_updated_at timestamp without time zone,\n religion_id integer,\n pais_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.billetera_usuario (\n id bigint NOT NULL,\n billetera character varying(60) NOT NULL,\n usuario_id integer NOT NULL,\n created_at timestamp without time zone NOT NULL,\n updated_at timestamp without time zone NOT NULL\n);\n\nCREATE TABLE public.msip_pais (\n id integer NOT NULL,\n nombre character varying(200) NOT NULL,\n nombreiso_espanol character varying(200) NOT NULL,\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 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 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 indicativo character varying(10),\n timezone character varying(63),\n tipo_region smallint,\n CONSTRAINT msip_pais_tipo_region_check CHECK ((tipo_region = ANY (ARRAY[1, 2]))),\n CONSTRAINT pais_check CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))\n);\n\nCREATE TABLE public.msip_departamento (\n deplocal_cod integer,\n nombre character varying(500) NOT NULL,\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 pais_id integer DEFAULT 0 NOT NULL,\n id integer DEFAULT nextval('public.msip_departamento_id_seq'::regclass) NOT NULL,\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 timezone character varying(63),\n CONSTRAINT departamento_check CHECK (((fechadeshabilitacion IS NULL) OR (fechadeshabilitacion >= fechacreacion)))\n);\n\nCREATE TABLE public.msip_municipio (\n munlocal_cod integer,\n nombre character varying(500) NOT NULL,\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 departamento_id integer,\n id integer DEFAULT nextval('public.msip_municipio_id_seq'::regclass) NOT NULL,\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 cplocal_cod integer,\n nombre character varying(500) NOT NULL,\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 municipio_id integer,\n id integer DEFAULT nextval('public.msip_centropoblado_id_seq'::regclass) NOT NULL,\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_nusuario_key UNIQUE (nusuario);\n\nALTER TABLE ONLY public.usuario\n ADD CONSTRAINT usuario_pkey PRIMARY KEY (id);\n\nALTER TABLE ONLY public.billetera_usuario\n ADD CONSTRAINT billetera_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 msip_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 msip_municipio_id_key UNIQUE (id);\n\nALTER TABLE ONLY public.msip_municipio\n ADD CONSTRAINT msip_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_id_uniq UNIQUE (id);\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.usuario\n ADD CONSTRAINT fk_rails_4649f3efec FOREIGN KEY (pais_id) REFERENCES public.msip_pais(id);\n\nALTER TABLE ONLY public.billetera_usuario\n ADD CONSTRAINT fk_rails_16c33c90b0 FOREIGN KEY (usuario_id) REFERENCES public.usuario(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_municipio_id_fkey FOREIGN KEY (municipio_id) REFERENCES public.msip_municipio(id);\n\nALTER TABLE ONLY public.billetera_usuario ALTER COLUMN id SET DEFAULT nextval('public.billetera_usuario_id_seq'::regclass);\n\nALTER TABLE ONLY public.msip_pais ALTER COLUMN id SET DEFAULT nextval('public.msip_pais_id_seq'::regclass);\n";
1110
+ //# sourceMappingURL=baseline.generated.js.map