initial db

This commit is contained in:
ctengiz
2024-04-14 19:43:23 +03:00
parent e9d8383eaa
commit 19d9d24530
4 changed files with 30 additions and 0 deletions

View File

@@ -2,6 +2,9 @@ create domain dmn_code as text not null;
create domain dmn_money as numeric(22, 4);
create domain dmn_qty numeric(18, 6);
create domain dmn_rate as numeric(5, 2);
create domain dmn_clid bigint not null check ( value > 0 );
create domain dmn_usrid bigint not null check ( value > 0 );
create function iif(condition boolean, true_result anyelement, false_result anyelement) returns anyelement
immutable