-- Copyright (C) 2026 Eduard Wisch -- Table for Gewerbesteuer CREATE TABLE llx_steuer_gewerbe ( rowid INTEGER AUTO_INCREMENT PRIMARY KEY, jahr INTEGER NOT NULL, gewinn_euer DECIMAL(24,8) DEFAULT 0, hinzurechnungen DECIMAL(24,8) DEFAULT 0, kuerzungen DECIMAL(24,8) DEFAULT 0, gewerbeertrag DECIMAL(24,8) DEFAULT 0, freibetrag DECIMAL(24,8) DEFAULT 24500, hebesatz DECIMAL(5,2) DEFAULT 400, steuermessbetrag DECIMAL(24,8) DEFAULT 0, gewerbesteuer DECIMAL(24,8) DEFAULT 0, anrechnung_est DECIMAL(24,8) DEFAULT 0, status TINYINT(4) DEFAULT 0, note_private TEXT, date_creation DATETIME, tms TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, fk_user_creat INTEGER, entity INTEGER DEFAULT 1, UNIQUE KEY uk_jahr (jahr, entity) ) ENGINE=InnoDB;