From ce1727525bde0969724d1dfb8375e03ea5f5fe39 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 8 Apr 2026 20:14:15 -0400 Subject: [PATCH] archivos de la bd de drizzle y borrado embajada de estado, municipio y parroquia --- .../0027_concerned_captain_flint.sql | 1 + .../migrations/meta/0027_snapshot.json | 2106 +++++++++++++++++ .../database/migrations/meta/_journal.json | 7 + .../database/seeds/default/Municipalities.ts | 412 +--- .../src/database/seeds/default/Parishes.ts | 512 +--- apps/api/src/database/seeds/default/States.ts | 6 +- 6 files changed, 2117 insertions(+), 927 deletions(-) create mode 100644 apps/api/src/database/migrations/0027_concerned_captain_flint.sql create mode 100644 apps/api/src/database/migrations/meta/0027_snapshot.json diff --git a/apps/api/src/database/migrations/0027_concerned_captain_flint.sql b/apps/api/src/database/migrations/0027_concerned_captain_flint.sql new file mode 100644 index 0000000..2be2b3c --- /dev/null +++ b/apps/api/src/database/migrations/0027_concerned_captain_flint.sql @@ -0,0 +1 @@ +ALTER TABLE "training_surveys" ADD COLUMN "survey_status" text DEFAULT 'PUBLICADO' NOT NULL; \ No newline at end of file diff --git a/apps/api/src/database/migrations/meta/0027_snapshot.json b/apps/api/src/database/migrations/meta/0027_snapshot.json new file mode 100644 index 0000000..ec3f656 --- /dev/null +++ b/apps/api/src/database/migrations/meta/0027_snapshot.json @@ -0,0 +1,2106 @@ +{ + "id": "09bf34ef-0ebd-4331-b4a4-3b9765672b07", + "prevId": "5081425f-21df-45be-922a-da0032da1efc", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.activity_logs": { + "name": "activity_logs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "timestamp": { + "name": "timestamp", + "type": "timestamp", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "activityLogs_idx": { + "name": "activityLogs_idx", + "columns": [ + { + "expression": "type", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "activity_logs_user_id_users_id_fk": { + "name": "activity_logs_user_id_users_id_fk", + "tableFrom": "activity_logs", + "tableTo": "users", + "schemaTo": "auth", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "auth.roles": { + "name": "roles", + "schema": "auth", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "roles_idx": { + "name": "roles_idx", + "columns": [ + { + "expression": "name", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "auth.sessions": { + "name": "sessions", + "schema": "auth", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "session_token": { + "name": "session_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "previous_session_token": { + "name": "previous_session_token", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "last_rotated_at": { + "name": "last_rotated_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "sessions_idx": { + "name": "sessions_idx", + "columns": [ + { + "expression": "session_token", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "sessions_user_id_users_id_fk": { + "name": "sessions_user_id_users_id_fk", + "tableFrom": "sessions", + "tableTo": "users", + "schemaTo": "auth", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "auth.users": { + "name": "users", + "schema": "auth", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "username": { + "name": "username", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "fullname": { + "name": "fullname", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "phone": { + "name": "phone", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "password": { + "name": "password", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "state": { + "name": "state", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "municipality": { + "name": "municipality", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "parish": { + "name": "parish", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "is_two_factor_enabled": { + "name": "is_two_factor_enabled", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "two_factor_secret": { + "name": "two_factor_secret", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "is_email_verified": { + "name": "is_email_verified", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "is_active": { + "name": "is_active", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "users_idx": { + "name": "users_idx", + "columns": [ + { + "expression": "username", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "users_state_states_id_fk": { + "name": "users_state_states_id_fk", + "tableFrom": "users", + "tableTo": "states", + "columnsFrom": [ + "state" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "users_municipality_municipalities_id_fk": { + "name": "users_municipality_municipalities_id_fk", + "tableFrom": "users", + "tableTo": "municipalities", + "columnsFrom": [ + "municipality" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "users_parish_parishes_id_fk": { + "name": "users_parish_parishes_id_fk", + "tableFrom": "users", + "tableTo": "parishes", + "columnsFrom": [ + "parish" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "users_username_unique": { + "name": "users_username_unique", + "nullsNotDistinct": false, + "columns": [ + "username" + ] + }, + "users_email_unique": { + "name": "users_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "auth.user_role": { + "name": "user_role", + "schema": "auth", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "role_id": { + "name": "role_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "user_role_idx": { + "name": "user_role_idx", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "user_role_user_id_users_id_fk": { + "name": "user_role_user_id_users_id_fk", + "tableFrom": "user_role", + "tableTo": "users", + "schemaTo": "auth", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "user_role_role_id_roles_id_fk": { + "name": "user_role_role_id_roles_id_fk", + "tableFrom": "user_role", + "tableTo": "roles", + "schemaTo": "auth", + "columnsFrom": [ + "role_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "auth.verificationToken": { + "name": "verificationToken", + "schema": "auth", + "columns": { + "identifier": { + "name": "identifier", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "code": { + "name": "code", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "expires": { + "name": "expires", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "ip_address": { + "name": "ip_address", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.category_type": { + "name": "category_type", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "group": { + "name": "group", + "type": "varchar(100)", + "primaryKey": false, + "notNull": true + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "category_typeIx0": { + "name": "category_typeIx0", + "columns": [ + { + "expression": "group", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "category_typeIx1": { + "name": "category_typeIx1", + "columns": [ + { + "expression": "description", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.localities": { + "name": "localities", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "state_id": { + "name": "state_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "municipality_id": { + "name": "municipality_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "parish_id": { + "name": "parish_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "localities_index_03": { + "name": "localities_index_03", + "columns": [ + { + "expression": "state_id", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "municipality_id", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "parish_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": true, + "concurrently": false, + "method": "btree", + "with": {} + }, + "localities_index_00": { + "name": "localities_index_00", + "columns": [ + { + "expression": "state_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "localities_index_01": { + "name": "localities_index_01", + "columns": [ + { + "expression": "municipality_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "localities_index_02": { + "name": "localities_index_02", + "columns": [ + { + "expression": "parish_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "localities_state_id_states_id_fk": { + "name": "localities_state_id_states_id_fk", + "tableFrom": "localities", + "tableTo": "states", + "columnsFrom": [ + "state_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "localities_municipality_id_municipalities_id_fk": { + "name": "localities_municipality_id_municipalities_id_fk", + "tableFrom": "localities", + "tableTo": "municipalities", + "columnsFrom": [ + "municipality_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "localities_parish_id_parishes_id_fk": { + "name": "localities_parish_id_parishes_id_fk", + "tableFrom": "localities", + "tableTo": "parishes", + "columnsFrom": [ + "parish_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "localities_name_unique": { + "name": "localities_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.municipalities": { + "name": "municipalities", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "state_id": { + "name": "state_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "municipalities_index_00": { + "name": "municipalities_index_00", + "columns": [ + { + "expression": "id", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "name", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "state_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "municipalities_state_id_states_id_fk": { + "name": "municipalities_state_id_states_id_fk", + "tableFrom": "municipalities", + "tableTo": "states", + "columnsFrom": [ + "state_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.parishes": { + "name": "parishes", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "municipality_id": { + "name": "municipality_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "parishes_index_00": { + "name": "parishes_index_00", + "columns": [ + { + "expression": "id", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "name", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "municipality_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "parishes_municipality_id_municipalities_id_fk": { + "name": "parishes_municipality_id_municipalities_id_fk", + "tableFrom": "parishes", + "tableTo": "municipalities", + "columnsFrom": [ + "municipality_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.states": { + "name": "states", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "states_index_00": { + "name": "states_index_00", + "columns": [ + { + "expression": "id", + "isExpression": false, + "asc": true, + "nulls": "last" + }, + { + "expression": "name", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.products": { + "name": "products", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "price": { + "name": "price", + "type": "numeric", + "primaryKey": false, + "notNull": true, + "default": "'0'" + }, + "stock": { + "name": "stock", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + }, + "address": { + "name": "address", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "url_img": { + "name": "url_img", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "gallery": { + "name": "gallery", + "type": "text[]", + "primaryKey": false, + "notNull": true, + "default": "'{}'::text[]" + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'BORRADOR'" + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "products_user_id_users_id_fk": { + "name": "products_user_id_users_id_fk", + "tableFrom": "products", + "tableTo": "users", + "schemaTo": "auth", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.answers_surveys": { + "name": "answers_surveys", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "survey_id": { + "name": "survey_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "answers": { + "name": "answers", + "type": "jsonb", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "answers_index_00": { + "name": "answers_index_00", + "columns": [ + { + "expression": "answers", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "answers_index_01": { + "name": "answers_index_01", + "columns": [ + { + "expression": "survey_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + }, + "answers_index_02": { + "name": "answers_index_02", + "columns": [ + { + "expression": "user_id", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "answers_surveys_survey_id_surveys_id_fk": { + "name": "answers_surveys_survey_id_surveys_id_fk", + "tableFrom": "answers_surveys", + "tableTo": "surveys", + "columnsFrom": [ + "survey_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "answers_surveys_user_id_users_id_fk": { + "name": "answers_surveys_user_id_users_id_fk", + "tableFrom": "answers_surveys", + "tableTo": "users", + "schemaTo": "auth", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.surveys": { + "name": "surveys", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "target_audience": { + "name": "target_audience", + "type": "varchar(50)", + "primaryKey": false, + "notNull": true + }, + "closing_date": { + "name": "closing_date", + "type": "date", + "primaryKey": false, + "notNull": false + }, + "published": { + "name": "published", + "type": "boolean", + "primaryKey": false, + "notNull": true + }, + "questions": { + "name": "questions", + "type": "jsonb", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "surveys_index_00": { + "name": "surveys_index_00", + "columns": [ + { + "expression": "title", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.training_surveys": { + "name": "training_surveys", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "coor_full_name": { + "name": "coor_full_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "visit_date": { + "name": "visit_date", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "coor_phone": { + "name": "coor_phone", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "state": { + "name": "state", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "municipality": { + "name": "municipality", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "parish": { + "name": "parish", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "osp_type": { + "name": "osp_type", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "eco_sector": { + "name": "eco_sector", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "productive_sector": { + "name": "productive_sector", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "central_productive_activity": { + "name": "central_productive_activity", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "main_productive_activity": { + "name": "main_productive_activity", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "productive_activity": { + "name": "productive_activity", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "productive_activity_other": { + "name": "productive_activity_other", + "type": "text", + "primaryKey": false, + "notNull": false, + "default": "''" + }, + "osp_rif": { + "name": "osp_rif", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "osp_name": { + "name": "osp_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "company_constitution_year": { + "name": "company_constitution_year", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "current_status": { + "name": "current_status", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'ACTIVA'" + }, + "infrastructure_mt2": { + "name": "infrastructure_mt2", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "has_transport": { + "name": "has_transport", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "structure_type": { + "name": "structure_type", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "is_open_space": { + "name": "is_open_space", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "paralysis_reason": { + "name": "paralysis_reason", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "equipment_list": { + "name": "equipment_list", + "type": "jsonb", + "primaryKey": false, + "notNull": true, + "default": "'[]'::jsonb" + }, + "production_list": { + "name": "production_list", + "type": "jsonb", + "primaryKey": false, + "notNull": true, + "default": "'[]'::jsonb" + }, + "product_list": { + "name": "product_list", + "type": "jsonb", + "primaryKey": false, + "notNull": true, + "default": "'[]'::jsonb" + }, + "osp_address": { + "name": "osp_address", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "osp_google_maps_link": { + "name": "osp_google_maps_link", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "commune_name": { + "name": "commune_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "situr_code_commune": { + "name": "situr_code_commune", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "commune_rif": { + "name": "commune_rif", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "commune_spokesperson_name": { + "name": "commune_spokesperson_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "commune_spokesperson_cedula": { + "name": "commune_spokesperson_cedula", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "commune_spokesperson_rif": { + "name": "commune_spokesperson_rif", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "commune_spokesperson_phone": { + "name": "commune_spokesperson_phone", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "commune_email": { + "name": "commune_email", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "communal_council": { + "name": "communal_council", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "situr_code_communal_council": { + "name": "situr_code_communal_council", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "communal_council_rif": { + "name": "communal_council_rif", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "communal_council_spokesperson_name": { + "name": "communal_council_spokesperson_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "communal_council_spokesperson_cedula": { + "name": "communal_council_spokesperson_cedula", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "communal_council_spokesperson_rif": { + "name": "communal_council_spokesperson_rif", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "communal_council_spokesperson_phone": { + "name": "communal_council_spokesperson_phone", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "communal_council_email": { + "name": "communal_council_email", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "''" + }, + "osp_responsible_fullname": { + "name": "osp_responsible_fullname", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "osp_responsible_cedula": { + "name": "osp_responsible_cedula", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "osp_responsible_rif": { + "name": "osp_responsible_rif", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "civil_state": { + "name": "civil_state", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "osp_responsible_phone": { + "name": "osp_responsible_phone", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "osp_responsible_email": { + "name": "osp_responsible_email", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "family_burden": { + "name": "family_burden", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "number_of_children": { + "name": "number_of_children", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "general_observations": { + "name": "general_observations", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "internal_distribution_zone": { + "name": "internal_distribution_zone", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "is_exporting": { + "name": "is_exporting", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + }, + "external_country": { + "name": "external_country", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "external_city": { + "name": "external_city", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "external_description": { + "name": "external_description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "external_quantity": { + "name": "external_quantity", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "external_unit": { + "name": "external_unit", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "women_count": { + "name": "women_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + }, + "men_count": { + "name": "men_count", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + }, + "photo1": { + "name": "photo1", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "photo2": { + "name": "photo2", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "photo3": { + "name": "photo3", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_by": { + "name": "created_by", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "updated_by": { + "name": "updated_by", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "survey_status": { + "name": "survey_status", + "type": "text", + "primaryKey": false, + "notNull": true, + "default": "'PUBLICADO'" + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp (3)", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "training_surveys_index_00": { + "name": "training_surveys_index_00", + "columns": [ + { + "expression": "coor_full_name", + "isExpression": false, + "asc": true, + "nulls": "last" + } + ], + "isUnique": false, + "concurrently": false, + "method": "btree", + "with": {} + } + }, + "foreignKeys": { + "training_surveys_state_states_id_fk": { + "name": "training_surveys_state_states_id_fk", + "tableFrom": "training_surveys", + "tableTo": "states", + "columnsFrom": [ + "state" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "training_surveys_municipality_municipalities_id_fk": { + "name": "training_surveys_municipality_municipalities_id_fk", + "tableFrom": "training_surveys", + "tableTo": "municipalities", + "columnsFrom": [ + "municipality" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "training_surveys_parish_parishes_id_fk": { + "name": "training_surveys_parish_parishes_id_fk", + "tableFrom": "training_surveys", + "tableTo": "parishes", + "columnsFrom": [ + "parish" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "training_surveys_created_by_users_id_fk": { + "name": "training_surveys_created_by_users_id_fk", + "tableFrom": "training_surveys", + "tableTo": "users", + "schemaTo": "auth", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "training_surveys_updated_by_users_id_fk": { + "name": "training_surveys_updated_by_users_id_fk", + "tableFrom": "training_surveys", + "tableTo": "users", + "schemaTo": "auth", + "columnsFrom": [ + "updated_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": { + "auth.gender": { + "name": "gender", + "schema": "auth", + "values": [ + "FEMENINO", + "MASCULINO" + ] + }, + "public.nationality": { + "name": "nationality", + "schema": "public", + "values": [ + "VENEZOLANO", + "EXTRANJERO" + ] + }, + "auth.status": { + "name": "status", + "schema": "auth", + "values": [ + "ACTIVE", + "INACTIVE" + ] + } + }, + "schemas": { + "auth": "auth" + }, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": { + "auth.user_access_view": { + "columns": { + "userId": { + "name": "userId", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "username": { + "name": "username", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "role_id": { + "name": "role_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "role_name": { + "name": "role_name", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "definition": "\n SELECT\n u.id AS user_id,\n u.username,\n u.email,\n u.fullname,\n r.id AS role_id,\n r.name AS role_name\nFROM\n auth.users u\nLEFT JOIN\n auth.user_role ur ON u.id = ur.user_id \nLEFT JOIN\n auth.roles r ON ur.role_id = r.id", + "name": "user_access_view", + "schema": "auth", + "isExisting": false, + "materialized": false + }, + "public.v_product_store": { + "columns": { + "product_id": { + "name": "product_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "price": { + "name": "price", + "type": "numeric", + "primaryKey": false, + "notNull": false + }, + "stock": { + "name": "stock", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "url_img": { + "name": "url_img", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "gallery": { + "name": "gallery", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "address": { + "name": "address", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "status": { + "name": "status", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "fullname": { + "name": "fullname", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "phone": { + "name": "phone", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "definition": "\n select p.id as product_id, p.title, p.description, p.price, p.stock, p.url_img, p.gallery, p.address, p.status, p.user_id, u.fullname, u.email, u.phone\n from products p\n left join auth.users as u on u.id = p.user_id", + "name": "v_product_store", + "schema": "public", + "isExisting": false, + "materialized": false + }, + "public.v_surveys": { + "columns": { + "survey_id": { + "name": "survey_id", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "closing_date": { + "name": "closing_date", + "type": "date", + "primaryKey": false, + "notNull": false + }, + "target_audience": { + "name": "target_audience", + "type": "varchar", + "primaryKey": false, + "notNull": false + } + }, + "definition": "select id as survey_id, title, description, created_at, closing_date, target_audience from surveys\nwhere published = true", + "name": "v_surveys", + "schema": "public", + "isExisting": false, + "materialized": false + } + }, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/apps/api/src/database/migrations/meta/_journal.json b/apps/api/src/database/migrations/meta/_journal.json index 2144e55..aeeb74e 100644 --- a/apps/api/src/database/migrations/meta/_journal.json +++ b/apps/api/src/database/migrations/meta/_journal.json @@ -190,6 +190,13 @@ "when": 1774379641691, "tag": "0026_last_vampiro", "breakpoints": true + }, + { + "idx": 27, + "version": "7", + "when": 1775675160189, + "tag": "0027_concerned_captain_flint", + "breakpoints": true } ] } \ No newline at end of file diff --git a/apps/api/src/database/seeds/default/Municipalities.ts b/apps/api/src/database/seeds/default/Municipalities.ts index 3a43447..19945d3 100644 --- a/apps/api/src/database/seeds/default/Municipalities.ts +++ b/apps/api/src/database/seeds/default/Municipalities.ts @@ -1673,415 +1673,5 @@ export const Municipalities = [ id: 335, name: 'MP. VARGAS', stateId: 24, - }, - { - id: 336, - name: 'ALEMANIA', - stateId: 99, - }, - { - id: 337, - name: 'ANGOLA', - stateId: 99, - }, - { - id: 338, - name: 'ANTIGUA Y BARBUDA', - stateId: 99, - }, - { - id: 339, - name: 'ARABIA SAUDITA', - stateId: 99, - }, - { - id: 340, - name: 'ARGELIA', - stateId: 99, - }, - { - id: 341, - name: 'ARGENTINA', - stateId: 99, - }, - { - id: 342, - name: 'AUSTRALIA', - stateId: 99, - }, - { - id: 343, - name: 'AUSTRIA', - stateId: 99, - }, - { - id: 344, - name: 'BARBADOS', - stateId: 99, - }, - { - id: 345, - name: 'BELGICA', - stateId: 99, - }, - { - id: 346, - name: 'BELICE', - stateId: 99, - }, - { - id: 347, - name: 'BENIN', - stateId: 99, - }, - { - id: 348, - name: 'BIELORRUSIA', - stateId: 99, - }, - { - id: 349, - name: 'BOLIVIA', - stateId: 99, - }, - { - id: 350, - name: 'BRASIL', - stateId: 99, - }, - { - id: 351, - name: 'CHILE', - stateId: 99, - }, - { - id: 352, - name: 'CHINA', - stateId: 99, - }, - { - id: 353, - name: 'COLOMBIA', - stateId: 99, - }, - { - id: 354, - name: 'CONGO', - stateId: 99, - }, - { - id: 355, - name: 'COREA', - stateId: 99, - }, - { - id: 356, - name: 'COSTA RICA', - stateId: 99, - }, - { - id: 357, - name: 'CUBA', - stateId: 99, - }, - { - id: 358, - name: 'DOMINICA', - stateId: 99, - }, - { - id: 359, - name: 'ECUADOR', - stateId: 99, - }, - { - id: 360, - name: 'EGIPTO', - stateId: 99, - }, - { - id: 361, - name: 'EMIRATOS ARABES UNID', - stateId: 99, - }, - { - id: 362, - name: 'ESPAÑA', - stateId: 99, - }, - { - id: 363, - name: 'ETIOPIA', - stateId: 99, - }, - { - id: 364, - name: 'FILIPINAS', - stateId: 99, - }, - { - id: 365, - name: 'FRANCIA', - stateId: 99, - }, - { - id: 366, - name: 'GRAN BRETAÑA', - stateId: 99, - }, - { - id: 367, - name: 'GRECIA', - stateId: 99, - }, - { - id: 368, - name: 'GRENADA', - stateId: 99, - }, - { - id: 369, - name: 'GUAYANA', - stateId: 99, - }, - { - id: 370, - name: 'GUINEA ECUATORIAL', - stateId: 99, - }, - { - id: 371, - name: 'HAITI', - stateId: 99, - }, - { - id: 372, - name: 'HONDURAS', - stateId: 99, - }, - { - id: 373, - name: 'HUNGRIA', - stateId: 99, - }, - { - id: 374, - name: 'INDIA', - stateId: 99, - }, - { - id: 375, - name: 'INDONESIA', - stateId: 99, - }, - { - id: 376, - name: 'IRAK', - stateId: 99, - }, - { - id: 377, - name: 'IRAN', - stateId: 99, - }, - { - id: 378, - name: 'ITALIA', - stateId: 99, - }, - { - id: 379, - name: 'JAMAICA', - stateId: 99, - }, - { - id: 380, - name: 'JAPON', - stateId: 99, - }, - { - id: 381, - name: 'JORDANIA', - stateId: 99, - }, - { - id: 382, - name: 'KENIA', - stateId: 99, - }, - { - id: 383, - name: 'KUWAIT', - stateId: 99, - }, - { - id: 384, - name: 'LIBANO', - stateId: 99, - }, - { - id: 385, - name: 'MALASIA', - stateId: 99, - }, - { - id: 386, - name: 'MALI', - stateId: 99, - }, - { - id: 387, - name: 'MARRUECOS', - stateId: 99, - }, - { - id: 388, - name: 'MEXICO', - stateId: 99, - }, - { - id: 389, - name: 'MOZAMBIQUE', - stateId: 99, - }, - { - id: 390, - name: 'NAMIBIA', - stateId: 99, - }, - { - id: 391, - name: 'NICARAGUA', - stateId: 99, - }, - { - id: 392, - name: 'NIGERIA', - stateId: 99, - }, - { - id: 393, - name: 'NORUEGA', - stateId: 99, - }, - { - id: 394, - name: 'PAISES BAJOS', - stateId: 99, - }, - { - id: 395, - name: 'PALESTINA', - stateId: 99, - }, - { - id: 396, - name: 'PANAMA', - stateId: 99, - }, - { - id: 397, - name: 'PERU', - stateId: 99, - }, - { - id: 398, - name: 'POLONIA', - stateId: 99, - }, - { - id: 399, - name: 'PORTUGAL', - stateId: 99, - }, - { - id: 400, - name: 'QATAR', - stateId: 99, - }, - { - id: 401, - name: 'REPUBLICA DOMINICANA', - stateId: 99, - }, - { - id: 402, - name: 'RUMANIA', - stateId: 99, - }, - { - id: 403, - name: 'RUSIA', - stateId: 99, - }, - { - id: 404, - name: 'SAN KITTS Y NEVIS', - stateId: 99, - }, - { - id: 405, - name: 'SANTA LUCIA', - stateId: 99, - }, - { - id: 406, - name: 'SAN VICENTE Y LAS GR', - stateId: 99, - }, - { - id: 407, - name: 'SENEGAL', - stateId: 99, - }, - { - id: 408, - name: 'SERBIA', - stateId: 99, - }, - { - id: 409, - name: 'SINGAPUR', - stateId: 99, - }, - { - id: 410, - name: 'SIRIA', - stateId: 99, - }, - { - id: 411, - name: 'SUDAFRICA', - stateId: 99, - }, - { - id: 412, - name: 'SUIZA', - stateId: 99, - }, - { - id: 413, - name: 'SURINAME', - stateId: 99, - }, - { - id: 414, - name: 'TRINIDAD Y TOBAGO', - stateId: 99, - }, - { - id: 415, - name: 'TURQUIA', - stateId: 99, - }, - { - id: 416, - name: 'URUGUAY', - stateId: 99, - }, - { - id: 417, - name: 'VIETNAM', - stateId: 99, - }, + } ]; diff --git a/apps/api/src/database/seeds/default/Parishes.ts b/apps/api/src/database/seeds/default/Parishes.ts index bfa6c2e..eb6dd74 100644 --- a/apps/api/src/database/seeds/default/Parishes.ts +++ b/apps/api/src/database/seeds/default/Parishes.ts @@ -5703,515 +5703,5 @@ export const Parishes = [ id: 1141, name: "PQ. URIMARE", municipalityId: 335, - }, - { - id: 1142, - name: "BERLIN", - municipalityId: 336, - }, - { - id: 1143, - name: "FRANKFURT", - municipalityId: 336, - }, - { - id: 1144, - name: "LUANDA", - municipalityId: 337, - }, - { - id: 1145, - name: "ST. JOHN'S", - municipalityId: 338, - }, - { - id: 1146, - name: "RIYADH", - municipalityId: 339, - }, - { - id: 1147, - name: "ARGEL", - municipalityId: 340, - }, - { - id: 1148, - name: "BUENOS AIRES", - municipalityId: 341, - }, - { - id: 1149, - name: "CABERRA", - municipalityId: 342, - }, - { - id: 1150, - name: "VIENA", - municipalityId: 343, - }, - { - id: 1151, - name: "BRIDGETOWN", - municipalityId: 344, - }, - { - id: 1152, - name: "BRUSELA", - municipalityId: 345, - }, - { - id: 1153, - name: "BELMONPAN", - municipalityId: 346, - }, - { - id: 1154, - name: "COTONOU", - municipalityId: 347, - }, - { - id: 1155, - name: "MINSK", - municipalityId: 348, - }, - { - id: 1156, - name: "LA PAZ", - municipalityId: 349, - }, - { - id: 1157, - name: "BRASILIA", - municipalityId: 350, - }, - { - id: 1158, - name: "SANTIAGO", - municipalityId: 351, - }, - { - id: 1159, - name: "BEIJING", - municipalityId: 352, - }, - { - id: 1160, - name: "HONG KONG", - municipalityId: 352, - }, - { - id: 1161, - name: "NEW", - municipalityId: 352, - }, - { - id: 1162, - name: "SHANGHAI", - municipalityId: 352, - }, - { - id: 1163, - name: "BARRANQUILLA", - municipalityId: 353, - }, - { - id: 1164, - name: "BOGOTA", - municipalityId: 353, - }, - { - id: 1165, - name: "CARTAGENA", - municipalityId: 353, - }, - { - id: 1166, - name: "CUCUTA", - municipalityId: 353, - }, - { - id: 1167, - name: "MEDELLIN", - municipalityId: 353, - }, - { - id: 1168, - name: "RIOHACHA", - municipalityId: 353, - }, - { - id: 1169, - name: "BRAZAVILLE", - municipalityId: 354, - }, - { - id: 1170, - name: "SEUL", - municipalityId: 355, - }, - { - id: 1171, - name: "SAN JOSE", - municipalityId: 356, - }, - { - id: 1172, - name: "LA HABANA", - municipalityId: 357, - }, - { - id: 1173, - name: "ROSEAU", - municipalityId: 358, - }, - { - id: 1174, - name: "GUAYAQUIL", - municipalityId: 359, - }, - { - id: 1175, - name: "QUITO", - municipalityId: 359, - }, - { - id: 1176, - name: "EL CAIRO", - municipalityId: 360, - }, - { - id: 1177, - name: "ABU DHABI", - municipalityId: 361, - }, - { - id: 1178, - name: "BARCELONA", - municipalityId: 362, - }, - { - id: 1179, - name: "BILBAO", - municipalityId: 362, - }, - { - id: 1180, - name: "MADRID", - municipalityId: 362, - }, - { - id: 1181, - name: "SANTA CRUZ DE TENERIFE", - municipalityId: 362, - }, - { - id: 1182, - name: "VIGO", - municipalityId: 362, - }, - { - id: 1183, - name: "ETIOPIA", - municipalityId: 363, - }, - { - id: 1184, - name: "MANILA", - municipalityId: 364, - }, - { - id: 1185, - name: "PARIS", - municipalityId: 365, - }, - { - id: 1186, - name: "LONDRES", - municipalityId: 366, - }, - { - id: 1187, - name: "ATENAS", - municipalityId: 367, - }, - { - id: 1188, - name: "ST. GEORGES", - municipalityId: 368, - }, - { - id: 1189, - name: "GEORGETOWN", - municipalityId: 369, - }, - { - id: 1190, - name: "MALABO", - municipalityId: 370, - }, - { - id: 1191, - name: "PUERTO PRINCIPE", - municipalityId: 371, - }, - { - id: 1192, - name: "TEGUCIGALPA", - municipalityId: 372, - }, - { - id: 1193, - name: "BUDAPEST", - municipalityId: 373, - }, - { - id: 1194, - name: "NUEVA DELHI", - municipalityId: 374, - }, - { - id: 1195, - name: "JAKARTA", - municipalityId: 375, - }, - { - id: 1196, - name: "BAGDAD", - municipalityId: 376, - }, - { - id: 1197, - name: "TEHERAN", - municipalityId: 377, - }, - { - id: 1198, - name: "MILAN", - municipalityId: 378, - }, - { - id: 1199, - name: "NAPOLES", - municipalityId: 378, - }, - { - id: 1200, - name: "ROMA", - municipalityId: 378, - }, - { - id: 1201, - name: "KINGSTON", - municipalityId: 379, - }, - { - id: 1202, - name: "TOKIO", - municipalityId: 380, - }, - { - id: 1203, - name: "AMMAN", - municipalityId: 381, - }, - { - id: 1204, - name: "NAIROBI", - municipalityId: 382, - }, - { - id: 1205, - name: "KUWAIT", - municipalityId: 383, - }, - { - id: 1206, - name: "BEIRUT", - municipalityId: 384, - }, - { - id: 1207, - name: "KUALA LUMPUR", - municipalityId: 385, - }, - { - id: 1208, - name: "MALI", - municipalityId: 386, - }, - { - id: 1209, - name: "RABAT", - municipalityId: 387, - }, - { - id: 1210, - name: "MEXICO", - municipalityId: 388, - }, - { - id: 1211, - name: "MAPUTO", - municipalityId: 389, - }, - { - id: 1212, - name: "WINDHOEK", - municipalityId: 390, - }, - { - id: 1213, - name: "MANAGUA", - municipalityId: 391, - }, - { - id: 1214, - name: "LAGOS", - municipalityId: 392, - }, - { - id: 1215, - name: "OSLO", - municipalityId: 393, - }, - { - id: 1216, - name: "ARUBA", - municipalityId: 394, - }, - { - id: 1217, - name: "CURAZAO", - municipalityId: 394, - }, - { - id: 1218, - name: "LA HAYA", - municipalityId: 394, - }, - { - id: 1219, - name: "PALESTINA", - municipalityId: 395, - }, - { - id: 1220, - name: "PANAMA", - municipalityId: 396, - }, - { - id: 1221, - name: "LIMA", - municipalityId: 397, - }, - { - id: 1222, - name: "VARSOVIA", - municipalityId: 398, - }, - { - id: 1223, - name: "FUNCHAL MADEIRA", - municipalityId: 399, - }, - { - id: 1224, - name: "LISBOA", - municipalityId: 399, - }, - { - id: 1225, - name: "DOHA", - municipalityId: 400, - }, - { - id: 1226, - name: "SANTO DOMINGO", - municipalityId: 401, - }, - { - id: 1227, - name: "BUCAREST", - municipalityId: 402, - }, - { - id: 1228, - name: "MOSCU", - municipalityId: 403, - }, - { - id: 1229, - name: "BASSETERRE", - municipalityId: 404, - }, - { - id: 1230, - name: "CASTRIES", - municipalityId: 405, - }, - { - id: 1231, - name: "KINGSTOWN", - municipalityId: 406, - }, - { - id: 1232, - name: "SENEGAL", - municipalityId: 407, - }, - { - id: 1233, - name: "BELGRADO", - municipalityId: 408, - }, - { - id: 1234, - name: "SINGAPUR", - municipalityId: 409, - }, - { - id: 1235, - name: "DAMASCO", - municipalityId: 410, - }, - { - id: 1236, - name: "PETRORIA", - municipalityId: 411, - }, - { - id: 1237, - name: "BERNA", - municipalityId: 412, - }, - { - id: 1238, - name: "PARAMARIBO", - municipalityId: 413, - }, - { - id: 1239, - name: "PUERTO ESPA A", - municipalityId: 414, - }, - { - id: 1240, - name: "ANKARA", - municipalityId: 415, - }, - { - id: 1241, - name: "NEW", - municipalityId: 415, - }, - { - id: 1242, - name: "MONTEVIDEO", - municipalityId: 416, - }, - { - id: 1243, - name: "VIETNAM", - municipalityId: 417, - }, + } ]; diff --git a/apps/api/src/database/seeds/default/States.ts b/apps/api/src/database/seeds/default/States.ts index 0080ea0..ddc69c6 100644 --- a/apps/api/src/database/seeds/default/States.ts +++ b/apps/api/src/database/seeds/default/States.ts @@ -94,9 +94,5 @@ export const States = [ { id: 21, name: "EDO. ZULIA", - }, - { - id: 99, - name: "EMBAJADA", - }, + } ];