grant usage on s_tables.se_files_id to r_reservation, r_reservation_system;
grant select on s_users.v_files to r_reservation, r_reservation_system;
-grant select on public.v_path_types to r_reservation, r_reservation_public, r_reservation_system;
+grant select on public.v_files to r_reservation, r_reservation_public, r_reservation_system;
/* standard-paths.sql permissions */
constraint cp_files primary key (id),
constraint cu_files_name_machine unique (name_machine),
- constraint cu_files_field_path unique (field_path),
constraint cc_files_id check (id > 0),
constraint cc_files_name_machine check (name_machine ~ '[A-Za-z]\w*'),
constraint cf_files_id_creator foreign key (id_creator) references s_tables.t_users (id) on delete cascade on update cascade,
constraint cf_files_id_creator_session foreign key (id_creator_session) references s_tables.t_users (id) on delete cascade on update cascade,
- constraint cf_files_id_type foreign key (id_type) references s_tables.t_file_types (id) on delete restrict on update cascade,
constraint cf_files_id_group foreign key (id_group) references s_tables.t_groups (id) on delete restrict on update cascade
);