Darstellung
Attachment
Tabelle: attachment
Domain: Attachment · com.reybex.domain.pms
Modul: SYS
Partner-Hinweise
- Daten liegen mandantengetrennt – bei SELECT fast immer
tenant_id = :mandantsetzen (Spalte ggf.TenantIdin älteren Tabellen). - Schreibende SQL (
INSERT/UPDATE/DELETE) nur in abgestimmten Export-/Report-Jobs (Transaktion BAS23) und nie ohne Freigabe durch reybex. - Für API-Integrationen bevorzugt die API statt direkter DB-Zugriffe.
Primärschlüssel
id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint auto_increment | Ja | — | Primärschlüssel (Domain: id) |
title | varchar(255) | Ja | — | Domain-Feld title |
comment | varchar(10000) | Ja | — | Domain-Feld comment |
attachment_type_id | bigint | Nein | — | Fremdschlüssel → attachment type |
file_path | varchar(100) | Ja | — | Domain-Feld filePath |
task_id | bigint | Ja | — | Fremdschlüssel → task |
project_id | bigint | Ja | — | Fremdschlüssel → project |
task_comment_id | bigint | Ja | — | Fremdschlüssel → task comment |
file_id | bigint | Ja | — | Fremdschlüssel → file |
date_created | datetime | Ja | — | Anlagezeitpunkt |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
crm_action_id | bigint | Ja | — | Fremdschlüssel → crm action |
campaign_id | bigint | Ja | — | Fremdschlüssel → campaign |
is_inline | tinyint(1) | Ja | 0 | Domain-Feld isInline |
is_print_on_document | smallint | Ja | 0 | Boolean: Print On Document |
is_invoice_attachment | smallint | Ja | 0 | Boolean: Invoice Attachment |
is_purchase_attachment | smallint | Ja | 0 | Boolean: Purchase Attachment |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
task_id | task (id) |
attachment_type_id | lt_attachment_type (id) |
project_id | project (id) |
task_comment_id | task_comment (id) |
campaign_id | crm_campaign (id) |