Feature/add balance to account (#193)

* Add balance attribute and calculate total balance

* Update changelog
This commit is contained in:
Thomas
2021-07-07 21:23:36 +02:00
committed by GitHub
parent db090229ce
commit 2c19d8c8e7
19 changed files with 163 additions and 38 deletions

View File

@@ -0,0 +1,6 @@
-- AlterEnum
ALTER TYPE "AccountType" ADD VALUE 'CASH';
-- AlterTable
ALTER TABLE "Account" ADD COLUMN "balance" DOUBLE PRECISION NOT NULL DEFAULT 0,
ADD COLUMN "currency" "Currency" NOT NULL DEFAULT E'USD';