CREATE TABLE `osquery_policy` (
`osquery_policy_id` text PRIMARY KEY NOT NULL,
`policy_group` text,
`policy_name` text NOT NULL,
`osquery_code` text NOT NULL,
`policy_description` text NOT NULL,
`policy_pass_label` text DEFAULT 'Pass' NOT NULL,
`policy_fail_label` text DEFAULT 'Fail' NOT NULL,
`policy_pass_remarks` text,
`policy_fail_remarks` text,
`osquery_platforms` 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
)