drop table if exists job_custom_recipients;
create table job_custom_recipients(
	job_id integer not null references jobs( job_id ),
	member_id integer not null references members( member_id ),
	constraint job_custom_recipients_pkey primary key( job_id , member_id )
);

comment on table job_custom_recipients is 'storage of custom recipients on job';
comment on column job_custom_recipients.job_id is 'reference id to jobs table';
comment on column job_custom_recipients.member_id is 'reference id to members table';

comment on constraint job_custom_recipients_pkey on job_custom_recipients is 'unique constraint of table';
comment on constraint job_custom_recipients_job_id_fkey on job_custom_recipients is 'foreign constraint to jobs table';
comment on constraint job_custom_recipients_member_id_fkey on job_custom_recipients is 'foreign constraint to members table';

