defaultPrefix unique

This commit is contained in:
Michael Hoennig 2024-01-23 10:57:36 +01:00
parent 4ecf491983
commit b2fd593098

View File

@ -16,7 +16,7 @@ create table hs_office_debitor
vatBusiness boolean not null,
vatReverseCharge boolean not null,
refundBankAccountUuid uuid references hs_office_bankaccount(uuid),
defaultPrefix char(3) not null
defaultPrefix char(3) not null unique
constraint check_default_prefix check (
defaultPrefix::text ~ '^([a-z]{3}|al0|bh1|c4s|f3k|k8i|l3d|mh1|o13|p2m|s80|t4w)$'
)