Convention for Database Tables

From Chorke Wiki
Revision as of 10:50, 22 January 2018 by Shahed (talk | contribs)
Jump to navigation Jump to search

Types of Table

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
L Local Local Tables T00L00 ~ TZZLZZ
M Metadata Metadata Tables T00M00 ~ TZZMZZ
S Settings Settings Tables T00S00 ~ TZZSZZ V00S00 ~ VZZSZZ
V Versions Versions Tables T00V00 ~ TZZVZZ

Nomenclature

[T]{1}───────────────T─┐
                       ├─T00┐
[0-9A-Z]{2}──────────00┘    │
                            ├─T00AYZ
[A|E|I|J|L|M|S|V]{1}─A─┐    │
                       ├─AYZ┘
[0-9A-Z]{2}──────────YZ┘

Audit Tables

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

Entries Tables

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

Identity Tables

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

Join Tables

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

Local Tables

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

Metadata Tables

[T]{1}──────T─┐
              ├─T00┐
[0-9A-Z]{2}─00┘    │
                   ├─T00MYZ
[M]{1}──────M─┐    │
              ├─MYZ┘
[0-9A-Z]{2}─YZ┘

Settings Tables

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

Versions Tables

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