Identidad y tenencia, motor de Casos y notificaciones. Compartido por el ERP y el CRM.
10 tablas · 8 funciones · 1 ENUM
18 tablas · 2 funciones · 1 ENUM
12 tablas · 2 funciones · 1 ENUM
16 tablas · 4 funciones · 2 ENUM
| Nombre | Tipo | Obligatoria | Default |
|---|---|---|---|
| id | bigint | sí | |
| provincia_id | bigint | sí | |
| codigo | text | sí | |
| nombre | text | sí | |
| is_activo | boolean | sí | true |
| created_at | timestamp with time zone | sí | now() |
| created_by | bigint | ||
| updated_at | timestamp with time zone | ||
| updated_by | bigint | ||
| deleted_at | timestamp with time zone |
FOREIGN KEY (provincia_id) REFERENCES catalogo.cat_provincias(id)
ix_cat_ciudades_provincia_id
trg_cat_ciudades_before_insert_update
→ catalogo.fn_actualizar_updated_at(): Trigger genérico: mantiene updated_at y updated_by al día en cualquier UPDATE. (ver pestaña Funciones)Ninguna.