Introduction
In the previous articles, I created a dedicated Unity Catalog catalog called "mortgage_ai_lab" and organized it into four schemas: Bronze, Silver, Gold and AI.
Before loading the first datasets into Databricks, I want to take a step back and look at the business domain itself. The goal is to build a realistic mortgage data platform that will eventually support data engineering, analytics and AI-powered applications. But before building pipelines or AI agents, we need to understand the information we are working with. This is where conceptual data modelling comes in.
In these (following) blogposts I'll describe the design of a Conceptual (Data) Model (CDM) . I attended the course "Business-oriented Data Modelling" by Alec Sharp in the Netherlands and I can recommend this course for a step by step approach on how to model Conceptual Data Models and Logical Data Models. So this blogpost is a tribute to Alec Sharp ;-). Thanks Alec!
We are building upon what we already have :
- Databricks series : Starting a new python project in Visual Studio Code (Part I)
- Databricks series : setting up a connection to Databricks from local IDE (Part II)
- Databricks series : Setting up a Databricks project in Visual Studio Code (part III)
- Databricks series : Deployment from Visual Studio Code (Part IV)
- Databricks series : Execute the job in Databricks (Part V)
- Databricks series : A configrable framework in Databricks (Part VI)
- Databricks series : Loading strategies in Databricks (Part VII)
- Databricks series : Data contracts in Databricks (Part VIII)
- Databricks series : Debugging Python code in Visual Studio Code with arguments (Part IX)
- Databricks series : ODCS Data contracts in Databricks (Part X)
- Databricks series : reading an API (Part XI)
- Databricks series : Building a mediallion architecture with SCD Type 2 (step 1)(Part XII)
- Databricks series : Building a mediallion architecture with SCD Type 2 (step 2) (Part XIII)
- Databricks series : Building a mediallion architecture with SCD Type 2 (step 3) (Part XIV)
- Databricks series : Working with JSON in Databricks SQL : STRUCT
- Databricks series : Working with JSON in Databricks SQL : ARRAY
- Databricks series : Working with JSON in Databricks SQL : MAP
- Databricks series : Working with JSON in Databricks SQL : VARIANT
- Databricks series : AI Project: Creating a Dedicated Unity Catalog
- Databricks series : AI Project: Organizing a Databricks Project with Unity Catalog Schemas
Introducing our hypothetical mortgage provider
For this project, we will assume that we are building a data platform for a hypothetical mortgage provider. The company offers mortgage products to both private individuals and businesses that want to finance residential or commercial properties.
As a mortgage provider, the company needs to manage more than just customers and mortgage contracts. A mortgage may involve multiple borrowers, consist of several loan parts, and be secured by one or more properties. Each loan part can have its own interest rate arrangements and repayment history.
The company therefore needs a data model that captures the relationships between customers, mortgages, loan parts, properties, interest rate periods, and payments.
Our hypothetical mortgage provider supports the following business scenarios:
Customers: A customer can be a private individual or an organization, such as a property investment company.
Mortgage agreements: A mortgage agreement can involve one or more customers, for example a couple purchasing a house together.
Loan parts: A mortgage can consist of multiple loan parts, each with its own principal amount, repayment structure, and interest rate arrangements.
Properties: A mortgage can be secured by one or more properties, depending on the financing arrangement.
Interest rates: Interest rate arrangements can change over time. A loan part may therefore have multiple consecutive interest rate periods.Payments: Customers make payments towards their mortgage. These payments are allocated to individual loan parts and may consist of principal and interest components.
I was struggling a bit with the concept "interest period/rates". In my opinion not a real business concept in the Conceptual Data Model. For now It will be part of the Loan Part entity. Later on we will model this as an entity in the Logical Data Model (LDM)
We will use these business scenarios as the starting point for designing our conceptual data model.
The objective is not to model every possible detail of a real-world mortgage business. Instead, we want to establish a clear and consistent foundation that we can gradually extend as the project evolves.
This model will become the basis for the subsequent logical and physical data models that we will implement in Databricks using Unity Catalog and Delta tables.
Identifying the business concepts
For our mortgage domain, I identified the following main business concepts:
- Customer
- Person
- Organization
- Mortgage
- Loan Part
- Property
Interest Rate Period- Payment
Each concept represents something meaningful in the mortgage business. An important design decision is that a customer is not necessarily an individual person. A customer can also be an organization, such as a property investment company. A first draft of the business concepts :
.jpg)








