CONSTRAINT watched_directory_pk PRIMARY KEY (host_id, directory)
);
+CREATE TABLE path_map
+(
+ map_id serial NOT NULL,
+ source_host integer NOT NULL,
+ destination_host integer NOT NULL,
+ source_prefix text NOT NULL,
+ destination_prefix text NOT NULL,
+ CONSTRAINT path_map_pk PRIMARY KEY (map_id),
+ CONSTRAINT path_map_unique UNIQUE (source_host, destination_host, source_prefix, destination_prefix),
+ CONSTRAINT path_map_to_same_host CHECK (source_host <> destination_host)
+);
+
CREATE TABLE report
(
report_id serial,