Skip to main content

common_DB

The Laravel parts are currently not in use.

About common DB

CommonDB is our ultimative BigData Database for merging and handling all data we can find.

Syncronisation

common <-> BLUEJECTS
common <-> WDS-APP

Push or Pull

common <-x DENTAL.SHOP

TODO: open syncs

common x-x BLUESAFETY
common x-x DONE.de
common x-x QM-Bausteine
common x-x Mission-Hygiene
common x-x SAFELAB

Naming Convention

Database

10.3.37-MariaDB-0ubuntu0.20.04.1

Tables

TypePrefixKonventionExampleDescription
BSbs_{prefix}{table}bs_employeesDeprecated. BS common employee goes to Federated
Adminadmin_{prefix}{table}admin_usersadministration common
FrontEnd{table}usersfor our frontend and sessions
LookUplu_{prefix}{table}lu_gendersloop-up for genders
Joins_join{table-1}_{table-2}{prefix}bs_employees_users_joinn to m
Targetertargeter_{prefix}{table}targeter_valid_listList from Targeter
FEDERATED
TypePrefixKonventionExampleDescription
BLUESAFETYbs_{prefix}{table}bs_employees
BLUEJECTSbj_{prefix}{package}_domain_model_{table}bj_contacts_domain_model_contact
DENTAL.SHOPds_{prefix}{table}ds_customer
WDS-APPwds_{prefix}{table}wds_users
DONEdone_{prefix}{table}done_users
QM-Bausteineqmds_{prefix}{table}qmds_users
WDS-APPwds_{prefix}{table}wds_users

Columns

DataTypesTypePrefixKonventionExampleDescription
Date & TimeDatedtm_{prefix}{column}dtm_insert
Date & TimeDateTimedtm_{prefix}{column}dtm_time
Date & TimeTimestamp_at{created|updated|deleted}{prefix}updated_at
StringVarcharstr_{prefix}{column}str_name
StringJSONjson_{prefix}{column}json_images
StringTextstr_{prefix}{column}str_description
BinaryBlobbin_{prefix}{column}bin_files
BinaryBinarybin_{prefix}{column}bin_ascii
NumericPrimary Keyid{prefix}id
NumericForeign Key_id{column}{prefix}user_id
NumericIntegerint_{prefix}{column}int_position
NumericBitbol_{prefix}{column}bol_active
NumericTinyintbol_{prefix}{column}bol_inactive
NumericBoolbol_{prefix}{column}bol_true
RealFloatint_{prefix}{column}int_file_size
RealDoubleint_{prefix}{column}int_molecules
RealDecimaldec_{prefix}{column}dec_counter

Index

TypePrefixKonventionExampleDescription
Index_index{table}_{column}{prefix}bs_users_details_idnr_ta_indexonly if index is not specified
PrimaryPRIMARY KEY{prefix}PRIMARY KEYkey or id of the table
Foreign_foreign{table}_{column}{prefix}bs_users_buildings_user_id_foreignforeignkey for table users
Unique_unique{table}_{column*_}{prefix}bs_users_buildings_lat_long_uniqueunique for columns lat & long
fulltext_fulltext{table}_{column}{prefix}bs_building_description_fulltextis a search optimiziation
spatial_spatial{table}_{column}{prefix}bs_building_description_spatialfor BTREE ... useful for Geo.

Procedure / Function

TypePrefixKonventionExampleDescription
Procedureprc_{prefix}{name}prc_update_tables
Functionfnc_{prefix}{name}fnc_add_currency
Eventevent_{prefix}{type}{name}event_prc_update_tables
Viewview_{prefix}{name}view_show_all

Server

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

API_KEY

ANOTHER_API_KEY

Color Reference

ColorHex
Example Color#0a192f #0a192f
Example Color#f8f8f8 #f8f8f8
Example Color#00b48a #00b48a
Example Color#00d1a0 #00d1a0