apalis-diesel-postgres 0.4.1

PostgreSQL storage backend for Apalis implemented with Diesel.
Documentation
//! Diesel typed schema for the `apalis.jobs` and `apalis.workers` tables.
//!
//! Generated by [`diesel::table!`] and kept in sync with the embedded
//! [`MIGRATIONS`](crate::MIGRATIONS). Exposed so downstream code can build typed
//! Diesel queries against the Apalis tables; the per-column items are
//! macro-generated and intentionally left undocumented.
#![allow(missing_docs)]

diesel::table! {
    use diesel::sql_types::*;

    apalis.jobs (id) {
        job -> Binary,
        id -> Text,
        job_type -> Text,
        status -> Text,
        attempts -> Int4,
        max_attempts -> Int4,
        run_at -> Timestamptz,
        last_result -> Nullable<Jsonb>,
        lock_at -> Nullable<Timestamptz>,
        lock_by -> Nullable<Text>,
        done_at -> Nullable<Timestamptz>,
        priority -> Int4,
        metadata -> Nullable<Jsonb>,
        idempotency_key -> Nullable<Text>,
    }
}

diesel::table! {
    use diesel::sql_types::*;

    apalis.workers (id, worker_type) {
        id -> Text,
        worker_type -> Text,
        storage_name -> Text,
        layers -> Text,
        last_seen -> Timestamptz,
        started_at -> Nullable<Timestamptz>,
        lease_token -> Nullable<Text>,
    }
}

diesel::allow_tables_to_appear_in_same_query!(jobs, workers);