Made scheduled transactions more generic.

This commit is contained in:
2026-09-24 21:07:38 +02:00
parent 18cf7e6bdd
commit 9e5a976ac7
17 changed files with 235 additions and 92 deletions
@@ -1,6 +1,7 @@
CREATE TABLE transactions (
id UUID PRIMARY KEY DEFAULT gen_random_uuid (),
description TEXT NOT NULL,
amount_cents BIGINT NOT NULL,
amount_cents BIGINT NOT NULL CHECK (amount_cents >= 0),
direction TEXT NOT NULL CHECK (direction IN ('in', 'out')),
date TIMESTAMPTZ NOT NULL DEFAULT now()
);