# Prompt: Create a Scientific Research Database for Perovskite Solar Cells ## 1. Project Objective Build a scientific research database website for storing, managing, searching, validating, and analyzing experimental data extracted from perovskite solar-cell research publications and laboratory datasets. The database must support the comprehensive collection of metadata, material compositions, fabrication procedures, device architectures, photovoltaic performance measurements, stability testing, and outdoor performance data. Use the provided spreadsheet column headers and sample records as the primary reference for the database schema. Preserve the original field names wherever possible to maintain compatibility with existing Excel files and research datasets. The database should be suitable for scientific research, literature-based data extraction, reproducibility analysis, machine learning, and statistical analysis. ## 2. Database Architecture Design a normalized relational database using PostgreSQL or an equivalent relational database management system. Create the following logical tables or related modules: ### A. Reference and Publication Metadata Store: - Ref_ID (primary key) - Ref_ID_temp - Ref_name_of_person_entering_the_data - Ref_data_entered_by_author - Ref_DOI_number - Ref_lead_author - Ref_publication_date - Ref_journal - Ref_part_of_initial_dataset - Ref_original_filename_data_upload - Ref_free_text_comment - Ref_internal_sample_id A single publication may contain multiple devices, samples, fabrication conditions, and measurements. Support one-to-many relationships between publications and experimental records. ### B. Device and Cell Information Store: - Cell_stack_sequence - Cell_area_total - Cell_area_measured - Cell_number_of_cells_per_substrate - Cell_architecture - Cell_flexible - Cell_flexible_min_bending_radius - Cell_semitransparent - Cell_semitransparent_AVT - Cell_semitransparent_wavelength_range - Cell_semitransparent_raw_data - Module - Module_number_of_cells_in_module - Module_area_total - Module_area_effective - Module_JV_data_recalculated_per_cell ### C. Substrate Properties Store: - Substrate_stack_sequence - Substrate_thickness - Substrate_area - Substrate_supplier - Substrate_brand_name - Substrate_deposition_procedure - Substrate_surface_roughness_rms - Substrate_etching_procedure - Substrate_cleaning_procedure ### D. Electron Transport Layer (ETL) Store: - ETL_stack_sequence - ETL_thickness - ETL_additives_compounds - ETL_additives_concentrations - ETL_deposition_procedure - ETL_deposition_aggregation_state_of_reactants - ETL_deposition_synthesis_atmosphere - ETL_deposition_synthesis_atmosphere_pressure_total - ETL_deposition_synthesis_atmosphere_pressure_partial - ETL_deposition_synthesis_atmosphere_relative_humidity - ETL_deposition_solvents - ETL_deposition_solvents_mixing_ratios - ETL_deposition_solvents_supplier - ETL_deposition_solvents_purity - ETL_deposition_reaction_solutions_compounds - ETL_deposition_reaction_solutions_compounds_supplier - ETL_deposition_reaction_solutions_compounds_purity - ETL_deposition_reaction_solutions_concentrations - ETL_deposition_reaction_solutions_volumes - ETL_deposition_reaction_solutions_age - ETL_deposition_reaction_solutions_temperature - ETL_deposition_substrate_temperature - ETL_deposition_thermal_annealing_temperature - ETL_deposition_thermal_annealing_time - ETL_deposition_thermal_annealing_atmosphere - ETL_storage_time_until_next_deposition_step - ETL_storage_atmosphere - ETL_storage_relative_humidity - ETL_surface_treatment_before_next_deposition_step ### E. Perovskite Material and Composition Store: - Perovskite_single_crystal - Perovskite_dimension_0D - Perovskite_dimension_2D - Perovskite_dimension_2D3D_mixture - Perovskite_dimension_3D - Perovskite_dimension_3D_with_2D_capping_layer - Perovskite_dimension_list_of_layers - Perovskite_composition_perovskite_ABC3_structure - Perovskite_composition_perovskite_inspired_structure - Perovskite_composition_a_ions - Perovskite_composition_a_ions_coefficients - Perovskite_composition_b_ions - Perovskite_composition_b_ions_coefficients - Perovskite_composition_c_ions - Perovskite_composition_c_ions_coefficients - Perovskite_composition_none_stoichiometry_components_in_excess - Perovskite_composition_short_form - Perovskite_composition_long_form - Perovskite_composition_assumption - Perovskite_composition_inorganic - Perovskite_composition_leadfree - Perovskite_additives_compounds - Perovskite_additives_concentrations - Perovskite_thickness - Perovskite_band_gap - Perovskite_band_gap_graded - Perovskite_band_gap_estimation_basis - Perovskite_pl_max Use structured composition records to support multiple A-site, B-site, and C-site ions, each with its own stoichiometric coefficient. Preserve the original composition string and allow composition normalization without overwriting the reported formula. ### F. Perovskite Deposition and Processing Store: - Perovskite_deposition_number_of_deposition_steps - Perovskite_deposition_procedure - Perovskite_deposition_aggregation_state_of_reactants - Perovskite_deposition_synthesis_atmosphere - Perovskite_deposition_synthesis_atmosphere_pressure_total - Perovskite_deposition_synthesis_atmosphere_pressure_partial - Perovskite_deposition_synthesis_atmosphere_relative_humidity - Perovskite_deposition_solvents - Perovskite_deposition_solvents_mixing_ratios - Perovskite_deposition_solvents_supplier - Perovskite_deposition_solvents_purity - Perovskite_deposition_reaction_solutions_compounds - Perovskite_deposition_reaction_solutions_compounds_supplier - Perovskite_deposition_reaction_solutions_compounds_purity - Perovskite_deposition_reaction_solutions_concentrations - Perovskite_deposition_reaction_solutions_volumes - Perovskite_deposition_reaction_solutions_age - Perovskite_deposition_reaction_solutions_temperature - Perovskite_deposition_substrate_temperature - Perovskite_deposition_quenching_induced_crystallisation - Perovskite_deposition_quenching_media - Perovskite_deposition_quenching_media_mixing_ratios - Perovskite_deposition_quenching_media_volume - Perovskite_deposition_quenching_media_additives_compounds - Perovskite_deposition_quenching_media_additives_concentrations - Perovskite_deposition_thermal_annealing_temperature - Perovskite_deposition_thermal_annealing_time - Perovskite_deposition_thermal_annealing_atmosphere - Perovskite_deposition_thermal_annealing_relative_humidity - Perovskite_deposition_thermal_annealing_pressure - Perovskite_deposition_solvent_annealing - Perovskite_deposition_solvent_annealing_timing - Perovskite_deposition_solvent_annealing_solvent_atmosphere - Perovskite_deposition_solvent_annealing_time - Perovskite_deposition_solvent_annealing_temperature - Perovskite_deposition_after_treatment_of_formed_perovskite - Perovskite_deposition_after_treatment_of_formed_perovskite_met - Perovskite_storage_time_until_next_deposition_step - Perovskite_storage_atmosphere - Perovskite_storage_relative_humidity - Perovskite_surface_treatment_before_next_deposition_step ### G. Hole Transport Layer (HTL) Store: - HTL_stack_sequence - HTL_thickness_list - HTL_additives_compounds - HTL_additives_concentrations - HTL_deposition_procedure - HTL_deposition_aggregation_state_of_reactants - HTL_deposition_synthesis_atmosphere - HTL_deposition_synthesis_atmosphere_pressure_total - HTL_deposition_synthesis_atmosphere_pressure_partial - HTL_deposition_synthesis_atmosphere_relative_humidity - HTL_deposition_solvents - HTL_deposition_solvents_mixing_ratios - HTL_deposition_solvents_supplier - HTL_deposition_solvents_purity - HTL_deposition_reaction_solutions_compounds - HTL_deposition_reaction_solutions_compounds_supplier - HTL_deposition_reaction_solutions_compounds_purity - HTL_deposition_reaction_solutions_concentrations - HTL_deposition_reaction_solutions_volumes - HTL_deposition_reaction_solutions_age - HTL_deposition_reaction_solutions_temperature - HTL_deposition_substrate_temperature - HTL_deposition_thermal_annealing_temperature - HTL_deposition_thermal_annealing_time - HTL_deposition_thermal_annealing_atmosphere - HTL_storage_time_until_next_deposition_step - HTL_storage_atmosphere - HTL_storage_relative_humidity - HTL_surface_treatment_before_next_deposition_step ### H. Back Contact Store all supplied Backcontact fields, including: - Backcontact_stack_sequence - Backcontact_thickness_list - Backcontact_additives_compounds - Backcontact_additives_concentrations - Backcontact_deposition_procedure - Backcontact_deposition_aggregation_state_of_reactants - Backcontact_deposition_synthesis_atmosphere - Backcontact_deposition_synthesis_atmosphere_pressure_total - Backcontact_deposition_synthesis_atmosphere_pressure_partial - Backcontact_deposition_synthesis_atmosphere_relative_humidity - Backcontact_deposition_solvents - Backcontact_deposition_solvents_mixing_ratios - Backcontact_deposition_solvents_supplier - Backcontact_deposition_solvents_purity - Backcontact_deposition_reaction_solutions_compounds - Backcontact_deposition_reaction_solutions_compounds_supplier - Backcontact_deposition_reaction_solutions_compounds_purity - Backcontact_deposition_reaction_solutions_concentrations - Backcontact_deposition_reaction_solutions_volumes - Backcontact_deposition_reaction_solutions_age - Backcontact_deposition_reaction_solutions_temperature - Backcontact_deposition_substrate_temperature - Backcontact_deposition_thermal_annealing_temperature - Backcontact_deposition_thermal_annealing_time - Backcontact_deposition_thermal_annealing_atmosphere - Backcontact_storage_time_until_next_deposition_step - Backcontact_storage_atmosphere - Backcontact_storage_relative_humidity - Backcontact_surface_treatment_before_next_deposition_step ### I. Additional Functional Layers Create separate, reusable layer records for front-side and back-side additional layers. Preserve all supplied fields beginning with: - Add_lay_front_ - Add_lay_back_ Include each layer's function, stack sequence, thickness, additives, deposition procedure, reactant and solvent information, processing conditions, storage conditions, and surface treatment. Allow zero, one, or multiple additional layers on either side of the device. ### J. Encapsulation Store: - Encapsulation - Encapsulation_stack_sequence - Encapsulation_edge_sealing_materials - Encapsulation_atmosphere_for_encapsulation - Encapsulation_water_vapour_transmission_rate - Encapsulation_oxygen_transmission_rate ### K. Current–Voltage (J–V) Performance Store: - JV_measured - JV_average_over_n_number_of_cells - JV_certified_values - JV_certification_institute - JV_storage_age_of_cell - JV_storage_atmosphere - JV_storage_relative_humidity - JV_test_atmosphere - JV_test_relative_humidity - JV_test_temperature - JV_light_source_type - JV_light_source_brand_name - JV_light_source_simulator_class - JV_light_intensity - JV_light_spectra - JV_light_wavelength_range - JV_light_illumination_direction - JV_light_masked_cell - JV_light_mask_area - JV_scan_speed - JV_scan_delay_time - JV_scan_integration_time - JV_scan_voltage_step - JV_preconditioning_protocol - JV_preconditioning_time - JV_preconditioning_potential - JV_preconditioning_light_intensity - JV_reverse_scan_Voc - JV_reverse_scan_Jsc - JV_reverse_scan_FF - JV_reverse_scan_PCE - JV_reverse_scan_Vmp - JV_reverse_scan_Jmp - JV_reverse_scan_series_resistance - JV_reverse_scan_shunt_resistance - JV_forward_scan_Voc - JV_forward_scan_Jsc - JV_forward_scan_FF - JV_forward_scan_PCE - JV_forward_scan_Vmp - JV_forward_scan_Jmp - JV_forward_scan_series_resistance - JV_forward_scan_shunt_resistance - JV_link_raw_data - JV_default_Voc - JV_default_Jsc - JV_default_FF - JV_default_PCE - JV_default_Voc_scan_direction - JV_default_Jsc_scan_direction - JV_default_FF_scan_direction - JV_default_PCE_scan_direction - JV_hysteresis_index Keep reverse-scan, forward-scan, and default values distinct. Support repeated J–V measurements for the same device under different test conditions. ### L. Stabilized Performance Store: - Stabilised_performance_measured - Stabilised_performance_procedure - Stabilised_performance_procedure_metrics - Stabilised_performance_measurement_time - Stabilised_performance_PCE - Stabilised_performance_Vmp - Stabilised_performance_Jmp - Stabilised_performance_link_raw_data ### M. External Quantum Efficiency (EQE) Store: - EQE_measured - EQE_light_bias - EQE_integrated_Jsc - EQE_link_raw_data ### N. Stability Testing Store all supplied fields beginning with `Stability_`, including: - Stability_measured - Stability_protocol - Stability_average_over_n_number_of_cells - Stability_light_source_type - Stability_light_source_brand_name - Stability_light_source_simulator_class - Stability_light_intensity - Stability_light_spectra - Stability_light_wavelength_range - Stability_light_illumination_direction - Stability_light_load_condition - Stability_light_cycling_times - Stability_light_UV_filter - Stability_potential_bias_load_condition - Stability_potential_bias_range - Stability_potential_bias_passive_resistance - Stability_temperature_load_condition - Stability_temperature_range - Stability_temperature_cycling_times - Stability_temperature_ramp_speed - Stability_atmosphere - Stability_atmosphere_oxygen_concentration - Stability_relative_humidity_load_conditions - Stability_relative_humidity_range - Stability_relative_humidity_average_value - Stability_time_total_exposure - Stability_periodic_JV_measurements - Stability_periodic_JV_measurements_time_between_jv - Stability_PCE_initial_value - Stability_PCE_burn_in_observed - Stability_PCE_end_of_experiment - Stability_PCE_T95 - Stability_PCE_Ts95 - Stability_PCE_T80 - Stability_PCE_Ts80 - Stability_PCE_Te80 - Stability_PCE_Tse80 - Stability_PCE_after_1000_h - Stability_lifetime_energy_yield - Stability_flexible_cell_number_of_bending_cycles - Stability_flexible_cell_bending_radius - Stability_flexible_cell_PCE_initial_value - Stability_flexible_cell_PCE_end_of_experiment - Stability_link_raw_data_for_stability_trace Support repeated stability experiments, multiple test conditions, time-series data, and separate records for individual cells and cell averages. ### O. Outdoor Performance Store all supplied fields beginning with `Outdoor_`, preserving the original spelling of `Outdoor_detaild_weather_data_available`. Include: - Outdoor_tested - Outdoor_protocol - Outdoor_average_over_n_number_of_cells - Outdoor_location_country - Outdoor_location_city - Outdoor_location_coordinates - Outdoor_location_climate_zone - Outdoor_installation_tilt - Outdoor_installation_cardinal_direction - Outdoor_installation_number_of_solar_tracking_axis - Outdoor_time_season - Outdoor_time_start - Outdoor_time_end - Outdoor_time_total_exposure - Outdoor_potential_bias_load_condition - Outdoor_potential_bias_range - Outdoor_potential_bias_passive_resistance - Outdoor_temperature_load_condition - Outdoor_temperature_range - Outdoor_temperature_tmodule - Outdoor_periodic_JV_measurements - Outdoor_periodic_JV_measurements_time_between_measurements - Outdoor_PCE_initial_value - Outdoor_PCE_burn_in_observed - Outdoor_PCE_end_of_experiment - Outdoor_PCE_T95 - Outdoor_PCE_Ts95 - Outdoor_PCE_T80 - Outdoor_PCE_Ts80 - Outdoor_PCE_Te80 - Outdoor_PCE_Tse80 - Outdoor_PCE_after_1000_h - Outdoor_power_generated - Outdoor_link_raw_data_for_outdoor_trace - Outdoor_detaild_weather_data_available - Outdoor_link_detailed_weather_data - Outdoor_spectral_data_available - Outdoor_link_spectral_data - Outdoor_irradiance_measured - Outdoor_link_irradiance_data ## 3. Database Design and Relationships Implement a normalized relational schema with: - A publication/reference table. - A device/sample table linked to each reference. - Layer and fabrication-process tables linked to each device. - Structured material and composition tables. - Separate J–V, stabilized-performance, EQE, stability, and outdoor measurement tables. - Raw-data file and attachment records. - Optional module-level performance records. Use primary keys, foreign keys, unique constraints, and indexes where appropriate. Do not create a single flat database table containing hundreds of repeated fields if this compromises data integrity or measurement history. Instead, provide a logical relationship between the normalized database and the original wide-format spreadsheet. Create a data dictionary documenting every field, including its original name, definition, data type, unit, validation rule, and whether it is required or optional. ## 4. Data Types, Units, and Missing Values Use suitable database types: - Integer or big integer for identifiers and cell counts. - Boolean for true/false attributes. - Decimal or numeric for scientific measurements. - Date for publication dates. - Timestamp with time zone where appropriate for actual measurement timestamps. - Text for descriptions, procedures, formulas, and file links. - Structured child tables for multiple compounds, solvents, concentrations, and layer sequences. Use explicit units for all physical quantities. Examples include: - Length and thickness: nm, µm, or mm. - Area: cm² or mm². - Temperature: °C. - Pressure: Pa, kPa, or mbar. - Relative humidity: %. - Voltage: V. - Current density: mA/cm². - Power conversion efficiency: %. - Fill factor: % or a documented dimensionless fraction. - Band gap: eV. - Bending radius: mm. - Exposure duration: hours. - Water-vapour and oxygen transmission rates: explicitly documented standard units. Store the unit alongside the measurement or define it unambiguously in the data dictionary. Do not silently convert units or change reported values. Treat empty cells, `nan`, `nannannan`, `########`, and blank strings as potential missing or invalid source values. Do not interpret them as genuine scientific measurements. Distinguish: - Unknown or not reported. - Not measured. - Not applicable. - Not extracted. - Invalid or unparseable source data. Use NULL for missing numeric values and a documented missing-value status where needed. Preserve the original imported value and import-validation result for traceability. Do not automatically convert a missing Boolean value to FALSE. A reported FALSE must remain distinct from an unknown value. ## 5. Data Import and Export Implement Excel and CSV import/export functionality. The import system must: 1. Accept spreadsheets with the provided column headers. 2. Map source columns to database fields. 3. Preserve the original filename and source reference. 4. Validate types, units, Boolean values, dates, and scientific measurements. 5. Detect duplicate records without incorrectly merging different devices or measurements. 6. Report missing, malformed, and unrecognized values. 7. Provide an import preview before committing records. 8. Display a row-level and field-level validation report. 9. Preserve source data and record provenance. 10. Support export to the original wide-format spreadsheet schema. The supplied example rows with Ref_ID values `43427` and `43428` must be treated as test fixtures for import validation, not as scientifically verified experimental records. ## 6. Website Interface Build a clean, responsive scientific database interface with the following pages: **Dashboard** - Total publications, devices, modules, and measurements. - Counts of perovskite compositions and device architectures. - Summary of available stability and outdoor datasets. - Recently added or updated records. **Publication Search** - Search by DOI, lead author, journal, publication date, and reference ID. - Filter by material composition, architecture, processing method, and performance. - Open a publication to view associated devices and measurements. **Device and Sample Explorer** - View device metadata, complete layer stack, fabrication conditions, composition, and performance. - Display a structured device stack in deposition order. - Navigate from a device to its reference publication and raw data. **Performance Analysis** - Filter by PCE, Voc, Jsc, fill factor, band gap, and cell area. - Compare forward and reverse scans. - Distinguish champion, average, stabilized, and certified values. - Generate scatter plots, histograms, and time-series plots. - Display measurement conditions alongside reported performance. **Stability and Outdoor Analysis** - Plot normalized and absolute PCE against exposure time. - Compare T95 and T80 metrics where available. - Filter by illumination, temperature, relative humidity, atmosphere, and load condition. - Display outdoor irradiance, module temperature, weather, and power data when available. **Data Entry and Editing** - Use grouped forms for metadata, materials, processing, performance, stability, and outdoor testing. - Support saving drafts, validating records, and editing existing entries. - Display field definitions and units beside input controls. **Data Import/Export** - Upload Excel or CSV files. - Preview and validate records. - Download original-schema exports and validation reports. ## 7. Search, Filtering, and Scientific Analysis Provide advanced filtering and sorting across all database modules. Support queries such as: - Find perovskite solar cells with PCE above a user-defined threshold. - Compare devices by composition, ETL, HTL, and back-contact material. - Filter devices by fabrication atmosphere and annealing conditions. - Identify devices with stabilized performance measurements. - Compare stability under different temperatures, illumination conditions, and humidity levels. - Find flexible devices and compare performance before and after bending. - Find semitransparent devices with reported average visible transmittance. - Compare indoor J–V measurements with outdoor exposure results where the measurement context permits. Clearly distinguish observed values, values calculated from raw data, and values reported by the publication. Do not treat missing values as zero in statistical analyses. Report sample sizes and excluded observations for every analysis. ## 8. Scientific Integrity and Traceability Every scientific measurement must be linked to: - Its source publication or laboratory dataset. - The relevant device, sample, or module. - Measurement date or reported measurement context, when available. - Test conditions and units. - Original reported value. - Any recalculated value and calculation method. - The person or process that entered or modified the record. - The raw-data file or source location, when available. Maintain an audit trail of record creation, updates, imports, and deletions. Never invent missing values, infer unreported experimental conditions as facts, or overwrite original publication values with derived values. ## 9. Security and Administration Provide: - Authentication and role-based access control. - Administrator, editor, and read-only researcher roles. - Record ownership and change history. - Database backups and recovery procedures. - Secure file upload and access-controlled raw-data storage. - Input validation and protection against SQL injection. - Configurable permissions for public and private datasets. ## 10. Deliverables Generate: 1. The complete database schema and relationships. 2. SQL table definitions and indexes. 3. A complete field-level data dictionary. 4. The responsive website interface. 5. Backend CRUD operations and validation logic. 6. Excel/CSV import and export tools. 7. Search, filtering, and visualization features. 8. Sample test records based on the supplied example rows. 9. Database migration and backup instructions. 10. Documentation describing how to extend the schema when new experimental fields are introduced. Prioritize scientific data integrity, reproducibility, complete field coverage, and compatibility with the original spreadsheet. Before implementation, verify that every supplied column header is mapped to either a database field or a documented structured child-table representation. Do not silently discard any field.
Automate extraction for "# Prompt: Create a Scientific Research Database for Perovskite Solar Cells ## 1. Project Objective Build a scientific research database website for storing, managing, searching, validating, and analyzing experimental data extracted from perovskite solar-cell research publications and laboratory datasets. The database must support the comprehensive collection of metadata, material compositions, fabrication procedures, device architectures, photovoltaic performance measurements, stability testing, and outdoor performance data. Use the provided spreadsheet column headers and sample records as the primary reference for the database schema. Preserve the original field names wherever possible to maintain compatibility with existing Excel files and research datasets. The database should be suitable for scientific research, literature-based data extraction, reproducibility analysis, machine learning, and statistical analysis. ## 2. Database Architecture Design a normalized relational database using PostgreSQL or an equivalent relational database management system. Create the following logical tables or related modules: ### A. Reference and Publication Metadata Store: - Ref_ID (primary key) - Ref_ID_temp - Ref_name_of_person_entering_the_data - Ref_data_entered_by_author - Ref_DOI_number - Ref_lead_author - Ref_publication_date - Ref_journal - Ref_part_of_initial_dataset - Ref_original_filename_data_upload - Ref_free_text_comment - Ref_internal_sample_id A single publication may contain multiple devices, samples, fabrication conditions, and measurements. Support one-to-many relationships between publications and experimental records. ### B. Device and Cell Information Store: - Cell_stack_sequence - Cell_area_total - Cell_area_measured - Cell_number_of_cells_per_substrate - Cell_architecture - Cell_flexible - Cell_flexible_min_bending_radius - Cell_semitransparent - Cell_semitransparent_AVT - Cell_semitransparent_wavelength_range - Cell_semitransparent_raw_data - Module - Module_number_of_cells_in_module - Module_area_total - Module_area_effective - Module_JV_data_recalculated_per_cell ### C. Substrate Properties Store: - Substrate_stack_sequence - Substrate_thickness - Substrate_area - Substrate_supplier - Substrate_brand_name - Substrate_deposition_procedure - Substrate_surface_roughness_rms - Substrate_etching_procedure - Substrate_cleaning_procedure ### D. Electron Transport Layer (ETL) Store: - ETL_stack_sequence - ETL_thickness - ETL_additives_compounds - ETL_additives_concentrations - ETL_deposition_procedure - ETL_deposition_aggregation_state_of_reactants - ETL_deposition_synthesis_atmosphere - ETL_deposition_synthesis_atmosphere_pressure_total - ETL_deposition_synthesis_atmosphere_pressure_partial - ETL_deposition_synthesis_atmosphere_relative_humidity - ETL_deposition_solvents - ETL_deposition_solvents_mixing_ratios - ETL_deposition_solvents_supplier - ETL_deposition_solvents_purity - ETL_deposition_reaction_solutions_compounds - ETL_deposition_reaction_solutions_compounds_supplier - ETL_deposition_reaction_solutions_compounds_purity - ETL_deposition_reaction_solutions_concentrations - ETL_deposition_reaction_solutions_volumes - ETL_deposition_reaction_solutions_age - ETL_deposition_reaction_solutions_temperature - ETL_deposition_substrate_temperature - ETL_deposition_thermal_annealing_temperature - ETL_deposition_thermal_annealing_time - ETL_deposition_thermal_annealing_atmosphere - ETL_storage_time_until_next_deposition_step - ETL_storage_atmosphere - ETL_storage_relative_humidity - ETL_surface_treatment_before_next_deposition_step ### E. Perovskite Material and Composition Store: - Perovskite_single_crystal - Perovskite_dimension_0D - Perovskite_dimension_2D - Perovskite_dimension_2D3D_mixture - Perovskite_dimension_3D - Perovskite_dimension_3D_with_2D_capping_layer - Perovskite_dimension_list_of_layers - Perovskite_composition_perovskite_ABC3_structure - Perovskite_composition_perovskite_inspired_structure - Perovskite_composition_a_ions - Perovskite_composition_a_ions_coefficients - Perovskite_composition_b_ions - Perovskite_composition_b_ions_coefficients - Perovskite_composition_c_ions - Perovskite_composition_c_ions_coefficients - Perovskite_composition_none_stoichiometry_components_in_excess - Perovskite_composition_short_form - Perovskite_composition_long_form - Perovskite_composition_assumption - Perovskite_composition_inorganic - Perovskite_composition_leadfree - Perovskite_additives_compounds - Perovskite_additives_concentrations - Perovskite_thickness - Perovskite_band_gap - Perovskite_band_gap_graded - Perovskite_band_gap_estimation_basis - Perovskite_pl_max Use structured composition records to support multiple A-site, B-site, and C-site ions, each with its own stoichiometric coefficient. Preserve the original composition string and allow composition normalization without overwriting the reported formula. ### F. Perovskite Deposition and Processing Store: - Perovskite_deposition_number_of_deposition_steps - Perovskite_deposition_procedure - Perovskite_deposition_aggregation_state_of_reactants - Perovskite_deposition_synthesis_atmosphere - Perovskite_deposition_synthesis_atmosphere_pressure_total - Perovskite_deposition_synthesis_atmosphere_pressure_partial - Perovskite_deposition_synthesis_atmosphere_relative_humidity - Perovskite_deposition_solvents - Perovskite_deposition_solvents_mixing_ratios - Perovskite_deposition_solvents_supplier - Perovskite_deposition_solvents_purity - Perovskite_deposition_reaction_solutions_compounds - Perovskite_deposition_reaction_solutions_compounds_supplier - Perovskite_deposition_reaction_solutions_compounds_purity - Perovskite_deposition_reaction_solutions_concentrations - Perovskite_deposition_reaction_solutions_volumes - Perovskite_deposition_reaction_solutions_age - Perovskite_deposition_reaction_solutions_temperature - Perovskite_deposition_substrate_temperature - Perovskite_deposition_quenching_induced_crystallisation - Perovskite_deposition_quenching_media - Perovskite_deposition_quenching_media_mixing_ratios - Perovskite_deposition_quenching_media_volume - Perovskite_deposition_quenching_media_additives_compounds - Perovskite_deposition_quenching_media_additives_concentrations - Perovskite_deposition_thermal_annealing_temperature - Perovskite_deposition_thermal_annealing_time - Perovskite_deposition_thermal_annealing_atmosphere - Perovskite_deposition_thermal_annealing_relative_humidity - Perovskite_deposition_thermal_annealing_pressure - Perovskite_deposition_solvent_annealing - Perovskite_deposition_solvent_annealing_timing - Perovskite_deposition_solvent_annealing_solvent_atmosphere - Perovskite_deposition_solvent_annealing_time - Perovskite_deposition_solvent_annealing_temperature - Perovskite_deposition_after_treatment_of_formed_perovskite - Perovskite_deposition_after_treatment_of_formed_perovskite_met - Perovskite_storage_time_until_next_deposition_step - Perovskite_storage_atmosphere - Perovskite_storage_relative_humidity - Perovskite_surface_treatment_before_next_deposition_step ### G. Hole Transport Layer (HTL) Store: - HTL_stack_sequence - HTL_thickness_list - HTL_additives_compounds - HTL_additives_concentrations - HTL_deposition_procedure - HTL_deposition_aggregation_state_of_reactants - HTL_deposition_synthesis_atmosphere - HTL_deposition_synthesis_atmosphere_pressure_total - HTL_deposition_synthesis_atmosphere_pressure_partial - HTL_deposition_synthesis_atmosphere_relative_humidity - HTL_deposition_solvents - HTL_deposition_solvents_mixing_ratios - HTL_deposition_solvents_supplier - HTL_deposition_solvents_purity - HTL_deposition_reaction_solutions_compounds - HTL_deposition_reaction_solutions_compounds_supplier - HTL_deposition_reaction_solutions_compounds_purity - HTL_deposition_reaction_solutions_concentrations - HTL_deposition_reaction_solutions_volumes - HTL_deposition_reaction_solutions_age - HTL_deposition_reaction_solutions_temperature - HTL_deposition_substrate_temperature - HTL_deposition_thermal_annealing_temperature - HTL_deposition_thermal_annealing_time - HTL_deposition_thermal_annealing_atmosphere - HTL_storage_time_until_next_deposition_step - HTL_storage_atmosphere - HTL_storage_relative_humidity - HTL_surface_treatment_before_next_deposition_step ### H. Back Contact Store all supplied Backcontact fields, including: - Backcontact_stack_sequence - Backcontact_thickness_list - Backcontact_additives_compounds - Backcontact_additives_concentrations - Backcontact_deposition_procedure - Backcontact_deposition_aggregation_state_of_reactants - Backcontact_deposition_synthesis_atmosphere - Backcontact_deposition_synthesis_atmosphere_pressure_total - Backcontact_deposition_synthesis_atmosphere_pressure_partial - Backcontact_deposition_synthesis_atmosphere_relative_humidity - Backcontact_deposition_solvents - Backcontact_deposition_solvents_mixing_ratios - Backcontact_deposition_solvents_supplier - Backcontact_deposition_solvents_purity - Backcontact_deposition_reaction_solutions_compounds - Backcontact_deposition_reaction_solutions_compounds_supplier - Backcontact_deposition_reaction_solutions_compounds_purity - Backcontact_deposition_reaction_solutions_concentrations - Backcontact_deposition_reaction_solutions_volumes - Backcontact_deposition_reaction_solutions_age - Backcontact_deposition_reaction_solutions_temperature - Backcontact_deposition_substrate_temperature - Backcontact_deposition_thermal_annealing_temperature - Backcontact_deposition_thermal_annealing_time - Backcontact_deposition_thermal_annealing_atmosphere - Backcontact_storage_time_until_next_deposition_step - Backcontact_storage_atmosphere - Backcontact_storage_relative_humidity - Backcontact_surface_treatment_before_next_deposition_step ### I. Additional Functional Layers Create separate, reusable layer records for front-side and back-side additional layers. Preserve all supplied fields beginning with: - Add_lay_front_ - Add_lay_back_ Include each layer's function, stack sequence, thickness, additives, deposition procedure, reactant and solvent information, processing conditions, storage conditions, and surface treatment. Allow zero, one, or multiple additional layers on either side of the device. ### J. Encapsulation Store: - Encapsulation - Encapsulation_stack_sequence - Encapsulation_edge_sealing_materials - Encapsulation_atmosphere_for_encapsulation - Encapsulation_water_vapour_transmission_rate - Encapsulation_oxygen_transmission_rate ### K. Current–Voltage (J–V) Performance Store: - JV_measured - JV_average_over_n_number_of_cells - JV_certified_values - JV_certification_institute - JV_storage_age_of_cell - JV_storage_atmosphere - JV_storage_relative_humidity - JV_test_atmosphere - JV_test_relative_humidity - JV_test_temperature - JV_light_source_type - JV_light_source_brand_name - JV_light_source_simulator_class - JV_light_intensity - JV_light_spectra - JV_light_wavelength_range - JV_light_illumination_direction - JV_light_masked_cell - JV_light_mask_area - JV_scan_speed - JV_scan_delay_time - JV_scan_integration_time - JV_scan_voltage_step - JV_preconditioning_protocol - JV_preconditioning_time - JV_preconditioning_potential - JV_preconditioning_light_intensity - JV_reverse_scan_Voc - JV_reverse_scan_Jsc - JV_reverse_scan_FF - JV_reverse_scan_PCE - JV_reverse_scan_Vmp - JV_reverse_scan_Jmp - JV_reverse_scan_series_resistance - JV_reverse_scan_shunt_resistance - JV_forward_scan_Voc - JV_forward_scan_Jsc - JV_forward_scan_FF - JV_forward_scan_PCE - JV_forward_scan_Vmp - JV_forward_scan_Jmp - JV_forward_scan_series_resistance - JV_forward_scan_shunt_resistance - JV_link_raw_data - JV_default_Voc - JV_default_Jsc - JV_default_FF - JV_default_PCE - JV_default_Voc_scan_direction - JV_default_Jsc_scan_direction - JV_default_FF_scan_direction - JV_default_PCE_scan_direction - JV_hysteresis_index Keep reverse-scan, forward-scan, and default values distinct. Support repeated J–V measurements for the same device under different test conditions. ### L. Stabilized Performance Store: - Stabilised_performance_measured - Stabilised_performance_procedure - Stabilised_performance_procedure_metrics - Stabilised_performance_measurement_time - Stabilised_performance_PCE - Stabilised_performance_Vmp - Stabilised_performance_Jmp - Stabilised_performance_link_raw_data ### M. External Quantum Efficiency (EQE) Store: - EQE_measured - EQE_light_bias - EQE_integrated_Jsc - EQE_link_raw_data ### N. Stability Testing Store all supplied fields beginning with `Stability_`, including: - Stability_measured - Stability_protocol - Stability_average_over_n_number_of_cells - Stability_light_source_type - Stability_light_source_brand_name - Stability_light_source_simulator_class - Stability_light_intensity - Stability_light_spectra - Stability_light_wavelength_range - Stability_light_illumination_direction - Stability_light_load_condition - Stability_light_cycling_times - Stability_light_UV_filter - Stability_potential_bias_load_condition - Stability_potential_bias_range - Stability_potential_bias_passive_resistance - Stability_temperature_load_condition - Stability_temperature_range - Stability_temperature_cycling_times - Stability_temperature_ramp_speed - Stability_atmosphere - Stability_atmosphere_oxygen_concentration - Stability_relative_humidity_load_conditions - Stability_relative_humidity_range - Stability_relative_humidity_average_value - Stability_time_total_exposure - Stability_periodic_JV_measurements - Stability_periodic_JV_measurements_time_between_jv - Stability_PCE_initial_value - Stability_PCE_burn_in_observed - Stability_PCE_end_of_experiment - Stability_PCE_T95 - Stability_PCE_Ts95 - Stability_PCE_T80 - Stability_PCE_Ts80 - Stability_PCE_Te80 - Stability_PCE_Tse80 - Stability_PCE_after_1000_h - Stability_lifetime_energy_yield - Stability_flexible_cell_number_of_bending_cycles - Stability_flexible_cell_bending_radius - Stability_flexible_cell_PCE_initial_value - Stability_flexible_cell_PCE_end_of_experiment - Stability_link_raw_data_for_stability_trace Support repeated stability experiments, multiple test conditions, time-series data, and separate records for individual cells and cell averages. ### O. Outdoor Performance Store all supplied fields beginning with `Outdoor_`, preserving the original spelling of `Outdoor_detaild_weather_data_available`. Include: - Outdoor_tested - Outdoor_protocol - Outdoor_average_over_n_number_of_cells - Outdoor_location_country - Outdoor_location_city - Outdoor_location_coordinates - Outdoor_location_climate_zone - Outdoor_installation_tilt - Outdoor_installation_cardinal_direction - Outdoor_installation_number_of_solar_tracking_axis - Outdoor_time_season - Outdoor_time_start - Outdoor_time_end - Outdoor_time_total_exposure - Outdoor_potential_bias_load_condition - Outdoor_potential_bias_range - Outdoor_potential_bias_passive_resistance - Outdoor_temperature_load_condition - Outdoor_temperature_range - Outdoor_temperature_tmodule - Outdoor_periodic_JV_measurements - Outdoor_periodic_JV_measurements_time_between_measurements - Outdoor_PCE_initial_value - Outdoor_PCE_burn_in_observed - Outdoor_PCE_end_of_experiment - Outdoor_PCE_T95 - Outdoor_PCE_Ts95 - Outdoor_PCE_T80 - Outdoor_PCE_Ts80 - Outdoor_PCE_Te80 - Outdoor_PCE_Tse80 - Outdoor_PCE_after_1000_h - Outdoor_power_generated - Outdoor_link_raw_data_for_outdoor_trace - Outdoor_detaild_weather_data_available - Outdoor_link_detailed_weather_data - Outdoor_spectral_data_available - Outdoor_link_spectral_data - Outdoor_irradiance_measured - Outdoor_link_irradiance_data ## 3. Database Design and Relationships Implement a normalized relational schema with: - A publication/reference table. - A device/sample table linked to each reference. - Layer and fabrication-process tables linked to each device. - Structured material and composition tables. - Separate J–V, stabilized-performance, EQE, stability, and outdoor measurement tables. - Raw-data file and attachment records. - Optional module-level performance records. Use primary keys, foreign keys, unique constraints, and indexes where appropriate. Do not create a single flat database table containing hundreds of repeated fields if this compromises data integrity or measurement history. Instead, provide a logical relationship between the normalized database and the original wide-format spreadsheet. Create a data dictionary documenting every field, including its original name, definition, data type, unit, validation rule, and whether it is required or optional. ## 4. Data Types, Units, and Missing Values Use suitable database types: - Integer or big integer for identifiers and cell counts. - Boolean for true/false attributes. - Decimal or numeric for scientific measurements. - Date for publication dates. - Timestamp with time zone where appropriate for actual measurement timestamps. - Text for descriptions, procedures, formulas, and file links. - Structured child tables for multiple compounds, solvents, concentrations, and layer sequences. Use explicit units for all physical quantities. Examples include: - Length and thickness: nm, µm, or mm. - Area: cm² or mm². - Temperature: °C. - Pressure: Pa, kPa, or mbar. - Relative humidity: %. - Voltage: V. - Current density: mA/cm². - Power conversion efficiency: %. - Fill factor: % or a documented dimensionless fraction. - Band gap: eV. - Bending radius: mm. - Exposure duration: hours. - Water-vapour and oxygen transmission rates: explicitly documented standard units. Store the unit alongside the measurement or define it unambiguously in the data dictionary. Do not silently convert units or change reported values. Treat empty cells, `nan`, `nannannan`, `########`, and blank strings as potential missing or invalid source values. Do not interpret them as genuine scientific measurements. Distinguish: - Unknown or not reported. - Not measured. - Not applicable. - Not extracted. - Invalid or unparseable source data. Use NULL for missing numeric values and a documented missing-value status where needed. Preserve the original imported value and import-validation result for traceability. Do not automatically convert a missing Boolean value to FALSE. A reported FALSE must remain distinct from an unknown value. ## 5. Data Import and Export Implement Excel and CSV import/export functionality. The import system must: 1. Accept spreadsheets with the provided column headers. 2. Map source columns to database fields. 3. Preserve the original filename and source reference. 4. Validate types, units, Boolean values, dates, and scientific measurements. 5. Detect duplicate records without incorrectly merging different devices or measurements. 6. Report missing, malformed, and unrecognized values. 7. Provide an import preview before committing records. 8. Display a row-level and field-level validation report. 9. Preserve source data and record provenance. 10. Support export to the original wide-format spreadsheet schema. The supplied example rows with Ref_ID values `43427` and `43428` must be treated as test fixtures for import validation, not as scientifically verified experimental records. ## 6. Website Interface Build a clean, responsive scientific database interface with the following pages: **Dashboard** - Total publications, devices, modules, and measurements. - Counts of perovskite compositions and device architectures. - Summary of available stability and outdoor datasets. - Recently added or updated records. **Publication Search** - Search by DOI, lead author, journal, publication date, and reference ID. - Filter by material composition, architecture, processing method, and performance. - Open a publication to view associated devices and measurements. **Device and Sample Explorer** - View device metadata, complete layer stack, fabrication conditions, composition, and performance. - Display a structured device stack in deposition order. - Navigate from a device to its reference publication and raw data. **Performance Analysis** - Filter by PCE, Voc, Jsc, fill factor, band gap, and cell area. - Compare forward and reverse scans. - Distinguish champion, average, stabilized, and certified values. - Generate scatter plots, histograms, and time-series plots. - Display measurement conditions alongside reported performance. **Stability and Outdoor Analysis** - Plot normalized and absolute PCE against exposure time. - Compare T95 and T80 metrics where available. - Filter by illumination, temperature, relative humidity, atmosphere, and load condition. - Display outdoor irradiance, module temperature, weather, and power data when available. **Data Entry and Editing** - Use grouped forms for metadata, materials, processing, performance, stability, and outdoor testing. - Support saving drafts, validating records, and editing existing entries. - Display field definitions and units beside input controls. **Data Import/Export** - Upload Excel or CSV files. - Preview and validate records. - Download original-schema exports and validation reports. ## 7. Search, Filtering, and Scientific Analysis Provide advanced filtering and sorting across all database modules. Support queries such as: - Find perovskite solar cells with PCE above a user-defined threshold. - Compare devices by composition, ETL, HTL, and back-contact material. - Filter devices by fabrication atmosphere and annealing conditions. - Identify devices with stabilized performance measurements. - Compare stability under different temperatures, illumination conditions, and humidity levels. - Find flexible devices and compare performance before and after bending. - Find semitransparent devices with reported average visible transmittance. - Compare indoor J–V measurements with outdoor exposure results where the measurement context permits. Clearly distinguish observed values, values calculated from raw data, and values reported by the publication. Do not treat missing values as zero in statistical analyses. Report sample sizes and excluded observations for every analysis. ## 8. Scientific Integrity and Traceability Every scientific measurement must be linked to: - Its source publication or laboratory dataset. - The relevant device, sample, or module. - Measurement date or reported measurement context, when available. - Test conditions and units. - Original reported value. - Any recalculated value and calculation method. - The person or process that entered or modified the record. - The raw-data file or source location, when available. Maintain an audit trail of record creation, updates, imports, and deletions. Never invent missing values, infer unreported experimental conditions as facts, or overwrite original publication values with derived values. ## 9. Security and Administration Provide: - Authentication and role-based access control. - Administrator, editor, and read-only researcher roles. - Record ownership and change history. - Database backups and recovery procedures. - Secure file upload and access-controlled raw-data storage. - Input validation and protection against SQL injection. - Configurable permissions for public and private datasets. ## 10. Deliverables Generate: 1. The complete database schema and relationships. 2. SQL table definitions and indexes. 3. A complete field-level data dictionary. 4. The responsive website interface. 5. Backend CRUD operations and validation logic. 6. Excel/CSV import and export tools. 7. Search, filtering, and visualization features. 8. Sample test records based on the supplied example rows. 9. Database migration and backup instructions. 10. Documentation describing how to extend the schema when new experimental fields are introduced. Prioritize scientific data integrity, reproducibility, complete field coverage, and compatibility with the original spreadsheet. Before implementation, verify that every supplied column header is mapped to either a database field or a documented structured child-table representation. Do not silently discard any field.". Extract structured, evidence-grounded data points directly from hundreds of papers with source page coordinates.
Schema Field Definitions (78)
Data Verification Status Taxonomy
To maintain rigorous scientific standards, Sci-database differentiates between automated signals and human audit:
Value located and extracted from the full-text PDF by the Kateeb engine.
An independent second model produced a compatible value during automated second-pass review.
A named researcher audited the value against the visual page coordinates.
Performance evaluated against a standardized, published evaluation protocol.
An independent external research group reproduced the extraction and experimental result.
