Skip to main content
Skip table of contents

Database Model documentation

Welcome to the Database Model Documentation page. This resource is designed to help our partners, consultants, and admin users gain a clear understanding of the database structure used in our application. Whether you're generating custom SQL queries, integrating with other systems, or simply exploring the data architecture, this documentation will guide you through the essential components of our database model.

Spreadsheet Overview

To facilitate easy access to the database model, we've provided a comprehensive spreadsheet that details the structure of our database. This spreadsheet is the primary resource for understanding the various tables, columns, and relationships within the database.

How to Use the Spreadsheet

The spreadsheet is organized into several columns, each of which provides specific information about the database structure. Below is a brief overview of what each column represents:

  1. TABLE_NAME
    The name of the table within the database.

  2. COLUMN_NAME
    The name of the column within the table.

  3. DATA_TYPE
    The type of data stored in the column (e.g., VARCHAR, INT, DATE).

  4. DATA_LENGTH
    The maximum length of the data in the column, particularly relevant for character data types.

  5. DATA_PRECISION
    For numeric data types, this indicates the total number of significant digits.

  6. DATA_SCALE
    Specifies the number of digits to the right of the decimal point for numeric data types.

  7. NULLABLE
    Indicates whether the column can contain NULL values ('Y' for yes, 'N' for no).

  8. COLUMN_ID
    The order of the column within the table, helping you understand its position.

  9. DEFAULT_LENGTH
    The length of any default value assigned to the column, if applicable.

  10. DATA_DEFAULT
    Any default value that will automatically be applied if no other value is provided.

  11. CONSTRAINT_TYPE
    The type of constraint applied to the column (e.g., Primary Key, Foreign Key).

  12. CONSTRAINT_NAME
    The name of the specific constraint applied to the column.

  13. CONSTRAINT_POSITION
    If a constraint applies to multiple columns, this indicates the order of the column within that constraint.

  14. REFERENCED_TABLE
    If the column is a Foreign Key, this column shows the name of the table it references.

  15. REFERENCED_COLUMN
    The specific column in the referenced table that the Foreign Key points to.

Exploring Column Details

For each column name listed in the spreadsheet, hover over the header to see a tooltip with a detailed description. This additional information provides context, helping you understand the purpose and relationships of each column within the database model.

Practical Tips

  • Searching for Specific Tables or Columns: Use the spreadsheet's search functionality to quickly locate the table or column you're interested in.

  • Understanding Relationships: Pay special attention to the CONSTRAINT_TYPE, REFERENCED_TABLE, and REFERENCED_COLUMN columns to understand how different tables are related through primary and foreign keys.

  • Referencing Data: When writing SQL queries, refer to the DATA_TYPE, DATA_PRECISION, and DATA_SCALE columns to ensure you’re using the correct data format.

https://docs.google.com/spreadsheets/d/1Cj3DOhFn3wX9mqVjjFE5HcyrrlJDPgfbjwa1675tk-c/edit?usp=sharing

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.