feat(buchhaltung): budget types, erstattungen, recurring tab move, overview dividers, order completion guard
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- Add budget type support to buchhaltung_konten
|
||||
ALTER TABLE buchhaltung_konten
|
||||
ADD COLUMN IF NOT EXISTS budget_typ TEXT NOT NULL DEFAULT 'detailliert';
|
||||
|
||||
ALTER TABLE buchhaltung_konten
|
||||
ADD COLUMN IF NOT EXISTS budget_gesamt NUMERIC(12,2) NOT NULL DEFAULT 0;
|
||||
|
||||
-- Erstattung (reimbursement) linking table
|
||||
CREATE TABLE IF NOT EXISTS buchhaltung_erstattung_zuordnungen (
|
||||
erstattung_transaktion_id INT NOT NULL REFERENCES buchhaltung_transaktionen(id) ON DELETE CASCADE,
|
||||
ausgabe_transaktion_id INT NOT NULL REFERENCES buchhaltung_transaktionen(id) ON DELETE CASCADE,
|
||||
PRIMARY KEY (erstattung_transaktion_id, ausgabe_transaktion_id)
|
||||
);
|
||||
Reference in New Issue
Block a user