CREATE TABLE `surveilr_osquery_ms_carve` (
`surveilr_osquery_ms_carve_id` text PRIMARY KEY NOT NULL,
`node_key` text NOT NULL,
`session_id` text NOT NULL,
`carve_guid` text NOT NULL,
`carve_size` integer NOT NULL,
`block_count` integer NOT NULL,
`block_size` integer NOT NULL,
`received_blocks` integer DEFAULT 0 NOT NULL,
`carve_path` text,
`status` text NOT NULL,
`start_time` numeric NOT NULL,
`completion_time` numeric,
`elaboration` text,
`created_at` TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP,
`created_by` text DEFAULT 'UNKNOWN',
`updated_at` TIMESTAMPTZ,
`updated_by` text,
`deleted_at` TIMESTAMPTZ,
`deleted_by` text,
`activity_log` text,
FOREIGN KEY (`node_key`) REFERENCES `surveilr_osquery_ms_node`(`node_key`) ON UPDATE no action ON DELETE no action
)