Algunos campos agregados/eliminados
This commit is contained in:
@@ -62,8 +62,22 @@ export const trainingSurveys = t.pgTable(
|
||||
.integer('parish')
|
||||
.references(() => parishes.id, { onDelete: 'set null' }),
|
||||
siturCodeCommune: t.text('situr_code_commune').notNull(),
|
||||
communeName: t.text('commune_name').notNull().default(''),
|
||||
communeRif: t.text('commune_rif').notNull().default(''),
|
||||
communeSpokespersonName: t.text('commune_spokesperson_name').notNull().default(''),
|
||||
communeSpokespersonCedula: t.text('commune_spokesperson_cedula').notNull().default(''),
|
||||
communeSpokespersonRif: t.text('commune_spokesperson_rif').notNull().default(''),
|
||||
communeSpokespersonPhone: t.text('commune_spokesperson_phone').notNull().default(''),
|
||||
communeEmail: t.text('commune_email').notNull().default(''),
|
||||
communalCouncil: t.text('communal_council').notNull(),
|
||||
siturCodeCommunalCouncil: t.text('situr_code_communal_council').notNull(),
|
||||
communalCouncilRif: t.text('communal_council_rif').notNull().default(''),
|
||||
communalCouncilSpokespersonName: t.text('communal_council_spokesperson_name').notNull().default(''),
|
||||
communalCouncilSpokespersonCedula: t.text('communal_council_spokesperson_cedula').notNull().default(''),
|
||||
communalCouncilSpokespersonRif: t.text('communal_council_spokesperson_rif').notNull().default(''),
|
||||
communalCouncilSpokespersonPhone: t.text('communal_council_spokesperson_phone').notNull().default(''),
|
||||
communalCouncilEmail: t.text('communal_council_email').notNull().default(''),
|
||||
ospGoogleMapsLink: t.text('osp_google_maps_link').notNull().default(''),
|
||||
// datos del OSP (ORGANIZACIÓN SOCIOPRODUCTIVA)
|
||||
ospName: t.text('osp_name').notNull(),
|
||||
ospAddress: t.text('osp_address').notNull(),
|
||||
@@ -96,6 +110,34 @@ export const trainingSurveys = t.pgTable(
|
||||
photo1: t.text('photo1').notNull(),
|
||||
photo2: t.text('photo2'),
|
||||
photo3: t.text('photo3'),
|
||||
// nuevos campos coordinacion
|
||||
coorState: t
|
||||
.integer('coor_state')
|
||||
.references(() => states.id, { onDelete: 'set null' }),
|
||||
coorMunicipality: t
|
||||
.integer('coor_municipality')
|
||||
.references(() => municipalities.id, { onDelete: 'set null' }),
|
||||
coorParish: t
|
||||
.integer('coor_parish')
|
||||
.references(() => parishes.id, { onDelete: 'set null' }),
|
||||
coorPhone: t.text('coor_phone'),
|
||||
// sectores
|
||||
ecoSector: t.text('eco_sector').notNull().default(''),
|
||||
productiveSector: t.text('productive_sector').notNull().default(''),
|
||||
centralProductiveActivity: t.text('central_productive_activity').notNull().default(''),
|
||||
mainProductiveActivity: t.text('main_productive_activity').notNull().default(''),
|
||||
// equipamiento
|
||||
typesOfEquipment: t.text('types_of_equipment').notNull().default(''),
|
||||
equipmentCount: t.integer('equipment_count').notNull().default(0),
|
||||
equipmentDescription: t.text('equipment_description').notNull().default(''),
|
||||
// materia prima
|
||||
rawMaterial: t.text('raw_material').notNull().default(''),
|
||||
materialType: t.text('material_type').notNull().default(''),
|
||||
rawMaterialCount: t.integer('raw_material_count').notNull().default(0),
|
||||
// conteo de productos
|
||||
productCountDaily: t.integer('product_count_daily').notNull().default(0),
|
||||
productCountWeekly: t.integer('product_count_weekly').notNull().default(0),
|
||||
productCountMonthly: t.integer('product_count_monthly').notNull().default(0),
|
||||
...timestamps,
|
||||
},
|
||||
(trainingSurveys) => ({
|
||||
|
||||
Reference in New Issue
Block a user