Darstellung
Asset
Tabelle: asset
Domain: Asset · com.reybex.domain.wws.fin
Modul: FIN
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) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
name | varchar(500) | Nein | — | Bezeichnung / Name (Domain: name) |
code | varchar(100) | Ja | — | Code / Kurzkennzeichen (Domain: code) |
asset_group_id | bigint | Nein | — | Fremdschlüssel → asset group |
location_id | bigint | Ja | — | Fremdschlüssel → location |
cost_center_id | bigint | Ja | — | Fremdschlüssel → cost center |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
full_cost | decimal(20, 2) | Nein | — | full cost |
additional_cost | decimal(20, 2) | Ja | — | additional cost |
final_rest_amount | decimal(20, 2) | Ja | — | final rest amount |
booked_amount | decimal(20, 2) | Ja | 0.00 | booked amount |
buy_date | date | Ja | — | buy date |
buy_type | smallint | Ja | 0 | buy type |
life | int | Ja | — | life |
life_in_month | int | Ja | — | life in month |
start_deprecation_date | date | Ja | — | start deprecation date |
end_deprecation_date | date | Ja | — | Domain-Feld endDeprecationDate |
type | smallint | Ja | 0 | type |
is_gwg_collective | smallint | Ja | 0 | Boolean: Gwg Collective |
deprecation_percentage | decimal(10, 2) | Ja | — | Domain-Feld deprecationPercentage |
is_switch_degressive_to_linear | smallint | Ja | 0 | Boolean: Switch Degressive To Linear |
switch_degressive_to_linear_percentage | decimal(10, 2) | Ja | — | Domain-Feld switchDegressiveToLinearPercentage |
verifications | varchar(5000) | Ja | — | Domain-Feld verifications |
is_canceled | smallint | Ja | 0 | Boolean: Canceled |
sales_head_id | bigint | Ja | — | Fremdschlüssel → sales head |
additional_information | mediumtext | Ja | — | Domain-Feld additionalInformation |
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) |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
asset_group_id | asset_group (id) |
cost_center_id | cost_center (id) |
location_id | ltt_location (id) |
profit_center_id | ltt_profit_center (id) |
sales_head_id | sales_head (id) |