Database conventions and table descriptions
This section describes all of the available tables and standard conventions used in the SuperOffice database. The explanations of the naming convention, the data types, and the key codes in use throughout the database are covered first. Next, the available tables are listed. For each table, a short description is then provided against the table’s name. Then each field (or column) in that table is explained in turn.Conventions used throughout the SuperOffice Database
All tables have a primary key as their first column, called<tablename>_id. This uniquely identifies each record entered in the table. This value will stay unchanged for the life of the database. There is one exception to this rule, and that is new records created in a Travel database. Their IDs will change when updating the parent database.
All fields referring to other records (foreign keys in relations) also have names ending with the extension _id.
All fields selecting an entry from any one of the special lists for business, company interest, and so on have names ending with the extension _idx (rather than _id). This used to be the list text table in earlier versions of SuperOffice.
Inconsistencies
Some other things to note - areas where consistency has suffered due to the way the schema was defined in earlier versions of the product.- Email and URL have separate fields that point to
contact_id
- Address and Phone have a general
owner_idand use atype_idxto indicate table and role. There may be 2 differenttype_idxvalues that indicate the same table.