Lessons › Domain 1: Designing and Creating an Application (20%) › Lesson 2
Designing the Data Model
About 15 minutes · Last checked against the CAD blueprint (January 2026): 4 December 2026
Step 1 · Learn
Tables, fields and how they connect
The data model is the set of tables and fields an application stores its records in. A good model reuses what the platform already has and keeps each table focused on one kind of record.
New table or extend one?
- Extend Task when records are work that is assigned, has a state and may need approvals or SLAs. The new table inherits fields such as Number, State, Assigned to and Assignment group, plus Task features.
- Create a stand-alone table for reference data, such as a list of equipment models or rooms.
- Reuse existing tables, such as User, Group or Location, instead of copying their data.
In a scoped application, new tables get the scope prefix, for example x_acme_loans_request. When you create a table, you can also create its access controls and a module in the application menu.
Field types
| Type | Use for |
|---|---|
| String | Short or long text |
| Choice | A fixed list of values, such as a category |
| Reference | A link to one record in another table, such as Requested for (User) |
| Date/Time and Date | Points in time, such as a due date |
| True/False | A yes or no value |
| Integer, Decimal, Currency | Numbers and money |
| Journal | Comments and work notes that build up over time |
Relating tables
A reference field creates a one-to-many relationship: many loan requests can reference the same user. Related lists show the other side on a form, for example all loan requests of a user. For many-to-many relationships, use a many-to-many table.
Dictionary and schema
Every field is defined in the dictionary, with its type, length, default value and attributes. The schema map shows a table's relationships to other tables, which helps when you review a design.
Step 2 · Do
Create the loan request table
Build the data model for Acme's equipment loans application in the x_acme_loans scope. This is a practice environment of our own design, not the ServiceNow product. Complete the tasks in the task list.
Step 3 · Check
Exam-style questions
Select an answer and check it. Every answer includes an explanation.