1 -- @tag: taxzone_charts
2 -- @description: Neue Tabelle für Buchungskonten der Steuerzonen
3 -- @depends: release_3_1_0
6 CREATE TABLE taxzone_charts (
8 taxzone_id integer NOT NULL,
9 buchungsgruppen_id integer NOT NULL,
10 income_accno_id integer NOT NULL,
11 expense_accno_id integer NOT NULL,
12 itime timestamp DEFAULT now(),
13 FOREIGN KEY (taxzone_id) REFERENCES tax_zones (id),
14 FOREIGN KEY (income_accno_id) REFERENCES chart (id),
15 FOREIGN KEY (expense_accno_id) REFERENCES chart (id),
16 FOREIGN KEY (buchungsgruppen_id) REFERENCES buchungsgruppen (id)