don't use PostgreSQL money

This commit is contained in:
Michael Hoennig 2024-11-14 15:23:03 +01:00
parent 83adb7a5ae
commit be4898474c

View File

@ -22,7 +22,7 @@ create table if not exists hs_office.coopassettx
membershipUuid uuid not null references hs_office.membership(uuid),
transactionType hs_office.CoopAssetsTransactionType not null,
valueDate date not null,
assetValue numeric(12,2) not null, -- TODO.impl: use money type, but we had problems with Hibernate conversion
assetValue numeric(12,2) not null, -- https://wiki.postgresql.org/wiki/Don't_Do_This#Don.27t_use_money
reference varchar(48) not null,
revertedAssetTxUuid uuid unique REFERENCES hs_office.coopassettx(uuid) DEFERRABLE INITIALLY DEFERRED,
comment varchar(512)