cambios en como se guardan los datos
This commit is contained in:
2026-02-23 10:57:56 -04:00
7 changed files with 2078 additions and 4 deletions

View File

@@ -135,9 +135,13 @@ export const trainingSurveys = t.pgTable(
familyBurden: t.integer('family_burden').notNull(),
numberOfChildren: t.integer('number_of_children').notNull(),
generalObservations: t.text('general_observations'),
// Fotos
photo1: t.text('photo1'),
photo2: t.text('photo2'),
photo3: t.text('photo3'),
// informacion del usuario que creo y actualizo el registro
createdBy: t.integer('created_by').references(() => users.id, { onDelete: 'cascade' }),
updatedBy: t.integer('updated_by').references(() => users.id, { onDelete: 'cascade' }),
...timestamps,
},
(trainingSurveys) => ({