UNPKG

@golemio/energetics

Version:
338 lines 20.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BuildingsSecondaryModel = void 0; const sequelize_1 = require("@golemio/core/dist/shared/sequelize"); const schema_definitions_1 = require("@golemio/core/dist/schema-definitions"); class BuildingsSecondaryModel extends sequelize_1.Model { } exports.BuildingsSecondaryModel = BuildingsSecondaryModel; BuildingsSecondaryModel.tableName = "consumption_energy_buildings_secondary"; BuildingsSecondaryModel.modelName = "BuildingsSecondaryModelData"; BuildingsSecondaryModel.attributeModel = { id: { primaryKey: true, type: sequelize_1.DataTypes.INTEGER, }, building_address_code: sequelize_1.DataTypes.STRING(100), building_label: sequelize_1.DataTypes.STRING(100), current_note: sequelize_1.DataTypes.STRING(100), method_of_protection: sequelize_1.DataTypes.STRING(100), built_up_area: sequelize_1.DataTypes.REAL, heated_bulding_volume: sequelize_1.DataTypes.INTEGER, students_count: sequelize_1.DataTypes.INTEGER, employees_count: sequelize_1.DataTypes.INTEGER, classrooms_count: sequelize_1.DataTypes.INTEGER, beds_count: sequelize_1.DataTypes.INTEGER, eno_id: sequelize_1.DataTypes.STRING(100), csu_code: sequelize_1.DataTypes.STRING(100), ku_code: sequelize_1.DataTypes.STRING(100), allotment_number: sequelize_1.DataTypes.STRING(100), registration_unit: sequelize_1.DataTypes.STRING(100), energetic_management: sequelize_1.DataTypes.STRING(100), opening_hours: sequelize_1.DataTypes.STRING(100), weekend_opening_hours: sequelize_1.DataTypes.STRING(100), location: sequelize_1.DataTypes.GEOMETRY, address_street: sequelize_1.DataTypes.STRING(100), address_house_number: sequelize_1.DataTypes.STRING(100), address_city: sequelize_1.DataTypes.STRING(100), address_country: sequelize_1.DataTypes.STRING(100), address_mail: sequelize_1.DataTypes.STRING(100), address_phone: sequelize_1.DataTypes.STRING(100), address_web_address: sequelize_1.DataTypes.STRING(100), penb_penbnumber: sequelize_1.DataTypes.INTEGER, penb_issue_date: sequelize_1.DataTypes.STRING(100), penb_total_building_envelope_area: sequelize_1.DataTypes.STRING(100), penb_volume_factor_of_avshape: sequelize_1.DataTypes.STRING(100), penb_total_energy_reference_area: sequelize_1.DataTypes.STRING(100), penb_total_provided_energy: sequelize_1.DataTypes.REAL, penb_total_provided_energy_category: sequelize_1.DataTypes.STRING(50), penb_primary_non_renewable_energy: sequelize_1.DataTypes.REAL, penb_primary_non_renewable_energy_category: sequelize_1.DataTypes.STRING(50), penb_building_envelope: sequelize_1.DataTypes.REAL, penb_building_envelope_category: sequelize_1.DataTypes.STRING(50), penb_heating: sequelize_1.DataTypes.REAL, penb_heating_category: sequelize_1.DataTypes.STRING(50), penb_cooling: sequelize_1.DataTypes.REAL, penb_cooling_category: sequelize_1.DataTypes.REAL, penb_ventilation: sequelize_1.DataTypes.STRING(100), penb_ventilation_category: sequelize_1.DataTypes.STRING(50), penb_humidity_adjustment: sequelize_1.DataTypes.REAL, penb_humidity_adjustment_category: sequelize_1.DataTypes.STRING(50), penb_warm_water: sequelize_1.DataTypes.REAL, penb_warm_water_category: sequelize_1.DataTypes.STRING(50), penb_lighting: sequelize_1.DataTypes.REAL, penb_lighting_category: sequelize_1.DataTypes.STRING(50), energy_audits_energy_audit: sequelize_1.DataTypes.STRING(100), energy_audits_earegistration_number: sequelize_1.DataTypes.STRING(100), energy_audits_created_at: sequelize_1.DataTypes.STRING(100), building_envelope_side_wall_prevailing_construction: sequelize_1.DataTypes.STRING(100), building_envelope_side_wall_area: sequelize_1.DataTypes.REAL, building_envelope_side_wall_heat_insulation: sequelize_1.DataTypes.STRING(100), building_envelope_side_wall_year_of_adjustment: sequelize_1.DataTypes.STRING(100), building_envelope_side_wall_technical_condition: sequelize_1.DataTypes.STRING(100), building_envelope_filling_of_hole_construction: sequelize_1.DataTypes.STRING(100), building_envelope_filling_of_hole_area: sequelize_1.DataTypes.REAL, building_envelope_filling_of_hole_year_of_adjustment: sequelize_1.DataTypes.STRING(100), building_envelope_filling_of_hole_technical_condition: sequelize_1.DataTypes.STRING(100), building_envelope_roof_construction: sequelize_1.DataTypes.STRING(100), building_envelope_roof_area: sequelize_1.DataTypes.REAL, building_envelope_roof_thermal_insulation: sequelize_1.DataTypes.STRING(100), building_envelope_roof_year_of_adjustment: sequelize_1.DataTypes.STRING(100), building_envelope_roof_technical_condition: sequelize_1.DataTypes.STRING(100), building_envelope_floor_of_the_lowest_heated_floor_construction: sequelize_1.DataTypes.STRING(100), building_envelope_floor_of_the_lowest_heated_floor_area: sequelize_1.DataTypes.REAL, floor_of_the_lowest_heated_floor_thermal_insulation: sequelize_1.DataTypes.STRING(100), building_envelope_floor_of_the_lowest_heated_floor_year_of_adjustment: sequelize_1.DataTypes.STRING(100), floor_of_the_lowest_heated_floor_technical_condition: sequelize_1.DataTypes.STRING(100), fuel_and_energy_coal: sequelize_1.DataTypes.BOOLEAN, fuel_and_energy_gas: sequelize_1.DataTypes.BOOLEAN, fuel_and_energy_electricity: sequelize_1.DataTypes.BOOLEAN, fuel_and_energy_czt: sequelize_1.DataTypes.BOOLEAN, fuel_and_energy_oze: sequelize_1.DataTypes.BOOLEAN, fuel_and_energy_other: sequelize_1.DataTypes.BOOLEAN, technical_equipment_heating_main_source_of_heat: sequelize_1.DataTypes.STRING(100), technical_equipment_heating_heat_percentage: sequelize_1.DataTypes.INTEGER, technical_equipment_heating_secondary_source_of_heat: sequelize_1.DataTypes.STRING(100), technical_equipment_heating_heating_system: sequelize_1.DataTypes.STRING(100), technical_equipment_heating_year: sequelize_1.DataTypes.STRING(50), technical_equipment_heating_technical_condition: sequelize_1.DataTypes.STRING(100), technical_equipment_cooling_cooling_system: sequelize_1.DataTypes.STRING(100), technical_equipment_cooling_cooling_area_percentage: sequelize_1.DataTypes.STRING(100), technical_equipment_cooling_year: sequelize_1.DataTypes.STRING(50), technical_equipment_cooling_technical_condition: sequelize_1.DataTypes.STRING(100), technical_equipment_ventilation_ventilation: sequelize_1.DataTypes.STRING(100), technical_equipment_ventilation_year: sequelize_1.DataTypes.STRING(50), technical_equipment_ventilation_technical_condition: sequelize_1.DataTypes.STRING(100), technical_equipment_humidity_adjustment_humidity_adjustment: sequelize_1.DataTypes.STRING(100), technical_equipment_humidity_adjustment_year: sequelize_1.DataTypes.STRING(50), technical_equipment_humidity_adjustment_technical_condition: sequelize_1.DataTypes.STRING(100), technical_equipment_hot_water_predominant_way_of_heating_tv: sequelize_1.DataTypes.STRING(100), technical_equipment_hot_water_hot_water_source: sequelize_1.DataTypes.STRING(100), technical_equipment_hot_water_year: sequelize_1.DataTypes.STRING(50), technical_equipment_hot_water_technical_condition: sequelize_1.DataTypes.STRING(100), technical_equipment_lighting_lighting: sequelize_1.DataTypes.STRING(100), technical_equipment_lighting_year: sequelize_1.DataTypes.STRING(50), technical_equipment_lighting_technical_condition: sequelize_1.DataTypes.STRING(100), technical_equipment_lighting_other_technological_elements: sequelize_1.DataTypes.STRING(100), technical_equipment_lighting_measurement_method: sequelize_1.DataTypes.STRING(100), oze_energy_production_solar_energy_photovoltaic: sequelize_1.DataTypes.STRING(100), oze_energy_production_solar_energy_photothermal: sequelize_1.DataTypes.STRING(100), oze_energy_production_integrated_turbines_wind_energy: sequelize_1.DataTypes.STRING(100), oze_energy_production_heat_pump: sequelize_1.DataTypes.STRING(100), waste_and_emissions_solid_waste_production: sequelize_1.DataTypes.STRING(100), waste_and_emissions_tied_co2_emissions: sequelize_1.DataTypes.STRING(100), waste_and_emissions_sox_emissions: sequelize_1.DataTypes.STRING(100), waste_and_emissions_operating_co_2emissions: sequelize_1.DataTypes.STRING(100), }; BuildingsSecondaryModel.arrayJsonSchema = { type: "array", items: { type: "object", properties: { id: { type: "number" }, building_address_code: { type: "string" }, building_label: { type: "string" }, current_note: { type: "string" }, method_of_protection: { type: "string" }, built_up_area: { type: "number" }, heated_bulding_volume: { type: "number" }, students_count: { type: "number" }, employees_count: { type: "number" }, classrooms_count: { type: "number" }, beds_count: { type: "number" }, eno_id: { type: "string" }, csu_code: { type: "string" }, ku_code: { type: "string" }, allotment_number: { type: "string" }, registration_unit: { type: "string" }, energetic_management: { type: "string" }, opening_hours: { type: "string" }, weekend_opening_hours: { type: "string" }, location: { $ref: "#/definitions/geometry" }, address_street: { type: "string" }, address_house_number: { type: "string" }, address_country: { type: "string" }, address_mail: { type: "string" }, address_phone: { type: "string" }, address_web_address: { type: "string" }, penb_penbnumber: { type: "number" }, penb_issue_date: { type: "string" }, penb_total_building_envelope_area: { type: "number" }, penb_volume_factor_of_avshape: { type: "string" }, penb_total_energy_reference_area: { type: "number" }, penb_total_provided_energy: { type: "number" }, penb_total_provided_energy_category: { type: "string" }, penb_primary_non_renewable_energy: { type: "number" }, penb_primary_non_renewable_energy_category: { type: "string" }, penb_building_envelope: { type: "number" }, penb_building_envelope_category: { type: "string" }, penb_heating: { type: "number" }, penb_heating_category: { type: "string" }, penb_cooling: { type: "number" }, penb_cooling_category: { type: "string" }, penb_ventilation: { type: "number" }, penb_ventilation_category: { type: "string" }, penb_humidity_adjustment: { type: "number" }, penb_humidity_adjustment_category: { type: "string" }, penb_warm_water: { type: "number" }, penb_warm_water_category: { type: "string" }, penb_lighting: { type: "number" }, penb_lighting_category: { type: "string" }, energy_audits_energy_audit: { type: "string" }, energy_audits_earegistration_number: { type: "string" }, energy_audits_created_at: { type: "string" }, building_envelope_side_wall_prevailing_construction: { type: "string" }, building_envelope_side_wall_area: { type: "number" }, building_envelope_side_wall_heat_insulation: { type: "string" }, building_envelope_side_wall_year_of_adjustment: { type: "string" }, building_envelope_side_wall_technical_condition: { type: "string" }, building_envelope_filling_of_hole_construction: { type: "string" }, building_envelope_filling_of_hole_area: { type: "number" }, building_envelope_filling_of_hole_year_of_adjustment: { type: "string" }, building_envelope_filling_of_hole_technical_condition: { type: "string" }, building_envelope_roof_construction: { type: "string" }, building_envelope_roof_area: { type: "number" }, building_envelope_roof_thermal_insulation: { type: "string" }, building_envelope_roof_year_of_adjustment: { type: "string" }, building_envelope_roof_technical_condition: { type: "string" }, building_envelope_floor_of_the_lowest_heated_floor_construction: { type: "string" }, building_envelope_floor_of_the_lowest_heated_floor_area: { type: "number" }, floor_of_the_lowest_heated_floor_thermal_insulation: { type: "string" }, building_envelope_floor_of_the_lowest_heated_floor_year_of_adju: { type: "string" }, floor_of_the_lowest_heated_floor_technical_condition: { type: "string" }, fuel_and_energy_coal: { type: "boolean" }, fuel_and_energy_gas: { type: "boolean" }, fuel_and_energy_electricity: { type: "boolean" }, fuel_and_energy_czt: { type: "boolean" }, fuel_and_energy_oze: { type: "boolean" }, fuel_and_energy_other: { type: "boolean" }, technical_equipment_heating_main_source_of_heat: { type: "string" }, technical_equipment_heating_heat_percentage: { type: "number" }, technical_equipment_heating_secondary_source_of_heat: { type: "string" }, technical_equipment_heating_heating_system: { type: "string" }, technical_equipment_heating_year: { type: "string" }, technical_equipment_heating_technical_condition: { type: "string" }, technical_equipment_cooling_cooling_system: { type: "string" }, technical_equipment_cooling_cooling_area_percentage: { type: "number" }, technical_equipment_cooling_year: { type: "string" }, technical_equipment_cooling_technical_condition: { type: "string" }, technical_equipment_ventilation_ventilation: { type: "string" }, technical_equipment_ventilation_year: { type: "string" }, technical_equipment_ventilation_technical_condition: { type: "string" }, technical_equipment_humidity_adjustment_humidity_adjustment: { type: "string" }, technical_equipment_humidity_adjustment_year: { type: "string" }, technical_equipment_humidity_adjustment_technical_condition: { type: "string" }, technical_equipment_hot_water_predominant_way_of_heating_tv: { type: "string" }, technical_equipment_hot_water_hot_water_source: { type: "string" }, technical_equipment_hot_water_year: { type: "string" }, technical_equipment_hot_water_technical_condition: { type: "string" }, technical_equipment_lighting_lighting: { type: "string" }, technical_equipment_lighting_year: { type: "string" }, technical_equipment_lighting_technical_condition: { type: "string" }, technical_equipment_lighting_other_technological_elements: { type: "string" }, technical_equipment_lighting_measurement_method: { type: "string" }, oze_energy_production_solar_energy_photovoltaic: { type: "string" }, oze_energy_production_solar_energy_photothermal: { type: "string" }, oze_energy_production_integrated_turbines_wind_energy: { type: "string" }, oze_energy_production_heat_pump: { type: "string" }, waste_and_emissions_solid_waste_production: { type: "string" }, waste_and_emissions_tied_co2_emissions: { type: "string" }, waste_and_emissions_sox_emissions: { type: "string" }, waste_and_emissions_operating_co_2emissions: { type: "string" }, }, required: [ "id", "address_phone", "address_web_address", "penb_penbnumber", "penb_issue_date", "penb_total_building_envelope_area", "penb_volume_factor_of_avshape", "penb_total_energy_reference_area", "penb_total_provided_energy", "penb_total_provided_energy_category", "penb_primary_non_renewable_energy", "penb_primary_non_renewable_energy_category", "penb_building_envelope", "penb_building_envelope_category", "penb_heating", "penb_heating_category", "penb_cooling", "penb_cooling_category", "penb_ventilation", "penb_ventilation_category", "penb_humidity_adjustment", "penb_humidity_adjustment_category", "penb_warm_water", "penb_warm_water_category", "penb_lighting", "penb_lighting_category", "energy_audits_energy_audit", "energy_audits_earegistration_number", "energy_audits_created_at", "building_envelope_side_wall_prevailing_construction", "building_envelope_side_wall_area", "building_envelope_side_wall_heat_insulation", "building_envelope_side_wall_year_of_adjustment", "building_envelope_side_wall_technical_condition", "building_envelope_filling_of_hole_construction", "building_envelope_filling_of_hole_area", "building_envelope_filling_of_hole_year_of_adjustment", "building_envelope_filling_of_hole_technical_condition", "building_envelope_roof_construction", "building_envelope_roof_area", "building_envelope_roof_thermal_insulation", "building_envelope_roof_year_of_adjustment", "building_envelope_roof_technical_condition", "building_envelope_floor_of_the_lowest_heated_floor_construction", "building_envelope_floor_of_the_lowest_heated_floor_area", "floor_of_the_lowest_heated_floor_thermal_insulation", "building_envelope_floor_of_the_lowest_heated_floor_year_of_adju", "floor_of_the_lowest_heated_floor_technical_condition", "fuel_and_energy_coal", "fuel_and_energy_gas", "fuel_and_energy_electricity", "fuel_and_energy_czt", "fuel_and_energy_oze", "fuel_and_energy_other", "technical_equipment_heating_main_source_of_heat", "technical_equipment_heating_heat_percentage", "technical_equipment_heating_secondary_source_of_heat", "technical_equipment_heating_heating_system", "technical_equipment_heating_year", "technical_equipment_heating_technical_condition", "technical_equipment_cooling_cooling_system", "technical_equipment_cooling_cooling_area_percentage", "technical_equipment_cooling_year", "technical_equipment_cooling_technical_condition", "technical_equipment_ventilation_ventilation", "technical_equipment_ventilation_year", "technical_equipment_ventilation_technical_condition", "technical_equipment_humidity_adjustment_humidity_adjustment", "technical_equipment_humidity_adjustment_year", "technical_equipment_humidity_adjustment_technical_condition", "technical_equipment_hot_water_predominant_way_of_heating_tv", "technical_equipment_hot_water_hot_water_source", "technical_equipment_hot_water_year", "technical_equipment_hot_water_technical_condition", "technical_equipment_lighting_lighting", "technical_equipment_lighting_year", "technical_equipment_lighting_technical_condition", "technical_equipment_lighting_other_technological_elements", "technical_equipment_lighting_measurement_method", "oze_energy_production_solar_energy_photovoltaic", "oze_energy_production_solar_energy_photothermal", "oze_energy_production_integrated_turbines_wind_energy", "oze_energy_production_heat_pump", "waste_and_emissions_solid_waste_production", "waste_and_emissions_tied_co2_emissions", "waste_and_emissions_sox_emissions", "waste_and_emissions_operating_co_2emissions", ], }, definitions: { // @ts-expect-error geometry: schema_definitions_1.SharedSchemaProvider.Geometry, }, }; //# sourceMappingURL=BuildingsSecondaryModel.js.map