Copied as much as i could from Numerus, and made as few modifications as i could to adapt to this code base; it is, quite frankly, a piece of shit. We need to be able to create invoices from scratch “just in case”, apparently, but it is not yet possible to create an invoice from a booking.
15 lines
271 B
PL/PgSQL
15 lines
271 B
PL/PgSQL
-- Deploy camper:discount_rate to pg
|
|
-- requires: schema_camper
|
|
|
|
begin;
|
|
|
|
set search_path to camper, 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;
|