numerus/deploy/discount_rate.sql

15 lines
274 B
PL/PgSQL

-- Deploy numerus:discount_rate to pg
-- requires: schema_numerus
begin;
set search_path to numerus, public;
create domain discount_rate as numeric
check (VALUE >= 0 and VALUE <= 1);
comment on domain discount_rate is
'A rate for discount in the range [0, 1]';
commit;