Steps to create and maintain a new data model from business requirements:
These are the general guidelines to create a standard data model and in real time, a data model may not be created in the same sequential manner as shown below. Based on the enterprise’s requirements, some of the steps may be excluded or included in addition to these.
Sometimes, data modeler may be asked to develop a data model based on the existing database. In that situation, the data modeler has to reverse engineer the database and create a data model.
As a data modeler, the intention is to create tables, columns, datatype, not null, primary keys, and foreign keys. If there is a need for sequence, views, triggers and other database parameters, the data modelers should not take a hasty decision by embedding all objects in the data model. Before creating the data model, it is a good practice to understand the database object creation process by discussing with DBAs or top-notch technical executives and take it forward.
Steps to create a Logical Data Model:
- Get Business requirements.
- Analyze Business requirements.
- Create High Level Conceptual Data Model. Get it approved.
- Create a new Logical Data Model. Add the following to the logical data model.
- Select target database where data modeling tool creates the scripts for physical schema.
- Create standard abbreviation document for naming logical and physical objects according to business/data modeling standard.
- Create domain.
- Create rule.
- Create default.
- Create Entity and add definitions.
- Create attribute and add definitions.
- Assign datatype to attribute. If a domain is already present then the domain should be attached to attribute.
- Add check constraint/rule or default to the columns (wherever it is required).
- Create primary or unique keys to attribute.
- Create unique index or bitmap index to attribute.
- Based on the analysis, create surrogate key columns.
- If required, create super types and sub types.
- Analyze the relationship between entities and Create foreign key relationship (one to many or many to many) between those entities.
- Create subject areas and add relevant entities to those subject areas.
- Align the objects in the main subject area and other subject areas.
- Validate the data model.
- Generate reports from the data model.
- Take a print out of the data model.
- Get it approved.
Steps to create a Physical Data Model:
- Create Physical Data Model from the existing logical data model.
- Add database properties to physical data model.
- Generate SQL Scripts from Physical Data Model. Tick or check the necessary parameters in the tool, create scripts and then forward that to DBA. (DBA will execute those scripts in database).
- Compare database and data model. Make sure everything is okay.
- Create a change log document for differences between the current version and previous version of the data model.
Maintenance of Data Models:
- Maintain Logical & Physical Data Model.
- For each release (version of the data model), try to compare the present version with the previous version of the data model. Similarly, try to compare the data model with the database to find out the differences.