Data structure
Database Export Structure and Overview
When users initiate an export by clicking the [Export Now] button or through scheduled exports, the system generates or updates various tables and files based on the configured export filters and YAML settings. This document outlines the tables used in exports, detailing how each table contributes to data management for CapEx requests, cash flow, and capital budget data.
CapEx Request Data Export
The CapEx Request Data Export section covers tables that store information about capital expenditure (CapEx) requests, including essential request metadata, properties, approval steps, and lifecycle states. Tables in this section only export data if the request meets the current request state filter and properties that are defined in the YAML settings. Key tables include capex_management_requests
, property_info
, and cm_request_states
, each of which provides a specific aspect of the request data, from basic identifiers to properties and approval steps.
Table: capex_management_requests
The capex_management_requests
table stores details about each CapEx request, including both static and dynamic properties. Static system properties use descriptive names (e.g., totalRequestedAmount
), while dynamic properties are identified by a property prefix and ID (e.g., property456
). Mapping of dynamic property IDs to names is available in the property_info
or property_names_transposed
table. Codified values are shown as codes; their code-to-value mappings can be found in property_info_codes
.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each CapEx request in Capex Management | 12345 |
| It also acts as a unique identifier for each CapEx request Capex Management | 54321 |
| Name or title of the CapEx request. | “New Equipment” |
| Holds various properties based on request type: CAPEX or GLOBAL. The number of columns depends on the configured properties for export defined in the YAML configuration file. | “totalRequestedAmount” or “property456” |
Table: property_info
This table provides metadata for each property, including its type and display name.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each property. | 456 |
| Internal name used in | “totalRequestedAmount” or “property456” |
| Display name for the property in Weissr. | “Requested Amount”, “Department” |
| Data type of the property (e.g., Boolean, Date, Money). | “Money”, ”Code” |
Table: property_names_transposed
The property_names_transposed
table contains a separate column for each propertyId
found in property_info
, with the column name as the propertyId
(e.g., property456
) and the cell data as the caption
(display name) for that property. This structure allows each property’s display name to be easily accessed across multiple properties within a single row.
Column | Description | Example Data |
---|---|---|
| Display name for property with ID 456 | “Project Budget” |
| Display name for property with ID 789 | “Asset Value” |
| Display name for property with ID 123 | “Depreciation Rate” |
Explanation: In
property_names_transposed
, eachpropertyId
fromproperty_info
becomes a separate column with thecaption
as the cell data. This layout provides an easily accessible reference for each property’s display name across multiple properties.
Table: cm_routes
Contains data on approval routes configured within the system.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each route. | 102 |
| Display name for the route in Weissr. | “Smaller Investments < 20 kEUR” |
Table: cm_approval_steps
Contains data on individual approval steps within each route.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each approval step. | 203 |
| Display name for the approval step in Weissr. | “Step 1 Approval” |
Table: cm_request_states
The cm_request_states
table contains two columns, id
and name
, for the predefined states that CapEx requests can be in, representing each phase of the request lifecycle. Only the following states are available in this table:
ID | Name | Description |
---|---|---|
0 | Undefined | State is not yet specified or assigned. |
1 | Draft | Initial state where the request is created. |
2 | Under Review | Request is under review and awaiting decision. |
3 | Decision | Request is in the decision-making phase. |
4 | Monitoring | Request is approved and being actively monitored. |
5 | Follow Up | Request is in post-completion review. |
6 | Completed | Request has been fully completed. |
7 | Rejected | Request has been declined. |
Note: Only these states are visible in
cm_request_states
, ensuring consistency in the request lifecycle tracking.
Table: decision_information
The decision_information
table logs key decision data for each CapEx request, such as assigned decision-makers, planned dates, and actual decision dates.
Column | Description | Example Data |
---|---|---|
| Foreign key linking to the | 54321 |
| Foreign key linking to the | 102 |
| Foreign key linking to | 203 |
| Status for the step the decision-making process. | “In Progress” |
| ID of the assigned decision-maker, linking to the user’s | 789 |
| ID of the actual decision-maker, linking to the user’s | 456 |
| The planned date for the decision-making step. | “2023-12-01” |
| Actual date the decision was made. | “2023-12-15” |
Table: cm_models
Stores investment model information relevant to CapEx requests.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each investment model. | 401 |
| Display name for the investment model. | “Financial Model” |
Table: cm_nodes
Stores node information, representing organizational units the CapEx request are located in.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each node. | 501 |
| Display name for the node. | “Manufacturing” |
Table: currency
Stores currency data for financial calculations.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each currency. | 1 |
| Currency code, matching the | “USD” |
Table: exchange_rates
This table contains monthly exchange rate data for various currencies.
Column | Description | Example Data |
---|---|---|
| The currency code (e.g., "USD"), linking to the | “USD” |
| Year for the exchange rate. | 2024 |
| Index of the month in the year (1 for January, 12 for December). | 1 |
| Exchange rate value for the given month related to the group currency. | 1.13 |
Table: users
The users
table stores user information within the system, including details from external identity management (IdM) sources.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each user. | 789 |
| Full name of the user. | “John Doe” |
| System username for the user. | “jdoe@example.com” |
| Email address of the user. | “jdoe@example.com” |
| Username from an external IdM system. If not used it will be NULL. | “jdoe_ext” |
| Location in the external IdM system. If not used it will be NULL. | “HQ” |
| Company affiliation in the external IdM system. If not used it will be NULL. | “Weissr Inc.” |
Table: cm_capex
The cm_capex
table contains expenditure data for capital projects, storing planned, actual, and forecasted expenditure amounts based on the approval state of each request. Data is exported to this table only if selected in the export filters.
Column | Description | Example Data |
---|---|---|
| Foreign key linking to | 12345 |
| Foreign key linking to | 678 |
| Unique identifier for the asset related to the expenditure. | 4567 |
| Origin reference for the asset, linking it to original asset records. | 8901 |
| Industry subcategory for the asset. Removed in version 5.1. | Manufacturing |
| Asset category type, allowing grouping and filtering by asset categorization. | Equipment |
| Name of the expenditure as entered in the project’s expenditure tab. | Conveyor Belt |
| Status of the expenditure data, which can be | POST-DECISION |
| Year the asset begins its operational use or depreciation schedule. | 2024 |
| Depreciation period or useful life of the asset, represented as an integer indicating the number of years over which the asset is depreciated. | 10 |
| Fiscal year for the data entry; differs from the calendar year if custom fiscal years are configured. | FY2024 |
| Standard calendar year for the expenditure entry. | 2024 |
| Month of the expenditure within the fiscal or calendar year. | April |
| Month number within the calendar year (1 for January, 12 for December). | 4 |
| Planned expenditure amount (only filled if | 10000 |
| Represents the actual expenditure amount for a project. ( | 6500 |
| Represents the forecasted expenditure amount for a project ( | 3500 |
Note: Only one of
planned
,actual
, orforecast
is populated per row, depending on the expenditure phase and is always exported in the local currency for the project
Table: cm_capex_commitments
New from version 5.1. The cm_capex_commitments
table captures commitment data associated with each expenditure line. It exports alongside cm_capex
when enabled in the export settings. Only expenditure lines with recorded commitments are included in the export; lines without commitments or those in the pre-decision phase are excluded. Commitments data is only exported if the customer utilizes the commitment import feature, which must be enabled by Weissr Support in the YAML file.
Column | Description | Example Data |
---|---|---|
| Foreign key linking to | 4567 |
| Foreign key linking to | 12345 |
| Currency code for the commitment amount, ensuring accurate conversion if needed. | USD |
| Total sum of commitments for the specified expenditure line. | 12000 |
Relationship Notes:
expenditureId
incm_capex_commitments
corresponds toassetId
incm_capex
, linking commitments to specific assets.
requestOriginId
links torequestOriginId
in thecapex_management_request
table, allowing tracking of each commitment’s source request.
Cash flow data export
The Cash Flow Data Export section focuses on capturing projected and actual cash flows for CapEx requests. Based on the request state filter and selected rows data from CapEx requests is filtered and stored in the cm_cashflow_data
and cm_cashflow_meta
tables. These tables hold detailed cash flow entries, allowing users to track the financial impact of requests at various stages.
Table: cm_cashflow_data
Column | Description | Example Data |
---|---|---|
| Foreign key linking to | 12345 |
| Flag (1 or 0) indicating if the data is pre-decision (1) or post-decision (0). | 1 |
| Foreign key linking to | 101 |
| Year for the cash flow data entry. | 2024 |
| Cash flow value for the specified year. | 500000 |
Table: cm_cashflow_meta
Column | Description | Example Data |
---|---|---|
| Unique identifier for each cash flow metadata entry. | 101 |
| Name of the row associated with the cash flow entry. | “Operating Cash Flow” |
| Code representing the type of data in the cash flow row. | “CASH_OP” |
Budget Data Export
The Budget Data Export section documents tables related to budget management, including budget creation, frames, requests, and property definitions. This data provides a comprehensive view of budgets by including approved budget periods, request data, and historical exchange rates. Budget data exports are based on budget filter selection.
Table: budget_data
Column | Description | Example Data |
---|---|---|
| Unique identifier for each budget entry. | 202 |
| Date the budget was created. | “2023-01-15” |
| Date the budget was last modified. | “2023-06-10” |
| Start year of the budget period. | 2024 |
| End year of the budget period. | 2026 |
| Current status of the budget (approved, preliminary, not set). | “approved” |
| Identifier if the budget is a backup; filled only if exported as a backup. | 301 |
| Name of the budget backup, filled only if exported as a backup. | “2024 Q1 Backup” |
Table: budget_frames
This table provides the budgeted miscellaneous or contingency amount for each organizational unit in capital budgets.
Column | Description | Example Data |
---|---|---|
| Identifier for the node associated with the budget. | 501 |
| Foreign key linking to the | 202 |
| Budgeted miscellaneous or contingency amount for the specific node and budget. | 120000 |
| Currency code for the budgeted miscellaneous or contingency amount. | “USD” |
| Indicates the focus of the budget entry (spend or decision). | “spend” |
Table: capital_budgeting_requests
This table stores details about budget requests, with both static and dynamic properties available.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each budget request. | 23456 |
| Foreign key linking to the | 54321 |
| Name or title of the budget request. | “New Equipment” |
| Foreign key linking to the | 202 |
| Includes properties based on request type: Budget or Both (filterable in the YAML configuration file). | “includeToBudget” |
Notes:
Static Properties: Displayed as property names, e.g.,
includeToBudget
.Dynamic Properties: Named as
property[ID]
, e.g.,property456
. Mappings for dynamic properties can be found inbudget_property_names_transposed
.Codified Properties: Displayed as codes; code-to-value mappings are in
budget_property_info_codes
.
Table: budget_property_info
The budget_property_info
table contains metadata for properties in budget requests.
Column | Description | Example Data |
---|---|---|
| Unique identifier for each property. | 456 |
| Internal name used in | “projectBudget” |
| Display name in Weissr. | “Project Budget” |
| Data type of the property (e.g., Boolean, Date, Money). | “Money” |
Table: budget_property_names_transposed
Each column in this table represents a propertyId
from budget_property_info
, with each cell containing the caption (display name) for that property.
Column | Description | Example Data |
---|---|---|
| Display name for the property with ID 456 | “Project Budget” |
| Display name for the property with ID 789 | “Asset Value” |
Table: budget_property_info_codes
The budget_property_info_codes
table provides code-to-value mappings for codified properties.
Column | Description | Example Data |
---|---|---|
| Identifier for each property. | 456 |
| Codified value of the property. | “EQUIP” |
| Actual value that corresponds to the code. | “Equipment” |
Table: budget_outlay_data
The budget_outlay_data
table stores budgeted outlays for the expenditures in each budget request.
Column | Description | Example Data |
---|---|---|
| Foreign key linking to the | 23456 |
| Type of expense (e.g., CapEx, OpEx). | “CapEx” |
| Fiscal year of the budgeted outlay. | FY2024 |
| Calendar year of the budgeted outlay | 2024 |
| Month index in the calendar year (1 for January, 12 for December). | 1 |
| Bbudgeted amount for the specified period. | 5000 |
| Currency code for the amount. | “USD” |
Table: budget_historical_rates
This table provides monthly historical exchange rates for budgeting purposes.
Column | Description | Example Data |
---|---|---|
| Foreign key linking to the | 202 |
| Code of the currency for the exchange rate. | “USD” |
| Year for the exchange rate. | 2024 |
| Month index in the year (1 for January, 12 for December). | 1 |
| Exchange rate value for the specified currency and month related to the group currency. | 1.13 |