Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
devel:documentation:conventions:dev:database-conventions [2018/05/22 11:49] tomiskar [Conventions of database design] |
devel:documentation:conventions:dev:database-conventions [2019/06/10 10:27] tomiskar |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Conventions of database design ===== | ||
+ | {{tag> | ||
+ | |||
+ | * DB objects (charts, indexes, etc.) of the idm **core** always have the prefix '' | ||
+ | * DB objects (charts, indexes, etc.) of the **module** always have the prefix according to the module (e.g. '' | ||
+ | * DB objects (charts, indexes, etc.) **are called in the singular using underscore signs, all in small type** (e.g. '' | ||
+ | * DB **names** of objects (charts, indexes, etc.) must be of a **maximum of 30 characters** (compliance with the limitations of some databases). As for the charts with an audit, you need to bear in mind that a chart with the suffix '' | ||
+ | * As a **primary key** we use the '' | ||
+ | * **We do not create foreign keys** - the reference integrity is hold within the application (supposing the use if the non-relational database for a part of the application). The database is used as a data warehouse. | ||
+ | * **indexes are created** to search for identities according to the links (if the search is based in the links). | ||
+ | * Naming the indexes: | ||
+ | * prefix '' | ||
+ | * prefix '' | ||
+ | * Naming the attributes: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * Data lengths and types: | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ===== Database scripts ===== | ||
+ | |||
+ | For the automatic creation and modification of the database scheme, the [[..: | ||