// @generated automatically by Diesel CLI.

diesel::table! {
    /// Representation of the `container_add_capabilities` table.
    ///
    /// (Automatically generated by Diesel.)
    container_add_capabilities (container_id, value) {
        /// The `container_id` column of the `container_add_capabilities` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `value` column of the `container_add_capabilities` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Text,
    }
}

diesel::table! {
    /// Representation of the `container_binds` table.
    ///
    /// (Automatically generated by Diesel.)
    container_binds (container_id, value) {
        /// The `container_id` column of the `container_binds` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `value` column of the `container_binds` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Text,
    }
}

diesel::table! {
    /// Representation of the `container_device_mappings` table.
    ///
    /// (Automatically generated by Diesel.)
    container_device_mappings (container_id, device_mapping_id) {
        /// The `container_id` column of the `container_device_mappings` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `device_mapping_id` column of the `container_device_mappings` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        device_mapping_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `container_drop_capabilities` table.
    ///
    /// (Automatically generated by Diesel.)
    container_drop_capabilities (container_id, value) {
        /// The `container_id` column of the `container_drop_capabilities` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `value` column of the `container_drop_capabilities` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Text,
    }
}

diesel::table! {
    /// Representation of the `container_env` table.
    ///
    /// (Automatically generated by Diesel.)
    container_env (container_id, value) {
        /// The `container_id` column of the `container_env` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `value` column of the `container_env` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Text,
    }
}

diesel::table! {
    /// Representation of the `container_extra_hosts` table.
    ///
    /// (Automatically generated by Diesel.)
    container_extra_hosts (container_id, value) {
        /// The `container_id` column of the `container_extra_hosts` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `value` column of the `container_extra_hosts` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Text,
    }
}

diesel::table! {
    /// Representation of the `container_missing_device_mappings` table.
    ///
    /// (Automatically generated by Diesel.)
    container_missing_device_mappings (container_id, device_mapping_id) {
        /// The `container_id` column of the `container_missing_device_mappings` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `device_mapping_id` column of the `container_missing_device_mappings` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        device_mapping_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `container_missing_images` table.
    ///
    /// (Automatically generated by Diesel.)
    container_missing_images (container_id) {
        /// The `container_id` column of the `container_missing_images` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `image_id` column of the `container_missing_images` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        image_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `container_missing_networks` table.
    ///
    /// (Automatically generated by Diesel.)
    container_missing_networks (container_id, network_id) {
        /// The `container_id` column of the `container_missing_networks` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `network_id` column of the `container_missing_networks` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        network_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `container_missing_volumes` table.
    ///
    /// (Automatically generated by Diesel.)
    container_missing_volumes (container_id, volume_id) {
        /// The `container_id` column of the `container_missing_volumes` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `volume_id` column of the `container_missing_volumes` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        volume_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `container_networks` table.
    ///
    /// (Automatically generated by Diesel.)
    container_networks (container_id, network_id) {
        /// The `container_id` column of the `container_networks` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `network_id` column of the `container_networks` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        network_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `container_port_bindings` table.
    ///
    /// (Automatically generated by Diesel.)
    container_port_bindings (container_id, port, idx) {
        /// The `container_id` column of the `container_port_bindings` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `port` column of the `container_port_bindings` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        port -> Text,
        /// The `idx` column of the `container_port_bindings` table.
        ///
        /// Its SQL type is `BigInt`.
        ///
        /// (Automatically generated by Diesel.)
        idx -> BigInt,
        /// The `host_ip` column of the `container_port_bindings` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        host_ip -> Nullable<Text>,
        /// The `host_port` column of the `container_port_bindings` table.
        ///
        /// Its SQL type is `Nullable<Integer>`.
        ///
        /// (Automatically generated by Diesel.)
        host_port -> Nullable<Integer>,
    }
}

diesel::table! {
    /// Representation of the `container_storage_options` table.
    ///
    /// (Automatically generated by Diesel.)
    container_storage_options (container_id, name) {
        /// The `container_id` column of the `container_storage_options` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `name` column of the `container_storage_options` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        name -> Text,
        /// The `value` column of the `container_storage_options` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Nullable<Text>,
    }
}

diesel::table! {
    /// Representation of the `container_tmpfs` table.
    ///
    /// (Automatically generated by Diesel.)
    container_tmpfs (container_id, path) {
        /// The `container_id` column of the `container_tmpfs` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `path` column of the `container_tmpfs` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        path -> Text,
        /// The `options` column of the `container_tmpfs` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        options -> Nullable<Text>,
    }
}

diesel::table! {
    /// Representation of the `container_volumes` table.
    ///
    /// (Automatically generated by Diesel.)
    container_volumes (container_id, volume_id) {
        /// The `container_id` column of the `container_volumes` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
        /// The `volume_id` column of the `container_volumes` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        volume_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `containers` table.
    ///
    /// (Automatically generated by Diesel.)
    containers (id) {
        /// The `id` column of the `containers` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        id -> Binary,
        /// The `local_id` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        local_id -> Nullable<Text>,
        /// The `image_id` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<Binary>`.
        ///
        /// (Automatically generated by Diesel.)
        image_id -> Nullable<Binary>,
        /// The `status` column of the `containers` table.
        ///
        /// Its SQL type is `Integer`.
        ///
        /// (Automatically generated by Diesel.)
        status -> Integer,
        /// The `network_mode` column of the `containers` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        network_mode -> Text,
        /// The `hostname` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        hostname -> Nullable<Text>,
        /// The `restart_policy` column of the `containers` table.
        ///
        /// Its SQL type is `Integer`.
        ///
        /// (Automatically generated by Diesel.)
        restart_policy -> Integer,
        /// The `privileged` column of the `containers` table.
        ///
        /// Its SQL type is `Bool`.
        ///
        /// (Automatically generated by Diesel.)
        privileged -> Bool,
        /// The `cpu_period` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<BigInt>`.
        ///
        /// (Automatically generated by Diesel.)
        cpu_period -> Nullable<BigInt>,
        /// The `cpu_quota` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<BigInt>`.
        ///
        /// (Automatically generated by Diesel.)
        cpu_quota -> Nullable<BigInt>,
        /// The `cpu_realtime_period` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<BigInt>`.
        ///
        /// (Automatically generated by Diesel.)
        cpu_realtime_period -> Nullable<BigInt>,
        /// The `cpu_realtime_runtime` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<BigInt>`.
        ///
        /// (Automatically generated by Diesel.)
        cpu_realtime_runtime -> Nullable<BigInt>,
        /// The `memory` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<BigInt>`.
        ///
        /// (Automatically generated by Diesel.)
        memory -> Nullable<BigInt>,
        /// The `memory_reservation` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<BigInt>`.
        ///
        /// (Automatically generated by Diesel.)
        memory_reservation -> Nullable<BigInt>,
        /// The `memory_swap` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<BigInt>`.
        ///
        /// (Automatically generated by Diesel.)
        memory_swap -> Nullable<BigInt>,
        /// The `memory_swappiness` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<SmallInt>`.
        ///
        /// (Automatically generated by Diesel.)
        memory_swappiness -> Nullable<SmallInt>,
        /// The `volume_driver` column of the `containers` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        volume_driver -> Nullable<Text>,
        /// The `read_only_rootfs` column of the `containers` table.
        ///
        /// Its SQL type is `Bool`.
        ///
        /// (Automatically generated by Diesel.)
        read_only_rootfs -> Bool,
    }
}

diesel::table! {
    /// Representation of the `deployment_containers` table.
    ///
    /// (Automatically generated by Diesel.)
    deployment_containers (deployment_id, container_id) {
        /// The `deployment_id` column of the `deployment_containers` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        deployment_id -> Binary,
        /// The `container_id` column of the `deployment_containers` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `deployment_missing_containers` table.
    ///
    /// (Automatically generated by Diesel.)
    deployment_missing_containers (deployment_id, container_id) {
        /// The `deployment_id` column of the `deployment_missing_containers` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        deployment_id -> Binary,
        /// The `container_id` column of the `deployment_missing_containers` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        container_id -> Binary,
    }
}

diesel::table! {
    /// Representation of the `deployments` table.
    ///
    /// (Automatically generated by Diesel.)
    deployments (id) {
        /// The `id` column of the `deployments` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        id -> Binary,
        /// The `status` column of the `deployments` table.
        ///
        /// Its SQL type is `Integer`.
        ///
        /// (Automatically generated by Diesel.)
        status -> Integer,
    }
}

diesel::table! {
    /// Representation of the `device_mappings` table.
    ///
    /// (Automatically generated by Diesel.)
    device_mappings (id) {
        /// The `id` column of the `device_mappings` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        id -> Binary,
        /// The `status` column of the `device_mappings` table.
        ///
        /// Its SQL type is `SmallInt`.
        ///
        /// (Automatically generated by Diesel.)
        status -> SmallInt,
        /// The `path_on_host` column of the `device_mappings` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        path_on_host -> Text,
        /// The `path_in_container` column of the `device_mappings` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        path_in_container -> Text,
        /// The `cgroup_permissions` column of the `device_mappings` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        cgroup_permissions -> Nullable<Text>,
    }
}

diesel::table! {
    /// Representation of the `images` table.
    ///
    /// (Automatically generated by Diesel.)
    images (id) {
        /// The `id` column of the `images` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        id -> Binary,
        /// The `local_id` column of the `images` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        local_id -> Nullable<Text>,
        /// The `status` column of the `images` table.
        ///
        /// Its SQL type is `Integer`.
        ///
        /// (Automatically generated by Diesel.)
        status -> Integer,
        /// The `reference` column of the `images` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        reference -> Text,
        /// The `registry_auth` column of the `images` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        registry_auth -> Nullable<Text>,
    }
}

diesel::table! {
    /// Representation of the `network_driver_opts` table.
    ///
    /// (Automatically generated by Diesel.)
    network_driver_opts (network_id, name) {
        /// The `network_id` column of the `network_driver_opts` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        network_id -> Binary,
        /// The `name` column of the `network_driver_opts` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        name -> Text,
        /// The `value` column of the `network_driver_opts` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Text,
    }
}

diesel::table! {
    /// Representation of the `networks` table.
    ///
    /// (Automatically generated by Diesel.)
    networks (id) {
        /// The `id` column of the `networks` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        id -> Binary,
        /// The `local_id` column of the `networks` table.
        ///
        /// Its SQL type is `Nullable<Text>`.
        ///
        /// (Automatically generated by Diesel.)
        local_id -> Nullable<Text>,
        /// The `status` column of the `networks` table.
        ///
        /// Its SQL type is `Integer`.
        ///
        /// (Automatically generated by Diesel.)
        status -> Integer,
        /// The `driver` column of the `networks` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        driver -> Text,
        /// The `internal` column of the `networks` table.
        ///
        /// Its SQL type is `Bool`.
        ///
        /// (Automatically generated by Diesel.)
        internal -> Bool,
        /// The `enable_ipv6` column of the `networks` table.
        ///
        /// Its SQL type is `Bool`.
        ///
        /// (Automatically generated by Diesel.)
        enable_ipv6 -> Bool,
    }
}

diesel::table! {
    /// Representation of the `volume_driver_opts` table.
    ///
    /// (Automatically generated by Diesel.)
    volume_driver_opts (volume_id, name) {
        /// The `volume_id` column of the `volume_driver_opts` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        volume_id -> Binary,
        /// The `name` column of the `volume_driver_opts` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        name -> Text,
        /// The `value` column of the `volume_driver_opts` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        value -> Text,
    }
}

diesel::table! {
    /// Representation of the `volumes` table.
    ///
    /// (Automatically generated by Diesel.)
    volumes (id) {
        /// The `id` column of the `volumes` table.
        ///
        /// Its SQL type is `Binary`.
        ///
        /// (Automatically generated by Diesel.)
        id -> Binary,
        /// The `status` column of the `volumes` table.
        ///
        /// Its SQL type is `Integer`.
        ///
        /// (Automatically generated by Diesel.)
        status -> Integer,
        /// The `driver` column of the `volumes` table.
        ///
        /// Its SQL type is `Text`.
        ///
        /// (Automatically generated by Diesel.)
        driver -> Text,
    }
}

diesel::joinable!(container_add_capabilities -> containers (container_id));
diesel::joinable!(container_binds -> containers (container_id));
diesel::joinable!(container_device_mappings -> containers (container_id));
diesel::joinable!(container_device_mappings -> device_mappings (device_mapping_id));
diesel::joinable!(container_drop_capabilities -> containers (container_id));
diesel::joinable!(container_env -> containers (container_id));
diesel::joinable!(container_extra_hosts -> containers (container_id));
diesel::joinable!(container_missing_device_mappings -> containers (container_id));
diesel::joinable!(container_missing_images -> containers (container_id));
diesel::joinable!(container_missing_networks -> containers (container_id));
diesel::joinable!(container_missing_volumes -> containers (container_id));
diesel::joinable!(container_networks -> containers (container_id));
diesel::joinable!(container_networks -> networks (network_id));
diesel::joinable!(container_port_bindings -> containers (container_id));
diesel::joinable!(container_storage_options -> containers (container_id));
diesel::joinable!(container_tmpfs -> containers (container_id));
diesel::joinable!(container_volumes -> containers (container_id));
diesel::joinable!(container_volumes -> volumes (volume_id));
diesel::joinable!(containers -> images (image_id));
diesel::joinable!(deployment_containers -> containers (container_id));
diesel::joinable!(deployment_containers -> deployments (deployment_id));
diesel::joinable!(deployment_missing_containers -> deployments (deployment_id));
diesel::joinable!(network_driver_opts -> networks (network_id));
diesel::joinable!(volume_driver_opts -> volumes (volume_id));

diesel::allow_tables_to_appear_in_same_query!(
    container_add_capabilities,
    container_binds,
    container_device_mappings,
    container_drop_capabilities,
    container_env,
    container_extra_hosts,
    container_missing_device_mappings,
    container_missing_images,
    container_missing_networks,
    container_missing_volumes,
    container_networks,
    container_port_bindings,
    container_storage_options,
    container_tmpfs,
    container_volumes,
    containers,
    deployment_containers,
    deployment_missing_containers,
    deployments,
    device_mappings,
    images,
    network_driver_opts,
    networks,
    volume_driver_opts,
    volumes,
);
