procedures

This commit is contained in:
2025-11-15 21:51:30 +01:00
parent ef299e0e3a
commit 1bbbd16e03
3 changed files with 102 additions and 56 deletions

View File

@@ -97,7 +97,7 @@ create table exchange_rate (
create table account (
"id" bigint primary key generated always as identity,
"opened_at" date not null default current_date,
"balance" numeric(18,6) not null default 0,
"balance" decimal not null default 0 check (balance >= 0),
"currency_code" text not null references currency (code)
);
```