\copy origin_visit (origin, visit, date, status, metadata, snapshot) from program 'cat origin_visit.csv';
\copy origin (id, type, url) from program 'cat origin.csv';

\copy snapshot_branches (snapshot_id, branch_id) from program 'cat snapshot_branches.csv';
\copy snapshot_branch (object_id, name, target, target_type) from program 'cat snapshot_branch.csv';
\copy snapshot (object_id, id) from program 'cat snapshot.csv';

\copy release (id, target, date, date_offset, name, comment, author, target_type) from program 'cat release.csv';

\copy revision_history (id, parent_id, parent_rank) from program 'cat revision_history.csv';
\copy revision (id, date, date_offset, committer_date, committer_date_offset, type, directory, message, author, committer) from program 'cat revision.csv';

\copy person (id) from program 'cat person.csv';

\copy directory_entry_rev (id, target, name, perms) from program 'cat directory_entry_rev.csv';
\copy directory_entry_dir (id, target, name, perms) from program 'cat directory_entry_dir.csv';
\copy directory_entry_file (id, target, name, perms) from program 'cat directory_entry_file.csv';
\copy directory (id, dir_entries, file_entries, rev_entries) from program 'cat directory.csv';

\copy skipped_content (sha1, sha1_git, length) from program 'cat skipped_content.csv';
\copy content (sha1, sha1_git, length) from program 'cat content.csv';
