// @generated automatically by Diesel CLI. diesel::table! { use crate::schema_exports::*; agents (id) { alias -> Nullable, hostname -> Text, host_info -> Text, id -> Uuid, ip_gray -> Nullable, ip_white -> Nullable, is_root -> Bool, is_root_allowed -> Bool, last_active -> Timestamp, platform -> Text, regtime -> Timestamp, state -> Agentstate, token -> Nullable, username -> Text, } } diesel::table! { use crate::schema_exports::*; certificates (id) { agent_id -> Uuid, id -> Uuid, is_revoked -> Bool, } } diesel::table! { use crate::schema_exports::*; jobs (id) { alias -> Nullable, argv -> Text, id -> Uuid, exec_type -> Jobtype, platform -> Text, payload -> Nullable, payload_path -> Nullable, schedule -> Nullable, } } diesel::table! { use crate::schema_exports::*; results (id) { agent_id -> Uuid, alias -> Nullable, created -> Timestamp, id -> Uuid, job_id -> Uuid, result -> Nullable, state -> Jobstate, exec_type -> Jobtype, retcode -> Nullable, updated -> Timestamp, } } diesel::joinable!(certificates -> agents (agent_id)); diesel::joinable!(results -> agents (agent_id)); diesel::joinable!(results -> jobs (job_id)); diesel::allow_tables_to_appear_in_same_query!(agents, certificates, jobs, results,);