Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Practically Nearly any application developed on the SimpleOne Platform platform involves information exchange between users, third-party systems and the application itself, as well as data processing. This means that the information is received by the application from receives the outsideinformation, is processed processes and stored within stores it, and then the information is consumed by the user and third-party services (systems). Therefore it is important to approach the design and preparation of the data structure that will be used to store and process information based on the business task an application is designed to perform.
Despite the fact that data and information are similar in meaning, there is a significant difference between them. Information is precise and structured data. In other words, before the data becomes information, they must be structured. To build a data structure a data model is used.
Data model
A data model is an abstract description of a data structure, which determines interrelations between the data, methods of their processing as well as how one item of data relates to another.
There are various data models, which differ in their approach to description of data organization. For example an hierarchy model describes the data as a tree structure, consisting of objects of different levels. In the SimpleOne system the relation data model is used, based on relations and operations with these relations. The main notions of the relation data model are relation, attribute, tuple and primary key. In the SimpleOne data structure these correspond to the table (dictionary), column (field), table row (record), which has a unique identifier within the table.
Tables
The SimpleOne platform stores all its data and business logic settings of the configuration as records in specific tables.
A table is a set of values, using the model of columns and rows. An intersection of a column and a row is called a cell. A table contains a definite number of columns but can contain any number of rows. Each row is unambiguously identified by one or several unique values, taken by its cells from a subset of columns. A subset of columns which uniquely identifies a row is called an identifier.
Furthermore, a table in the SimpleOne system is also, in essence, a record in the table of all tables.
Columns
From this set of articles you will learn about the role of tables in the SimpleOne system, and their properties, relevant to the development of the data structure. A separate article is dedicated to the classification of tables.
Columns
Tables consist of columns each of which A column, also called a field, corresponds to a specific attribute of the information object . Each column and has its own strictly determined data type, which is in turn supported and controlled by the platform..
From this set of articles you will learn about properties and attributes of columns relevant to the development of the data structure, using dot-walking in scripts as well as how to change column name and column types in certain cases.
Records
A record (a row in a relation table) is a set of logically related fields corresponding to a specific instance of an information object. Each record in the system has a unique identifier.
A record is the same as a row in the relation database. A record is first of all a totality of values of its attributes, determined by the table the record belongs to. In essence it is a single information object.
Many-to-many Relation
From this article you will learn about the record attributes and operations with them.When building the data structure it is sometimes required to describe complex relations between the records of any two tables, where a record in one table, may be related to a number of records in the other, an vice versa. For example, the User and Group tables can contain multiple records of users and groups respectively. A user can be in more than one group and a group can contain multiple users. In this case these two tables must be related using the many-to-many relation. In the SimpleOne system these relations are represented as separate tables describing the way the records in two tables are related to each other. These tables are used in the extended data model as well: it is used to create attribute collections. See the Many-to-many Relations article to learn more.
Extending the Data Model
In cases when creating a data structure from scratch is not practical, the SimpleOne system allows to adapt previously prepared out-of-the-box data structures to the requirements of the business solution. Several methods can be used to do thisFrom this article you will learn about the data model extension methods available in the SimpleOne system, each of which has its uses, strength and weaknesses.
Version Control of Data Structure Changes
All changes of the data model, irrespective of its methods, are collected into configuration packs and applications.
This article provides general recommendations on creating configuration packs and applications.
Table of Contents |
---|