You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5672 lines
140 KiB
5672 lines
140 KiB
|
4 weeks ago
|
{
|
||
|
|
"id": "b00f074f-d5d7-4158-8e54-08e6e926f2f1",
|
||
|
|
"prevId": "73fba167-b287-4e75-945d-78ce984184ff",
|
||
|
|
"version": "7",
|
||
|
|
"dialect": "postgresql",
|
||
|
|
"tables": {
|
||
|
|
"public.medio": {
|
||
|
|
"name": "medio",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"clase": {
|
||
|
|
"name": "clase",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"clave": {
|
||
|
|
"name": "clave",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"publico": {
|
||
|
|
"name": "publico",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"mime": {
|
||
|
|
"name": "mime",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"bytes": {
|
||
|
|
"name": "bytes",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"duracion_s": {
|
||
|
|
"name": "duracion_s",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"ancho": {
|
||
|
|
"name": "ancho",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"alto": {
|
||
|
|
"name": "alto",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"sha256": {
|
||
|
|
"name": "sha256",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"alt": {
|
||
|
|
"name": "alt",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"medio_clase": {
|
||
|
|
"name": "medio_clase",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "clase",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"medio_sha": {
|
||
|
|
"name": "medio_sha",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "sha256",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"medio_clave_unique": {
|
||
|
|
"name": "medio_clave_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"clave"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.pais": {
|
||
|
|
"name": "pais",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"codigo": {
|
||
|
|
"name": "codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"gentilicio": {
|
||
|
|
"name": "gentilicio",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"region": {
|
||
|
|
"name": "region",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.persona": {
|
||
|
|
"name": "persona",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre_legal": {
|
||
|
|
"name": "nombre_legal",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"ipi": {
|
||
|
|
"name": "ipi",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"nacimiento": {
|
||
|
|
"name": "nacimiento",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"defuncion": {
|
||
|
|
"name": "defuncion",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"pais_codigo": {
|
||
|
|
"name": "pais_codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"retrato_id": {
|
||
|
|
"name": "retrato_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"semblanza": {
|
||
|
|
"name": "semblanza",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"persona_nombre": {
|
||
|
|
"name": "persona_nombre",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "nombre",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"persona_pais": {
|
||
|
|
"name": "persona_pais",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "pais_codigo",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"persona_pais_codigo_pais_codigo_fk": {
|
||
|
|
"name": "persona_pais_codigo_pais_codigo_fk",
|
||
|
|
"tableFrom": "persona",
|
||
|
|
"tableTo": "pais",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pais_codigo"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"codigo"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"persona_retrato_id_medio_id_fk": {
|
||
|
|
"name": "persona_retrato_id_medio_id_fk",
|
||
|
|
"tableFrom": "persona",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"retrato_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"persona_slug_unique": {
|
||
|
|
"name": "persona_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.album": {
|
||
|
|
"name": "album",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"estilo_id": {
|
||
|
|
"name": "estilo_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"tipo": {
|
||
|
|
"name": "tipo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'album'"
|
||
|
|
},
|
||
|
|
"fecha": {
|
||
|
|
"name": "fecha",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"portada_id": {
|
||
|
|
"name": "portada_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"sello": {
|
||
|
|
"name": "sello",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"resumen": {
|
||
|
|
"name": "resumen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"destacado": {
|
||
|
|
"name": "destacado",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"numero_catalogo": {
|
||
|
|
"name": "numero_catalogo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"formatos": {
|
||
|
|
"name": "formatos",
|
||
|
|
"type": "text[]",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"pais_edicion_codigo": {
|
||
|
|
"name": "pais_edicion_codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"album_estilo": {
|
||
|
|
"name": "album_estilo",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "estilo_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"album_fecha": {
|
||
|
|
"name": "album_fecha",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "fecha",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"album_estilo_id_estilo_id_fk": {
|
||
|
|
"name": "album_estilo_id_estilo_id_fk",
|
||
|
|
"tableFrom": "album",
|
||
|
|
"tableTo": "estilo",
|
||
|
|
"columnsFrom": [
|
||
|
|
"estilo_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"album_portada_id_medio_id_fk": {
|
||
|
|
"name": "album_portada_id_medio_id_fk",
|
||
|
|
"tableFrom": "album",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"portada_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"album_pais_edicion_codigo_pais_codigo_fk": {
|
||
|
|
"name": "album_pais_edicion_codigo_pais_codigo_fk",
|
||
|
|
"tableFrom": "album",
|
||
|
|
"tableTo": "pais",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pais_edicion_codigo"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"codigo"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"album_slug_unique": {
|
||
|
|
"name": "album_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.album_enlace": {
|
||
|
|
"name": "album_enlace",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"album_id": {
|
||
|
|
"name": "album_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"plataforma": {
|
||
|
|
"name": "plataforma",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"name": "url",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"album_enlace_album_id_album_id_fk": {
|
||
|
|
"name": "album_enlace_album_id_album_id_fk",
|
||
|
|
"tableFrom": "album_enlace",
|
||
|
|
"tableTo": "album",
|
||
|
|
"columnsFrom": [
|
||
|
|
"album_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"album_enlace_album_id_plataforma_pk": {
|
||
|
|
"name": "album_enlace_album_id_plataforma_pk",
|
||
|
|
"columns": [
|
||
|
|
"album_id",
|
||
|
|
"plataforma"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.autoria": {
|
||
|
|
"name": "autoria",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"persona_id": {
|
||
|
|
"name": "persona_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"rol": {
|
||
|
|
"name": "rol",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"porcentaje": {
|
||
|
|
"name": "porcentaje",
|
||
|
|
"type": "numeric(5, 2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"autoria_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "autoria_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "autoria",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"autoria_persona_id_persona_id_fk": {
|
||
|
|
"name": "autoria_persona_id_persona_id_fk",
|
||
|
|
"tableFrom": "autoria",
|
||
|
|
"tableTo": "persona",
|
||
|
|
"columnsFrom": [
|
||
|
|
"persona_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"autoria_cancion_id_persona_id_rol_pk": {
|
||
|
|
"name": "autoria_cancion_id_persona_id_rol_pk",
|
||
|
|
"columns": [
|
||
|
|
"cancion_id",
|
||
|
|
"persona_id",
|
||
|
|
"rol"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.cancion": {
|
||
|
|
"name": "cancion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"version_de_id": {
|
||
|
|
"name": "version_de_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"version_nombre": {
|
||
|
|
"name": "version_nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"version_orden": {
|
||
|
|
"name": "version_orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"estilo_id": {
|
||
|
|
"name": "estilo_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"album_id": {
|
||
|
|
"name": "album_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"numero": {
|
||
|
|
"name": "numero",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"audio_id": {
|
||
|
|
"name": "audio_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"muestra_id": {
|
||
|
|
"name": "muestra_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"duracion_s": {
|
||
|
|
"name": "duracion_s",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"ano": {
|
||
|
|
"name": "ano",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"letra": {
|
||
|
|
"name": "letra",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"idioma": {
|
||
|
|
"name": "idioma",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'es'"
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"inspiracion": {
|
||
|
|
"name": "inspiracion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"instrumental": {
|
||
|
|
"name": "instrumental",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"destacada": {
|
||
|
|
"name": "destacada",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"portada_id": {
|
||
|
|
"name": "portada_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"ala_venta": {
|
||
|
|
"name": "ala_venta",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"cancion_estilo": {
|
||
|
|
"name": "cancion_estilo",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "estilo_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"cancion_album": {
|
||
|
|
"name": "cancion_album",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "album_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"cancion_version_de": {
|
||
|
|
"name": "cancion_version_de",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "version_de_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"cancion_destacada": {
|
||
|
|
"name": "cancion_destacada",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "destacada",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"cancion_estilo_id_estilo_id_fk": {
|
||
|
|
"name": "cancion_estilo_id_estilo_id_fk",
|
||
|
|
"tableFrom": "cancion",
|
||
|
|
"tableTo": "estilo",
|
||
|
|
"columnsFrom": [
|
||
|
|
"estilo_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"cancion_album_id_album_id_fk": {
|
||
|
|
"name": "cancion_album_id_album_id_fk",
|
||
|
|
"tableFrom": "cancion",
|
||
|
|
"tableTo": "album",
|
||
|
|
"columnsFrom": [
|
||
|
|
"album_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"cancion_audio_id_medio_id_fk": {
|
||
|
|
"name": "cancion_audio_id_medio_id_fk",
|
||
|
|
"tableFrom": "cancion",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"audio_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"cancion_muestra_id_medio_id_fk": {
|
||
|
|
"name": "cancion_muestra_id_medio_id_fk",
|
||
|
|
"tableFrom": "cancion",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"muestra_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"cancion_portada_id_medio_id_fk": {
|
||
|
|
"name": "cancion_portada_id_medio_id_fk",
|
||
|
|
"tableFrom": "cancion",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"portada_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"cancion_slug_unique": {
|
||
|
|
"name": "cancion_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.cancion_enlace": {
|
||
|
|
"name": "cancion_enlace",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"plataforma": {
|
||
|
|
"name": "plataforma",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"url": {
|
||
|
|
"name": "url",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"cancion_enlace_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "cancion_enlace_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "cancion_enlace",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"cancion_enlace_cancion_id_plataforma_pk": {
|
||
|
|
"name": "cancion_enlace_cancion_id_plataforma_pk",
|
||
|
|
"columns": [
|
||
|
|
"cancion_id",
|
||
|
|
"plataforma"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.cancion_etiqueta": {
|
||
|
|
"name": "cancion_etiqueta",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"etiqueta_id": {
|
||
|
|
"name": "etiqueta_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"cancion_etiqueta_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "cancion_etiqueta_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "cancion_etiqueta",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"cancion_etiqueta_etiqueta_id_etiqueta_id_fk": {
|
||
|
|
"name": "cancion_etiqueta_etiqueta_id_etiqueta_id_fk",
|
||
|
|
"tableFrom": "cancion_etiqueta",
|
||
|
|
"tableTo": "etiqueta",
|
||
|
|
"columnsFrom": [
|
||
|
|
"etiqueta_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"cancion_etiqueta_cancion_id_etiqueta_id_pk": {
|
||
|
|
"name": "cancion_etiqueta_cancion_id_etiqueta_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"cancion_id",
|
||
|
|
"etiqueta_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.cancion_persona": {
|
||
|
|
"name": "cancion_persona",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"persona_id": {
|
||
|
|
"name": "persona_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"rol": {
|
||
|
|
"name": "rol",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"cancion_persona_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "cancion_persona_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "cancion_persona",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"cancion_persona_persona_id_persona_id_fk": {
|
||
|
|
"name": "cancion_persona_persona_id_persona_id_fk",
|
||
|
|
"tableFrom": "cancion_persona",
|
||
|
|
"tableTo": "persona",
|
||
|
|
"columnsFrom": [
|
||
|
|
"persona_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"cancion_persona_cancion_id_persona_id_rol_pk": {
|
||
|
|
"name": "cancion_persona_cancion_id_persona_id_rol_pk",
|
||
|
|
"columns": [
|
||
|
|
"cancion_id",
|
||
|
|
"persona_id",
|
||
|
|
"rol"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.credito_album": {
|
||
|
|
"name": "credito_album",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"album_id": {
|
||
|
|
"name": "album_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"persona_id": {
|
||
|
|
"name": "persona_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"rol": {
|
||
|
|
"name": "rol",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"credito_album_album": {
|
||
|
|
"name": "credito_album_album",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "album_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"credito_album_album_id_album_id_fk": {
|
||
|
|
"name": "credito_album_album_id_album_id_fk",
|
||
|
|
"tableFrom": "credito_album",
|
||
|
|
"tableTo": "album",
|
||
|
|
"columnsFrom": [
|
||
|
|
"album_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"credito_album_persona_id_persona_id_fk": {
|
||
|
|
"name": "credito_album_persona_id_persona_id_fk",
|
||
|
|
"tableFrom": "credito_album",
|
||
|
|
"tableTo": "persona",
|
||
|
|
"columnsFrom": [
|
||
|
|
"persona_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.estilo": {
|
||
|
|
"name": "estilo",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"resumen": {
|
||
|
|
"name": "resumen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"principal": {
|
||
|
|
"name": "principal",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"imagen_id": {
|
||
|
|
"name": "imagen_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"estilo_principal_unico": {
|
||
|
|
"name": "estilo_principal_unico",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "principal",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": true,
|
||
|
|
"where": "\"estilo\".\"principal\"",
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"estilo_orden": {
|
||
|
|
"name": "estilo_orden",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "orden",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"estilo_imagen_id_medio_id_fk": {
|
||
|
|
"name": "estilo_imagen_id_medio_id_fk",
|
||
|
|
"tableFrom": "estilo",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"imagen_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"estilo_slug_unique": {
|
||
|
|
"name": "estilo_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.etiqueta": {
|
||
|
|
"name": "etiqueta",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"etiqueta_slug_unique": {
|
||
|
|
"name": "etiqueta_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.registro_obra": {
|
||
|
|
"name": "registro_obra",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"iswc": {
|
||
|
|
"name": "iswc",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"isrc": {
|
||
|
|
"name": "isrc",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"entidad": {
|
||
|
|
"name": "entidad",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"numero": {
|
||
|
|
"name": "numero",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"editorial": {
|
||
|
|
"name": "editorial",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"registro_obra_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "registro_obra_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "registro_obra",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.traduccion": {
|
||
|
|
"name": "traduccion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"idioma": {
|
||
|
|
"name": "idioma",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"texto": {
|
||
|
|
"name": "texto",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"traduccion_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "traduccion_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "traduccion",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"traduccion_cancion_id_idioma_pk": {
|
||
|
|
"name": "traduccion_cancion_id_idioma_pk",
|
||
|
|
"columns": [
|
||
|
|
"cancion_id",
|
||
|
|
"idioma"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.video": {
|
||
|
|
"name": "video",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"youtube_id": {
|
||
|
|
"name": "youtube_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"video_cancion": {
|
||
|
|
"name": "video_cancion",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "cancion_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"video_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "video_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "video",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.acepcion": {
|
||
|
|
"name": "acepcion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"termino_id": {
|
||
|
|
"name": "termino_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"numero": {
|
||
|
|
"name": "numero",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"categoria": {
|
||
|
|
"name": "categoria",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"definicion": {
|
||
|
|
"name": "definicion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"ampliacion": {
|
||
|
|
"name": "ampliacion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"ejemplo": {
|
||
|
|
"name": "ejemplo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"acepcion_numero": {
|
||
|
|
"name": "acepcion_numero",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "termino_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expression": "numero",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": true,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"acepcion_termino_id_termino_id_fk": {
|
||
|
|
"name": "acepcion_termino_id_termino_id_fk",
|
||
|
|
"tableFrom": "acepcion",
|
||
|
|
"tableTo": "termino",
|
||
|
|
"columnsFrom": [
|
||
|
|
"termino_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.animo": {
|
||
|
|
"name": "animo",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"codigo": {
|
||
|
|
"name": "codigo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"gems": {
|
||
|
|
"name": "gems",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"valencia": {
|
||
|
|
"name": "valencia",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"energia": {
|
||
|
|
"name": "energia",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"descripcion": {
|
||
|
|
"name": "descripcion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"animo_codigo_unique": {
|
||
|
|
"name": "animo_codigo_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"codigo"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.cancion_genero": {
|
||
|
|
"name": "cancion_genero",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"cancion_genero_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "cancion_genero_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "cancion_genero",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"cancion_genero_genero_id_genero_id_fk": {
|
||
|
|
"name": "cancion_genero_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "cancion_genero",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"cancion_genero_cancion_id_genero_id_pk": {
|
||
|
|
"name": "cancion_genero_cancion_id_genero_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"cancion_id",
|
||
|
|
"genero_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.capitulo": {
|
||
|
|
"name": "capitulo",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"tipo": {
|
||
|
|
"name": "tipo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"resumen": {
|
||
|
|
"name": "resumen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"cuerpo": {
|
||
|
|
"name": "cuerpo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"capitulo_tipo": {
|
||
|
|
"name": "capitulo_tipo",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "tipo",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expression": "orden",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"capitulo_genero_id_genero_id_fk": {
|
||
|
|
"name": "capitulo_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "capitulo",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"capitulo_slug_unique": {
|
||
|
|
"name": "capitulo_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.capitulo_acepcion": {
|
||
|
|
"name": "capitulo_acepcion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"capitulo_id": {
|
||
|
|
"name": "capitulo_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"acepcion_id": {
|
||
|
|
"name": "acepcion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"automatico": {
|
||
|
|
"name": "automatico",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"confirmado": {
|
||
|
|
"name": "confirmado",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"capitulo_acepcion_capitulo_id_capitulo_id_fk": {
|
||
|
|
"name": "capitulo_acepcion_capitulo_id_capitulo_id_fk",
|
||
|
|
"tableFrom": "capitulo_acepcion",
|
||
|
|
"tableTo": "capitulo",
|
||
|
|
"columnsFrom": [
|
||
|
|
"capitulo_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"capitulo_acepcion_acepcion_id_acepcion_id_fk": {
|
||
|
|
"name": "capitulo_acepcion_acepcion_id_acepcion_id_fk",
|
||
|
|
"tableFrom": "capitulo_acepcion",
|
||
|
|
"tableTo": "acepcion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"acepcion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"capitulo_acepcion_capitulo_id_acepcion_id_pk": {
|
||
|
|
"name": "capitulo_acepcion_capitulo_id_acepcion_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"capitulo_id",
|
||
|
|
"acepcion_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.compas": {
|
||
|
|
"name": "compas",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"codigo": {
|
||
|
|
"name": "codigo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"numerador": {
|
||
|
|
"name": "numerador",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"denominador": {
|
||
|
|
"name": "denominador",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"compas_codigo_unique": {
|
||
|
|
"name": "compas_codigo_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"codigo"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero": {
|
||
|
|
"name": "genero",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"resumen": {
|
||
|
|
"name": "resumen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"origen_lugar": {
|
||
|
|
"name": "origen_lugar",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"origen_ano": {
|
||
|
|
"name": "origen_ano",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"tempo": {
|
||
|
|
"name": "tempo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"rima": {
|
||
|
|
"name": "rima",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"metrica_nota": {
|
||
|
|
"name": "metrica_nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"compas_nota": {
|
||
|
|
"name": "compas_nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"rasgos": {
|
||
|
|
"name": "rasgos",
|
||
|
|
"type": "text[]",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"origen": {
|
||
|
|
"name": "origen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'manual'"
|
||
|
|
},
|
||
|
|
"modelo_origen": {
|
||
|
|
"name": "modelo_origen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"importado_en": {
|
||
|
|
"name": "importado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"revisado_por": {
|
||
|
|
"name": "revisado_por",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"revisado_en": {
|
||
|
|
"name": "revisado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"genero_nombre": {
|
||
|
|
"name": "genero_nombre",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "nombre",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"genero_origen_ano": {
|
||
|
|
"name": "genero_origen_ano",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "origen_ano",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"genero_slug_unique": {
|
||
|
|
"name": "genero_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_alias": {
|
||
|
|
"name": "genero_alias",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"pais_codigo": {
|
||
|
|
"name": "pais_codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"genero_alias_nombre": {
|
||
|
|
"name": "genero_alias_nombre",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "nombre",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_alias_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_alias_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_alias",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_alias_pais_codigo_pais_codigo_fk": {
|
||
|
|
"name": "genero_alias_pais_codigo_pais_codigo_fk",
|
||
|
|
"tableFrom": "genero_alias",
|
||
|
|
"tableTo": "pais",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pais_codigo"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"codigo"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_compas": {
|
||
|
|
"name": "genero_compas",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"compas_id": {
|
||
|
|
"name": "compas_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"principal": {
|
||
|
|
"name": "principal",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_compas_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_compas_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_compas",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_compas_compas_id_compas_id_fk": {
|
||
|
|
"name": "genero_compas_compas_id_compas_id_fk",
|
||
|
|
"tableFrom": "genero_compas",
|
||
|
|
"tableTo": "compas",
|
||
|
|
"columnsFrom": [
|
||
|
|
"compas_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"genero_compas_genero_id_compas_id_pk": {
|
||
|
|
"name": "genero_compas_genero_id_compas_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"genero_id",
|
||
|
|
"compas_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_instrumento": {
|
||
|
|
"name": "genero_instrumento",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"instrumento_id": {
|
||
|
|
"name": "instrumento_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"importancia": {
|
||
|
|
"name": "importancia",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'habitual'"
|
||
|
|
},
|
||
|
|
"papel": {
|
||
|
|
"name": "papel",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_instrumento_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_instrumento_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_instrumento",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_instrumento_instrumento_id_instrumento_id_fk": {
|
||
|
|
"name": "genero_instrumento_instrumento_id_instrumento_id_fk",
|
||
|
|
"tableFrom": "genero_instrumento",
|
||
|
|
"tableTo": "instrumento",
|
||
|
|
"columnsFrom": [
|
||
|
|
"instrumento_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"genero_instrumento_genero_id_instrumento_id_pk": {
|
||
|
|
"name": "genero_instrumento_genero_id_instrumento_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"genero_id",
|
||
|
|
"instrumento_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_metro": {
|
||
|
|
"name": "genero_metro",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"metro_id": {
|
||
|
|
"name": "metro_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"predominante": {
|
||
|
|
"name": "predominante",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_metro_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_metro_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_metro",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_metro_metro_id_metro_id_fk": {
|
||
|
|
"name": "genero_metro_metro_id_metro_id_fk",
|
||
|
|
"tableFrom": "genero_metro",
|
||
|
|
"tableTo": "metro",
|
||
|
|
"columnsFrom": [
|
||
|
|
"metro_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"genero_metro_genero_id_metro_id_pk": {
|
||
|
|
"name": "genero_metro_genero_id_metro_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"genero_id",
|
||
|
|
"metro_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_origen": {
|
||
|
|
"name": "genero_origen",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"origen_id": {
|
||
|
|
"name": "origen_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"tipo": {
|
||
|
|
"name": "tipo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"principal": {
|
||
|
|
"name": "principal",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"genero_origen_origen": {
|
||
|
|
"name": "genero_origen_origen",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "origen_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_origen_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_origen_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_origen",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_origen_origen_id_genero_id_fk": {
|
||
|
|
"name": "genero_origen_origen_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_origen",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"origen_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"genero_origen_genero_id_origen_id_tipo_pk": {
|
||
|
|
"name": "genero_origen_genero_id_origen_id_tipo_pk",
|
||
|
|
"columns": [
|
||
|
|
"genero_id",
|
||
|
|
"origen_id",
|
||
|
|
"tipo"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_pais": {
|
||
|
|
"name": "genero_pais",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"pais_codigo": {
|
||
|
|
"name": "pais_codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"relacion": {
|
||
|
|
"name": "relacion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'adoptado'"
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_pais_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_pais_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_pais",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_pais_pais_codigo_pais_codigo_fk": {
|
||
|
|
"name": "genero_pais_pais_codigo_pais_codigo_fk",
|
||
|
|
"tableFrom": "genero_pais",
|
||
|
|
"tableTo": "pais",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pais_codigo"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"codigo"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"genero_pais_genero_id_pais_codigo_pk": {
|
||
|
|
"name": "genero_pais_genero_id_pais_codigo_pk",
|
||
|
|
"columns": [
|
||
|
|
"genero_id",
|
||
|
|
"pais_codigo"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_persona": {
|
||
|
|
"name": "genero_persona",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"persona_id": {
|
||
|
|
"name": "persona_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"papel": {
|
||
|
|
"name": "papel",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_persona_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_persona_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_persona",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_persona_persona_id_persona_id_fk": {
|
||
|
|
"name": "genero_persona_persona_id_persona_id_fk",
|
||
|
|
"tableFrom": "genero_persona",
|
||
|
|
"tableTo": "persona",
|
||
|
|
"columnsFrom": [
|
||
|
|
"persona_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"genero_persona_genero_id_persona_id_papel_pk": {
|
||
|
|
"name": "genero_persona_genero_id_persona_id_papel_pk",
|
||
|
|
"columns": [
|
||
|
|
"genero_id",
|
||
|
|
"persona_id",
|
||
|
|
"papel"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_seccion": {
|
||
|
|
"name": "genero_seccion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"clave": {
|
||
|
|
"name": "clave",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cuerpo": {
|
||
|
|
"name": "cuerpo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"genero_seccion_clave": {
|
||
|
|
"name": "genero_seccion_clave",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "genero_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expression": "clave",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": true,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_seccion_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_seccion_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_seccion",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.genero_tema": {
|
||
|
|
"name": "genero_tema",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"etiqueta_id": {
|
||
|
|
"name": "etiqueta_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"genero_tema_genero_id_genero_id_fk": {
|
||
|
|
"name": "genero_tema_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "genero_tema",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"genero_tema_etiqueta_id_etiqueta_id_fk": {
|
||
|
|
"name": "genero_tema_etiqueta_id_etiqueta_id_fk",
|
||
|
|
"tableFrom": "genero_tema",
|
||
|
|
"tableTo": "etiqueta",
|
||
|
|
"columnsFrom": [
|
||
|
|
"etiqueta_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"genero_tema_genero_id_etiqueta_id_pk": {
|
||
|
|
"name": "genero_tema_genero_id_etiqueta_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"genero_id",
|
||
|
|
"etiqueta_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.instrumento": {
|
||
|
|
"name": "instrumento",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"familia": {
|
||
|
|
"name": "familia",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"subfamilia": {
|
||
|
|
"name": "subfamilia",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"pais_codigo": {
|
||
|
|
"name": "pais_codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"descripcion": {
|
||
|
|
"name": "descripcion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"afinacion": {
|
||
|
|
"name": "afinacion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"imagen_id": {
|
||
|
|
"name": "imagen_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"muestra_id": {
|
||
|
|
"name": "muestra_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"origen": {
|
||
|
|
"name": "origen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'manual'"
|
||
|
|
},
|
||
|
|
"modelo_origen": {
|
||
|
|
"name": "modelo_origen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"importado_en": {
|
||
|
|
"name": "importado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"revisado_por": {
|
||
|
|
"name": "revisado_por",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"revisado_en": {
|
||
|
|
"name": "revisado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"instrumento_familia": {
|
||
|
|
"name": "instrumento_familia",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "familia",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"instrumento_pais_codigo_pais_codigo_fk": {
|
||
|
|
"name": "instrumento_pais_codigo_pais_codigo_fk",
|
||
|
|
"tableFrom": "instrumento",
|
||
|
|
"tableTo": "pais",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pais_codigo"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"codigo"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"instrumento_imagen_id_medio_id_fk": {
|
||
|
|
"name": "instrumento_imagen_id_medio_id_fk",
|
||
|
|
"tableFrom": "instrumento",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"imagen_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"instrumento_muestra_id_medio_id_fk": {
|
||
|
|
"name": "instrumento_muestra_id_medio_id_fk",
|
||
|
|
"tableFrom": "instrumento",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"muestra_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"instrumento_slug_unique": {
|
||
|
|
"name": "instrumento_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.metro": {
|
||
|
|
"name": "metro",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"codigo": {
|
||
|
|
"name": "codigo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"silabas": {
|
||
|
|
"name": "silabas",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"termino_id": {
|
||
|
|
"name": "termino_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"metro_codigo_unique": {
|
||
|
|
"name": "metro_codigo_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"codigo"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.modelo_ia": {
|
||
|
|
"name": "modelo_ia",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"codigo": {
|
||
|
|
"name": "codigo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"familia": {
|
||
|
|
"name": "familia",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"version": {
|
||
|
|
"name": "version",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"vigente": {
|
||
|
|
"name": "vigente",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"nota_sintaxis": {
|
||
|
|
"name": "nota_sintaxis",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"esquema": {
|
||
|
|
"name": "esquema",
|
||
|
|
"type": "jsonb",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"modelo_ia_familia": {
|
||
|
|
"name": "modelo_ia_familia",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "familia",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"modelo_ia_codigo_unique": {
|
||
|
|
"name": "modelo_ia_codigo_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"codigo"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.obra_referencia": {
|
||
|
|
"name": "obra_referencia",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"ano": {
|
||
|
|
"name": "ano",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"nota": {
|
||
|
|
"name": "nota",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"enlace": {
|
||
|
|
"name": "enlace",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"cita": {
|
||
|
|
"name": "cita",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"origen": {
|
||
|
|
"name": "origen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'manual'"
|
||
|
|
},
|
||
|
|
"modelo_origen": {
|
||
|
|
"name": "modelo_origen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"importado_en": {
|
||
|
|
"name": "importado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"revisado_por": {
|
||
|
|
"name": "revisado_por",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"revisado_en": {
|
||
|
|
"name": "revisado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"obra_referencia_genero": {
|
||
|
|
"name": "obra_referencia_genero",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "genero_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"obra_referencia_genero_id_genero_id_fk": {
|
||
|
|
"name": "obra_referencia_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "obra_referencia",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"obra_referencia_slug_unique": {
|
||
|
|
"name": "obra_referencia_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.obra_referencia_persona": {
|
||
|
|
"name": "obra_referencia_persona",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"obra_id": {
|
||
|
|
"name": "obra_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"persona_id": {
|
||
|
|
"name": "persona_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"papel": {
|
||
|
|
"name": "papel",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"obra_referencia_persona_obra_id_obra_referencia_id_fk": {
|
||
|
|
"name": "obra_referencia_persona_obra_id_obra_referencia_id_fk",
|
||
|
|
"tableFrom": "obra_referencia_persona",
|
||
|
|
"tableTo": "obra_referencia",
|
||
|
|
"columnsFrom": [
|
||
|
|
"obra_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"obra_referencia_persona_persona_id_persona_id_fk": {
|
||
|
|
"name": "obra_referencia_persona_persona_id_persona_id_fk",
|
||
|
|
"tableFrom": "obra_referencia_persona",
|
||
|
|
"tableTo": "persona",
|
||
|
|
"columnsFrom": [
|
||
|
|
"persona_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"obra_referencia_persona_obra_id_persona_id_papel_pk": {
|
||
|
|
"name": "obra_referencia_persona_obra_id_persona_id_papel_pk",
|
||
|
|
"columns": [
|
||
|
|
"obra_id",
|
||
|
|
"persona_id",
|
||
|
|
"papel"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.prompt": {
|
||
|
|
"name": "prompt",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"modelo_ia_id": {
|
||
|
|
"name": "modelo_ia_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"genero_id": {
|
||
|
|
"name": "genero_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"animo_id": {
|
||
|
|
"name": "animo_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"idioma": {
|
||
|
|
"name": "idioma",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'en'"
|
||
|
|
},
|
||
|
|
"contenido": {
|
||
|
|
"name": "contenido",
|
||
|
|
"type": "jsonb",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"notas": {
|
||
|
|
"name": "notas",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"valoracion": {
|
||
|
|
"name": "valoracion",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"ejemplo_id": {
|
||
|
|
"name": "ejemplo_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"preferido": {
|
||
|
|
"name": "preferido",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"visibilidad": {
|
||
|
|
"name": "visibilidad",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'privado'"
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"prompt_genero": {
|
||
|
|
"name": "prompt_genero",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "genero_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"prompt_modelo": {
|
||
|
|
"name": "prompt_modelo",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "modelo_ia_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"prompt_animo": {
|
||
|
|
"name": "prompt_animo",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "animo_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"prompt_modelo_ia_id_modelo_ia_id_fk": {
|
||
|
|
"name": "prompt_modelo_ia_id_modelo_ia_id_fk",
|
||
|
|
"tableFrom": "prompt",
|
||
|
|
"tableTo": "modelo_ia",
|
||
|
|
"columnsFrom": [
|
||
|
|
"modelo_ia_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"prompt_genero_id_genero_id_fk": {
|
||
|
|
"name": "prompt_genero_id_genero_id_fk",
|
||
|
|
"tableFrom": "prompt",
|
||
|
|
"tableTo": "genero",
|
||
|
|
"columnsFrom": [
|
||
|
|
"genero_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"prompt_animo_id_animo_id_fk": {
|
||
|
|
"name": "prompt_animo_id_animo_id_fk",
|
||
|
|
"tableFrom": "prompt",
|
||
|
|
"tableTo": "animo",
|
||
|
|
"columnsFrom": [
|
||
|
|
"animo_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"prompt_ejemplo_id_medio_id_fk": {
|
||
|
|
"name": "prompt_ejemplo_id_medio_id_fk",
|
||
|
|
"tableFrom": "prompt",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"ejemplo_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.termino": {
|
||
|
|
"name": "termino",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"termino": {
|
||
|
|
"name": "termino",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"termino_slug_unique": {
|
||
|
|
"name": "termino_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"termino_termino_unique": {
|
||
|
|
"name": "termino_termino_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"termino"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.termino_variante": {
|
||
|
|
"name": "termino_variante",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"termino_id": {
|
||
|
|
"name": "termino_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"forma": {
|
||
|
|
"name": "forma",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"termino_variante_termino_id_termino_id_fk": {
|
||
|
|
"name": "termino_variante_termino_id_termino_id_fk",
|
||
|
|
"tableFrom": "termino_variante",
|
||
|
|
"tableTo": "termino",
|
||
|
|
"columnsFrom": [
|
||
|
|
"termino_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"termino_variante_termino_id_forma_pk": {
|
||
|
|
"name": "termino_variante_termino_id_forma_pk",
|
||
|
|
"columns": [
|
||
|
|
"termino_id",
|
||
|
|
"forma"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.documento_legal": {
|
||
|
|
"name": "documento_legal",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"resumen": {
|
||
|
|
"name": "resumen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"orden": {
|
||
|
|
"name": "orden",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"version_vigente_id": {
|
||
|
|
"name": "version_vigente_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"documento_legal_slug_unique": {
|
||
|
|
"name": "documento_legal_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.entrada": {
|
||
|
|
"name": "entrada",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"fecha": {
|
||
|
|
"name": "fecha",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"resumen": {
|
||
|
|
"name": "resumen",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"cuerpo": {
|
||
|
|
"name": "cuerpo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"imagen_id": {
|
||
|
|
"name": "imagen_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"entrada_fecha": {
|
||
|
|
"name": "entrada_fecha",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "fecha",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"entrada_imagen_id_medio_id_fk": {
|
||
|
|
"name": "entrada_imagen_id_medio_id_fk",
|
||
|
|
"tableFrom": "entrada",
|
||
|
|
"tableTo": "medio",
|
||
|
|
"columnsFrom": [
|
||
|
|
"imagen_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"entrada_slug_unique": {
|
||
|
|
"name": "entrada_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.entrada_cancion": {
|
||
|
|
"name": "entrada_cancion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"entrada_id": {
|
||
|
|
"name": "entrada_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_id": {
|
||
|
|
"name": "cancion_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"entrada_cancion_entrada_id_entrada_id_fk": {
|
||
|
|
"name": "entrada_cancion_entrada_id_entrada_id_fk",
|
||
|
|
"tableFrom": "entrada_cancion",
|
||
|
|
"tableTo": "entrada",
|
||
|
|
"columnsFrom": [
|
||
|
|
"entrada_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"entrada_cancion_cancion_id_cancion_id_fk": {
|
||
|
|
"name": "entrada_cancion_cancion_id_cancion_id_fk",
|
||
|
|
"tableFrom": "entrada_cancion",
|
||
|
|
"tableTo": "cancion",
|
||
|
|
"columnsFrom": [
|
||
|
|
"cancion_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"entrada_cancion_entrada_id_cancion_id_pk": {
|
||
|
|
"name": "entrada_cancion_entrada_id_cancion_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"entrada_id",
|
||
|
|
"cancion_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.entrada_etiqueta": {
|
||
|
|
"name": "entrada_etiqueta",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"entrada_id": {
|
||
|
|
"name": "entrada_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"etiqueta_id": {
|
||
|
|
"name": "etiqueta_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"entrada_etiqueta_entrada_id_entrada_id_fk": {
|
||
|
|
"name": "entrada_etiqueta_entrada_id_entrada_id_fk",
|
||
|
|
"tableFrom": "entrada_etiqueta",
|
||
|
|
"tableTo": "entrada",
|
||
|
|
"columnsFrom": [
|
||
|
|
"entrada_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"entrada_etiqueta_etiqueta_id_etiqueta_id_fk": {
|
||
|
|
"name": "entrada_etiqueta_etiqueta_id_etiqueta_id_fk",
|
||
|
|
"tableFrom": "entrada_etiqueta",
|
||
|
|
"tableTo": "etiqueta",
|
||
|
|
"columnsFrom": [
|
||
|
|
"etiqueta_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"entrada_etiqueta_entrada_id_etiqueta_id_pk": {
|
||
|
|
"name": "entrada_etiqueta_entrada_id_etiqueta_id_pk",
|
||
|
|
"columns": [
|
||
|
|
"entrada_id",
|
||
|
|
"etiqueta_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.pagina": {
|
||
|
|
"name": "pagina",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"slug": {
|
||
|
|
"name": "slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"descripcion": {
|
||
|
|
"name": "descripcion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"cuerpo": {
|
||
|
|
"name": "cuerpo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "''"
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'borrador'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"pagina_slug_unique": {
|
||
|
|
"name": "pagina_slug_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.redireccion": {
|
||
|
|
"name": "redireccion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"desde": {
|
||
|
|
"name": "desde",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"hacia": {
|
||
|
|
"name": "hacia",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"permanente": {
|
||
|
|
"name": "permanente",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"motivo": {
|
||
|
|
"name": "motivo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"creada_en": {
|
||
|
|
"name": "creada_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"redireccion_hacia": {
|
||
|
|
"name": "redireccion_hacia",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "hacia",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.version_legal": {
|
||
|
|
"name": "version_legal",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"documento_id": {
|
||
|
|
"name": "documento_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cuerpo": {
|
||
|
|
"name": "cuerpo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"vigente_desde": {
|
||
|
|
"name": "vigente_desde",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"resumen_cambios": {
|
||
|
|
"name": "resumen_cambios",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"version_legal_documento": {
|
||
|
|
"name": "version_legal_documento",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "documento_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expression": "vigente_desde",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"version_legal_documento_id_documento_legal_id_fk": {
|
||
|
|
"name": "version_legal_documento_id_documento_legal_id_fk",
|
||
|
|
"tableFrom": "version_legal",
|
||
|
|
"tableTo": "documento_legal",
|
||
|
|
"columnsFrom": [
|
||
|
|
"documento_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.contador_factura": {
|
||
|
|
"name": "contador_factura",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"serie": {
|
||
|
|
"name": "serie",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"ultimo_numero": {
|
||
|
|
"name": "ultimo_numero",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.datos_facturacion": {
|
||
|
|
"name": "datos_facturacion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"tipo": {
|
||
|
|
"name": "tipo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'particular'"
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nif": {
|
||
|
|
"name": "nif",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"direccion": {
|
||
|
|
"name": "direccion",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"cp": {
|
||
|
|
"name": "cp",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"ciudad": {
|
||
|
|
"name": "ciudad",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"provincia": {
|
||
|
|
"name": "provincia",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"pais_codigo": {
|
||
|
|
"name": "pais_codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"predeterminada": {
|
||
|
|
"name": "predeterminada",
|
||
|
|
"type": "boolean",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": false
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"datos_facturacion_usuario": {
|
||
|
|
"name": "datos_facturacion_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"datos_facturacion_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "datos_facturacion_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "datos_facturacion",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"datos_facturacion_pais_codigo_pais_codigo_fk": {
|
||
|
|
"name": "datos_facturacion_pais_codigo_pais_codigo_fk",
|
||
|
|
"tableFrom": "datos_facturacion",
|
||
|
|
"tableTo": "pais",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pais_codigo"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"codigo"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.descarga": {
|
||
|
|
"name": "descarga",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_slug": {
|
||
|
|
"name": "cancion_slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"bajada_en": {
|
||
|
|
"name": "bajada_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"ip": {
|
||
|
|
"name": "ip",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"agente": {
|
||
|
|
"name": "agente",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"descarga_usuario": {
|
||
|
|
"name": "descarga_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"descarga_fecha": {
|
||
|
|
"name": "descarga_fecha",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "bajada_en",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"descarga_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "descarga_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "descarga",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.factura": {
|
||
|
|
"name": "factura",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"pedido_id": {
|
||
|
|
"name": "pedido_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"serie": {
|
||
|
|
"name": "serie",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"numero": {
|
||
|
|
"name": "numero",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"tipo": {
|
||
|
|
"name": "tipo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'normal'"
|
||
|
|
},
|
||
|
|
"rectifica_a_id": {
|
||
|
|
"name": "rectifica_a_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"fecha": {
|
||
|
|
"name": "fecha",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"base_centimos": {
|
||
|
|
"name": "base_centimos",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"iva_tipo": {
|
||
|
|
"name": "iva_tipo",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"iva_cuota_centimos": {
|
||
|
|
"name": "iva_cuota_centimos",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"total_centimos": {
|
||
|
|
"name": "total_centimos",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"moneda": {
|
||
|
|
"name": "moneda",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'eur'"
|
||
|
|
},
|
||
|
|
"datos_congelados": {
|
||
|
|
"name": "datos_congelados",
|
||
|
|
"type": "jsonb",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"pais_codigo": {
|
||
|
|
"name": "pais_codigo",
|
||
|
|
"type": "char(2)",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"factura_serie_numero": {
|
||
|
|
"name": "factura_serie_numero",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "serie",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expression": "numero",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": true,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"factura_pedido": {
|
||
|
|
"name": "factura_pedido",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "pedido_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"factura_fecha": {
|
||
|
|
"name": "factura_fecha",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "fecha",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"factura_pedido_id_pedido_id_fk": {
|
||
|
|
"name": "factura_pedido_id_pedido_id_fk",
|
||
|
|
"tableFrom": "factura",
|
||
|
|
"tableTo": "pedido",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pedido_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"factura_pais_codigo_pais_codigo_fk": {
|
||
|
|
"name": "factura_pais_codigo_pais_codigo_fk",
|
||
|
|
"tableFrom": "factura",
|
||
|
|
"tableTo": "pais",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pais_codigo"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"codigo"
|
||
|
|
],
|
||
|
|
"onDelete": "no action",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.codigo_acceso": {
|
||
|
|
"name": "codigo_acceso",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"email": {
|
||
|
|
"name": "email",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"hash": {
|
||
|
|
"name": "hash",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"expira_en": {
|
||
|
|
"name": "expira_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"intentos": {
|
||
|
|
"name": "intentos",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"usado_en": {
|
||
|
|
"name": "usado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"codigo_acceso_email": {
|
||
|
|
"name": "codigo_acceso_email",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "email",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.identidad": {
|
||
|
|
"name": "identidad",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"proveedor": {
|
||
|
|
"name": "proveedor",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"sujeto": {
|
||
|
|
"name": "sujeto",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"email": {
|
||
|
|
"name": "email",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"creada_en": {
|
||
|
|
"name": "creada_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"ultimo_acceso_en": {
|
||
|
|
"name": "ultimo_acceso_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"identidad_proveedor_sujeto": {
|
||
|
|
"name": "identidad_proveedor_sujeto",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "proveedor",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"expression": "sujeto",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": true,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"identidad_usuario": {
|
||
|
|
"name": "identidad_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"identidad_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "identidad_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "identidad",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.limite": {
|
||
|
|
"name": "limite",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"clave": {
|
||
|
|
"name": "clave",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"intentos": {
|
||
|
|
"name": "intentos",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"expira_en": {
|
||
|
|
"name": "expira_en",
|
||
|
|
"type": "bigint",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"limite_expira": {
|
||
|
|
"name": "limite_expira",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "expira_en",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.sesion": {
|
||
|
|
"name": "sesion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"expira_en": {
|
||
|
|
"name": "expira_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"creada_en": {
|
||
|
|
"name": "creada_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"sesion_usuario": {
|
||
|
|
"name": "sesion_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"sesion_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "sesion_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "sesion",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.usuario": {
|
||
|
|
"name": "usuario",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"email": {
|
||
|
|
"name": "email",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"nombre": {
|
||
|
|
"name": "nombre",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"ultimo_acceso_en": {
|
||
|
|
"name": "ultimo_acceso_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"usuario_email_unique": {
|
||
|
|
"name": "usuario_email_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"email"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.carrito": {
|
||
|
|
"name": "carrito",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizado_en": {
|
||
|
|
"name": "actualizado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"carrito_usuario": {
|
||
|
|
"name": "carrito_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"carrito_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "carrito_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "carrito",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.carrito_item": {
|
||
|
|
"name": "carrito_item",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"carrito_id": {
|
||
|
|
"name": "carrito_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_slug": {
|
||
|
|
"name": "cancion_slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"anadido_en": {
|
||
|
|
"name": "anadido_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"carrito_item_carrito_id_carrito_id_fk": {
|
||
|
|
"name": "carrito_item_carrito_id_carrito_id_fk",
|
||
|
|
"tableFrom": "carrito_item",
|
||
|
|
"tableTo": "carrito",
|
||
|
|
"columnsFrom": [
|
||
|
|
"carrito_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"carrito_item_carrito_id_cancion_slug_pk": {
|
||
|
|
"name": "carrito_item_carrito_id_cancion_slug_pk",
|
||
|
|
"columns": [
|
||
|
|
"carrito_id",
|
||
|
|
"cancion_slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.compra": {
|
||
|
|
"name": "compra",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_slug": {
|
||
|
|
"name": "cancion_slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"pedido_id": {
|
||
|
|
"name": "pedido_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"comprado_en": {
|
||
|
|
"name": "comprado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"compra_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "compra_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "compra",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
},
|
||
|
|
"compra_pedido_id_pedido_id_fk": {
|
||
|
|
"name": "compra_pedido_id_pedido_id_fk",
|
||
|
|
"tableFrom": "compra",
|
||
|
|
"tableTo": "pedido",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pedido_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"compra_usuario_id_cancion_slug_pk": {
|
||
|
|
"name": "compra_usuario_id_cancion_slug_pk",
|
||
|
|
"columns": [
|
||
|
|
"usuario_id",
|
||
|
|
"cancion_slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.pedido": {
|
||
|
|
"name": "pedido",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"sesion_pago_id": {
|
||
|
|
"name": "sesion_pago_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"estado": {
|
||
|
|
"name": "estado",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'pendiente'"
|
||
|
|
},
|
||
|
|
"packs": {
|
||
|
|
"name": "packs",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"total_centimos": {
|
||
|
|
"name": "total_centimos",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"moneda": {
|
||
|
|
"name": "moneda",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": "'eur'"
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"pagado_en": {
|
||
|
|
"name": "pagado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"pedido_usuario": {
|
||
|
|
"name": "pedido_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"pedido_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "pedido_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "pedido",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {
|
||
|
|
"pedido_sesion_pago_id_unique": {
|
||
|
|
"name": "pedido_sesion_pago_id_unique",
|
||
|
|
"nullsNotDistinct": false,
|
||
|
|
"columns": [
|
||
|
|
"sesion_pago_id"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.pedido_item": {
|
||
|
|
"name": "pedido_item",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"pedido_id": {
|
||
|
|
"name": "pedido_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_slug": {
|
||
|
|
"name": "cancion_slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"titulo": {
|
||
|
|
"name": "titulo",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {},
|
||
|
|
"foreignKeys": {
|
||
|
|
"pedido_item_pedido_id_pedido_id_fk": {
|
||
|
|
"name": "pedido_item_pedido_id_pedido_id_fk",
|
||
|
|
"tableFrom": "pedido_item",
|
||
|
|
"tableTo": "pedido",
|
||
|
|
"columnsFrom": [
|
||
|
|
"pedido_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"pedido_item_pedido_id_cancion_slug_pk": {
|
||
|
|
"name": "pedido_item_pedido_id_cancion_slug_pk",
|
||
|
|
"columns": [
|
||
|
|
"pedido_id",
|
||
|
|
"cancion_slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.favorito": {
|
||
|
|
"name": "favorito",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_slug": {
|
||
|
|
"name": "cancion_slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"marcado_en": {
|
||
|
|
"name": "marcado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"idx_favorito_usuario": {
|
||
|
|
"name": "idx_favorito_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"favorito_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "favorito_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "favorito",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"favorito_usuario_id_cancion_slug_pk": {
|
||
|
|
"name": "favorito_usuario_id_cancion_slug_pk",
|
||
|
|
"columns": [
|
||
|
|
"usuario_id",
|
||
|
|
"cancion_slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.reproduccion": {
|
||
|
|
"name": "reproduccion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"id": {
|
||
|
|
"name": "id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": true,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_slug": {
|
||
|
|
"name": "cancion_slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": false
|
||
|
|
},
|
||
|
|
"segundos": {
|
||
|
|
"name": "segundos",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true,
|
||
|
|
"default": 0
|
||
|
|
},
|
||
|
|
"dia": {
|
||
|
|
"name": "dia",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"creado_en": {
|
||
|
|
"name": "creado_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"reproduccion_dia": {
|
||
|
|
"name": "reproduccion_dia",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "dia",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"reproduccion_cancion": {
|
||
|
|
"name": "reproduccion_cancion",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "cancion_slug",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
},
|
||
|
|
"reproduccion_usuario": {
|
||
|
|
"name": "reproduccion_usuario",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "usuario_id",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"reproduccion_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "reproduccion_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "reproduccion",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "set null",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
},
|
||
|
|
"public.valoracion": {
|
||
|
|
"name": "valoracion",
|
||
|
|
"schema": "",
|
||
|
|
"columns": {
|
||
|
|
"usuario_id": {
|
||
|
|
"name": "usuario_id",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"cancion_slug": {
|
||
|
|
"name": "cancion_slug",
|
||
|
|
"type": "text",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"puntuacion": {
|
||
|
|
"name": "puntuacion",
|
||
|
|
"type": "integer",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"creada_en": {
|
||
|
|
"name": "creada_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
},
|
||
|
|
"actualizada_en": {
|
||
|
|
"name": "actualizada_en",
|
||
|
|
"type": "timestamp with time zone",
|
||
|
|
"primaryKey": false,
|
||
|
|
"notNull": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"indexes": {
|
||
|
|
"idx_valoracion_cancion": {
|
||
|
|
"name": "idx_valoracion_cancion",
|
||
|
|
"columns": [
|
||
|
|
{
|
||
|
|
"expression": "cancion_slug",
|
||
|
|
"isExpression": false,
|
||
|
|
"asc": true,
|
||
|
|
"nulls": "last"
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"isUnique": false,
|
||
|
|
"concurrently": false,
|
||
|
|
"method": "btree",
|
||
|
|
"with": {}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"foreignKeys": {
|
||
|
|
"valoracion_usuario_id_usuario_id_fk": {
|
||
|
|
"name": "valoracion_usuario_id_usuario_id_fk",
|
||
|
|
"tableFrom": "valoracion",
|
||
|
|
"tableTo": "usuario",
|
||
|
|
"columnsFrom": [
|
||
|
|
"usuario_id"
|
||
|
|
],
|
||
|
|
"columnsTo": [
|
||
|
|
"id"
|
||
|
|
],
|
||
|
|
"onDelete": "cascade",
|
||
|
|
"onUpdate": "no action"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"compositePrimaryKeys": {
|
||
|
|
"valoracion_usuario_id_cancion_slug_pk": {
|
||
|
|
"name": "valoracion_usuario_id_cancion_slug_pk",
|
||
|
|
"columns": [
|
||
|
|
"usuario_id",
|
||
|
|
"cancion_slug"
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"uniqueConstraints": {},
|
||
|
|
"policies": {},
|
||
|
|
"checkConstraints": {},
|
||
|
|
"isRLSEnabled": false
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"enums": {},
|
||
|
|
"schemas": {},
|
||
|
|
"sequences": {},
|
||
|
|
"roles": {},
|
||
|
|
"policies": {},
|
||
|
|
"views": {},
|
||
|
|
"_meta": {
|
||
|
|
"columns": {},
|
||
|
|
"schemas": {},
|
||
|
|
"tables": {}
|
||
|
|
}
|
||
|
|
}
|