-- Deploy camper:payment_option to pg -- requires: roles -- requires: schema_camper -- requires: payment -- requires: campsite_type_option -- requires: positive_integer -- requires: nonnegative_integer begin; set search_path to camper, public; create table payment_option ( payment_id integer not null references payment, campsite_type_option_id integer not null references campsite_type_option, units positive_integer not null, subtotal nonnegative_integer not null, primary key (payment_id, campsite_type_option_id) ); grant select, insert, update, delete on table payment_option to guest; grant select, insert, update, delete on table payment_option to employee; grant select, insert, update, delete on table payment_option to admin; commit;