diff --git a/data_model/project_db_schema.aml b/data_model/project_db_schema.aml index 2738be5..1a716a4 100644 --- a/data_model/project_db_schema.aml +++ b/data_model/project_db_schema.aml @@ -6,22 +6,19 @@ Ext_CRM.Ansprechpartner an_id int pk ma_id int -> Ext_CRM.Master(ma_id) +Unternehmen | Es wird nur die ID für die Kontaktliste referenziert. Alle relevanten Infos werden live aus der Kontaktliste geladen via 'ATTACH'. + ma_id int pk -> Ext_CRM.Master(ma_id) + hinzugefuegt_am "timestamp with time zone" + geloescht_am "timestamp with time zone" nullable -Grunderfassung_Unternehmen - un_id int pk {autoIncrement} - geloescht "timestamp with time zone" nullable - Metadaten_erstellung "timestamp with time zone"=`datetime.datetime.now(datetime.UTC)` nullable - Metadaten_aktualisierung "timestamp with time zone"=`datetime.datetime.now(datetime.UTC)` nullable {on_update: `datetime.datetime.now(datetime.UTC)`} - Metadaten_nutzer varchar(20) nullable - Grunderfassung_fallnummer text nullable - Grunderfassung_notiz text nullable - Partnersuche__un_suche int nullable -> Ext_CRM.Master(ma_id) - Partnersuche__person_suche int nullable -> Ext_CRM.Ansprechpartner(an_id) +Grunderfassung_Personen_Zusatzdaten_Unternehmen + erf_id int pk -> Grunderfassung_Personen(erf_id) + Partnersuche__un_suche int -> Ext_CRM.Master(ma_id) + Partnersuche__person_suche int -> Ext_CRM.Ansprechpartner(an_id) Partnersuche__kanal_aufmerksamkeit text nullable - Grunderfassung_Personen - pers_id int pk {autoIncrement} + erf_id int pk {autoIncrement} geloescht "timestamp with time zone" nullable Metadaten_erstellung "timestamp with time zone"=`datetime.datetime.now(datetime.UTC)` nullable Metadaten_aktualisierung "timestamp with time zone"=`datetime.datetime.now(datetime.UTC)` nullable {on_update: `datetime.datetime.now(datetime.UTC)`}