Commit Graph

3 Commits

Author SHA1 Message Date
alexrg d724bda6f5 Actualizar database-types.ts
CI / test (pull_request) Failing after 3m34s
2026-02-13 16:28:14 +00:00
alexrg 2d13995d5d fix: update type generation script and modify database types structure 2026-02-13 10:26:43 -06:00
Guillermo.Arrieta 2ff587d639 feat: opcion de update a asignaturas ya creadas para ponerles la información generada con IA
- Created a new enum type "estado_asignatura" with values 'borrador', 'revisada', 'aprobada', and 'generando'.
- Added a new column "estado" to the "asignaturas" table, defaulting to 'generando'.
- Implemented a trigger function to log changes in the "planes_estudio" table, capturing inserts, updates, and deletes.
- Updated the logging mechanism to track changes in various fields, including JSONB data.
- Removed the "asignaturas" table from the supabase_realtime publication.
- Added a script for generating TypeScript types from the local Supabase database.
2026-02-12 16:00:39 -06:00