2023-02-16 22:09:10 +00:00
|
|
|
-- Deploy numerus:new_invoice_product to pg
|
|
|
|
-- requires: schema_numerus
|
2023-03-11 19:58:20 +00:00
|
|
|
-- requires: discount_rate
|
2023-02-16 22:09:10 +00:00
|
|
|
|
|
|
|
begin;
|
|
|
|
|
|
|
|
set search_path to numerus, public;
|
|
|
|
|
|
|
|
create type new_invoice_product as (
|
|
|
|
product_id integer,
|
|
|
|
name text,
|
|
|
|
description text,
|
|
|
|
price text,
|
|
|
|
quantity integer,
|
|
|
|
discount_rate discount_rate,
|
|
|
|
tax integer[]
|
|
|
|
);
|
|
|
|
|
|
|
|
commit;
|