{
    "uuid": "fc371267f3d4e2ba3728c1ad355a4885",
    "elementtype": "equipment",
    "schema_kind": "equipment",
    "title": "Equipment - Foundations",
    "description": "Inventory record for the foundations lot of a building (foundations, basement, drainage). Child schema of building-equipment used as the equipment counterpart of the foundations wear-and-tear (vetuste) intervention schema.",
    "export_date": "2026-05-27 10:00:00",
    "dolibarr_version": "18.0.0",
    "extrafields": [
        {
            "name": "fnd_inventory_number",
            "label": "Inventory number",
            "type": "varchar",
            "size": "50",
            "required": 1,
            "unique": 1,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Internal inventory tag",
            "pos": 100,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_building_uuid",
            "label": "Parent building UUID",
            "type": "varchar",
            "size": "50",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "UUID of the parent building-equipment record",
            "pos": 105,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_foundation_type",
            "label": "Foundation type",
            "type": "select",
            "size": "",
            "required": 1,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "shallow_strip": "Shallow strip footing",
                    "shallow_pad": "Shallow pad footing",
                    "raft": "Raft foundation",
                    "deep_piles": "Deep piles",
                    "micropiles": "Micropiles",
                    "screwed_piles": "Screwed piles",
                    "other": "Other"
                }
            },
            "help": "Primary foundation type",
            "pos": 200,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_substrate_type",
            "label": "Substrate type",
            "type": "select",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "clay": "Clay",
                    "sand": "Sand",
                    "loam": "Loam",
                    "rock": "Rock",
                    "gravel": "Gravel",
                    "peat": "Peat",
                    "mixed": "Mixed",
                    "unknown": "Unknown"
                }
            },
            "help": "Soil type beneath the foundations",
            "pos": 205,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_install_year",
            "label": "Year of installation",
            "type": "int",
            "size": "4",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Year the foundations were built",
            "pos": 210,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_basement_present",
            "label": "Basement present",
            "type": "boolean",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Is there a basement under the building",
            "pos": 300,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_basement_waterproofing_present",
            "label": "Basement waterproofing present",
            "type": "boolean",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Waterproofing membrane or coating applied on basement walls",
            "pos": 305,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_perimeter_drain_present",
            "label": "Perimeter drain present",
            "type": "boolean",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Perimeter drainage installed around the foundations",
            "pos": 310,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_groundwater_level_m",
            "label": "Groundwater level (m)",
            "type": "double",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Depth of the groundwater table in metres below ground level",
            "pos": 315,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_settlement_observed",
            "label": "Settlement observed",
            "type": "boolean",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Differential settlement or subsidence observed",
            "pos": 400,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_settlement_severity",
            "label": "Settlement severity",
            "type": "select",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "none": "None",
                    "minor": "Minor",
                    "moderate": "Moderate",
                    "severe": "Severe"
                }
            },
            "help": "Severity of observed settlement",
            "pos": 405,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "none",
            "alwayseditable": 0
        },
        {
            "name": "fnd_soil_study_date",
            "label": "Geotechnical soil study date",
            "type": "date",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Date of the most recent geotechnical soil study",
            "pos": 410,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_status",
            "label": "Status",
            "type": "select",
            "size": "",
            "required": 1,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": {
                "options": {
                    "in_service": "In service",
                    "under_repair": "Under repair",
                    "under_reinforcement": "Under reinforcement",
                    "unsafe": "Unsafe",
                    "decommissioned": "Decommissioned"
                }
            },
            "help": "Operational status",
            "pos": 500,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "in_service",
            "alwayseditable": 0
        },
        {
            "name": "fnd_last_inspection_date",
            "label": "Last inspection date",
            "type": "date",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "",
            "pos": 510,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_next_maintenance_date",
            "label": "Next scheduled maintenance",
            "type": "date",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "",
            "pos": 520,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_warranty_end_date",
            "label": "Decennial warranty end date",
            "type": "date",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "End of the 10-year construction warranty if applicable",
            "pos": 530,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_contractor_name",
            "label": "Original contractor",
            "type": "varchar",
            "size": "200",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Company that built the foundations",
            "pos": 600,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_maintenance_contract_ref",
            "label": "Maintenance contract reference",
            "type": "varchar",
            "size": "100",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "",
            "pos": 610,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        },
        {
            "name": "fnd_notes",
            "label": "Notes",
            "type": "text",
            "size": "",
            "required": 0,
            "unique": 0,
            "visible": 1,
            "totalizable": 0,
            "printable": 1,
            "param": [],
            "help": "Free-form notes",
            "pos": 700,
            "enabled": 1,
            "perms": "",
            "langfile": "",
            "computed": "",
            "default": "",
            "alwayseditable": 0
        }
    ],
    "pdf_layout": {
        "version": "1.1",
        "page": {
            "format": "A4",
            "orientation": "portrait",
            "margins": {
                "top": 20,
                "right": 15,
                "bottom": 20,
                "left": 15
            },
            "font_family": "helvetica",
            "font_size": 10
        },
        "header": {
            "title": "Equipment - Foundations",
            "subtitle": "Building lot inventory record",
            "logo_placeholder": "top-right",
            "show_page_number": true,
            "show_generated_date": true
        },
        "footer": {
            "text": "Generated via schemas.cap-rel.fr"
        },
        "sections": [
            {
                "id": "identification",
                "title": "Identification",
                "layout": "two_columns",
                "fields": [
                    "fnd_inventory_number",
                    "fnd_building_uuid"
                ]
            },
            {
                "id": "foundation_type",
                "title": "Foundation type and substrate",
                "layout": "two_columns",
                "fields": [
                    "fnd_foundation_type",
                    "fnd_substrate_type",
                    "fnd_install_year"
                ]
            },
            {
                "id": "basement_and_drainage",
                "title": "Basement and drainage",
                "layout": "two_columns",
                "fields": [
                    "fnd_basement_present",
                    "fnd_basement_waterproofing_present",
                    "fnd_perimeter_drain_present",
                    "fnd_groundwater_level_m"
                ]
            },
            {
                "id": "observed_defects",
                "title": "Observed defects",
                "layout": "two_columns",
                "fields": [
                    "fnd_settlement_observed",
                    "fnd_settlement_severity",
                    "fnd_soil_study_date"
                ]
            },
            {
                "id": "status",
                "title": "Status and follow-up",
                "layout": "highlight_box",
                "fields": [
                    "fnd_status",
                    "fnd_last_inspection_date",
                    "fnd_next_maintenance_date",
                    "fnd_warranty_end_date"
                ]
            },
            {
                "id": "commercial",
                "title": "Contractor and maintenance",
                "layout": "two_columns",
                "fields": [
                    "fnd_contractor_name",
                    "fnd_maintenance_contract_ref"
                ]
            },
            {
                "id": "notes",
                "title": "Notes",
                "layout": "full_width",
                "fields": [
                    "fnd_notes"
                ]
            }
        ],
        "field_render": {
            "fnd_status": {
                "style": "highlight",
                "color_by_value": {
                    "in_service": "#1f8a1f",
                    "under_repair": "#e69500",
                    "under_reinforcement": "#3273dc",
                    "unsafe": "#c00000",
                    "decommissioned": "#555555"
                }
            },
            "fnd_settlement_severity": {
                "style": "highlight",
                "color_by_value": {
                    "none": "#1f8a1f",
                    "minor": "#e69500",
                    "moderate": "#c00000",
                    "severe": "#c00000"
                }
            },
            "fnd_notes": {
                "min_height": 30,
                "show_if_empty": false
            },
            "fnd_inventory_number": {
                "style": "bold",
                "frame": true
            }
        }
    }
}
