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.
This commit is contained in:
2026-02-12 15:48:04 -06:00
parent 48ab986cb8
commit 2ff587d639
6 changed files with 1877 additions and 31 deletions
@@ -0,0 +1,2 @@
Usar --local para generar tipos de la BDD local, y --linked para generar tipos de la BDD remota.
cmd /c "dx supabase gen types typescript --local > database-types.ts"