You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 2 Next »
Practically any application developed on the SimpleOne 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 the outside, is processed and stored within it and then 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 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
A column, also called a field, corresponds to a specific attribute of the information object. Each column has its own strictly determined data type, which is in turn supported and controlled by the platform.
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
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 this, 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.
- No labels