Convention for Database Tables: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
Line 2: Line 2:
{| class="wikitable sortable"
{| class="wikitable sortable"
|-
|-
! Type Identifier !! Table Purpose !! Description !! Tables !! Views
! Code !! Types !! Purpose !! Tables !! Views
|-
|-
| D || Datum || MetaData Tables || T00D00 ~ TZZDZZ ||
| A || Audit  || Audit Tables || T00A00 ~ TZZAZZ ||
|-
|-
| E || Entries || Transactions Tables || T00E00 ~ TZZEZZ || V00E00 ~ VZZEZZ
| E || Entries || Entries Tables || T00E00 ~ TZZEZZ || V00E00 ~ VZZEZZ
|-
|-
| I || Initialization || Setup Tables || T00I00 ~ TZZIZZ || V00I00 ~ VZZIZZ
| I || Identity || Identity Tables || T00I00 ~ TZZIZZ ||
|-
|-
| J || Join || Many to Many Join || T00J00 ~ TZZJZZ ||  
| J || Join || Join Tables '''n - n''' || T00J00 ~ TZZJZZ ||  
|-
|-
| L || Log  || Audit Log for Entry || T00L00 ~ TZZLZZ || V00L00 ~ VZZLZZ
| M || Metadata || Metadata Tables || T00M00 ~ TZZMZZ ||
|-
|-
| S || Serial || Transactional Sequence Tables || T00S00 ~ TZZSZZ ||
| S || Settings || Settings Tables || T00S00 ~ TZZSZZ || V00S00 ~ VZZSZZ
|}
|}



Revision as of 10:19, 22 January 2018

Types of Tables

Code Types Purpose Tables Views
A Audit Audit Tables T00A00 ~ TZZAZZ
E Entries Entries Tables T00E00 ~ TZZEZZ V00E00 ~ VZZEZZ
I Identity Identity Tables T00I00 ~ TZZIZZ
J Join Join Tables n - n T00J00 ~ TZZJZZ
M Metadata Metadata Tables T00M00 ~ TZZMZZ
S Settings Settings Tables T00S00 ~ TZZSZZ V00S00 ~ VZZSZZ

Nomenclature of Tables

[T]{1}───────────T─┐
                   ├─T00┐
[0-9A-Z]{2}──────00┘    │
                        ├─T00DYZ
[D|E|I|J|L|S]{1}─D─┐    │
                   ├─DYZ┘
[0-9A-Z]{2}──────YZ┘

Datum/Metadata Tables

[T]{1}──────T─┐
              ├─T00┐
[0-9A-Z]{2}─00┘    │
                   ├─T00DYZ
[D]{1}──────D─┐    │
              ├─DYZ┘
[0-9A-Z]{2}─YZ┘

Entry/Transaction Tables

[T]{1}──────T─┐
              ├─T00┐
[0-9A-Z]{2}─00┘    │
                   ├─T00EYZ
[E]{1}──────E─┐    │
              ├─EYZ┘
[0-9A-Z]{2}─YZ┘

Initialization/Setup Tables

[T]{1}──────T─┐
              ├─T00┐
[0-9A-Z]{2}─00┘    │
                   ├─T00IYZ
[I]{1}──────I─┐    │
              ├─IYZ┘
[0-9A-Z]{2}─YZ┘

Joining/Cardinality Tables

[T]{1}──────T─┐
              ├─T00┐
[0-9A-Z]{2}─00┘    │
                   ├─T00JYZ
[J]{1}──────J─┐    │
              ├─JYZ┘
[0-9A-Z]{2}─YZ┘

Audit/Transaction Log Tables

[T]{1}──────T─┐
              ├─T00┐
[0-9A-Z]{2}─00┘    │
                   ├─T00LYZ
[L]{1}──────L─┐    │
              ├─JYZ┘
[0-9A-Z]{2}─YZ┘

Serial/Sequence Tables

[T]{1}──────T─┐
              ├─T00┐
[0-9A-Z]{2}─00┘    │
                   ├─T00SYZ
[S]{1}──────S─┐    │
              ├─SYZ┘
[0-9A-Z]{2}─YZ┘