- ServiceNow Application Development
- Sagar Gupta
- 279字
- 2021-07-03 00:01:07
Database structure
Like any other database-based application, information in ServiceNow instances is stored in structured and related tables, which consist of columns and rows of records. Tables can be related to each other in the following ways:
- Extensions: A table in ServiceNow may extend an existing table (parent class), thereby ensuring that all of the fields of the parent class are included as part of the child table. For example, the Incident table extends the Task table, and thus the Incident table has all of the fields that are available in the Task table.
- One to many: A table can consist of a field that refers to a record on another table. For example, the assigned to (assigned_to) field in the Incident record might contain a reference to a record in the users (sys_users) table. The Reference, Glide List, and Document ID field types can be added to create a one-to-many relation between two tables.
- Many to many: Two tables can have a bidirectional relationship when they both refer to a record stored in each another.
- Database views: This is a virtual relationship between two or more tables that can be used to generate complex reports.
In ServiceNow, a table that extends another table is referred to as a child class, and the table it extends is referred to as a parent class. Another table can further extend a child class if it is marked as extensible. In such a scenario, it is a table that is both a child and parent, as it extends and is also an extension of a table. A parent class that is not an extension of another table is called a base class.
推薦閱讀
- UI圖標創意設計
- Docker and Kubernetes for Java Developers
- Data Analysis with IBM SPSS Statistics
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(高級進階篇)
- Mastering ROS for Robotics Programming
- 計算機應用基礎實踐教程
- Android傳感器開發與智能設備案例實戰
- 代碼閱讀
- Java 從入門到項目實踐(超值版)
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- jQuery技術內幕:深入解析jQuery架構設計與實現原理
- 玩轉.NET Micro Framework移植:基于STM32F10x處理器
- Android應用開發實戰(第2版)
- 寫給青少年的人工智能(Python版·微課視頻版)