2023-09-02 18:35:30 +00:00
|
|
|
// @generated automatically by Diesel CLI.
|
|
|
|
|
|
|
|
pub mod sql_types {
|
2023-09-04 01:05:29 +00:00
|
|
|
#[derive(diesel::query_builder::QueryId, diesel::sql_types::SqlType)]
|
2023-09-02 18:35:30 +00:00
|
|
|
#[diesel(postgres_type(name = "job_status"))]
|
|
|
|
pub struct JobStatus;
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
aliases (alias) {
|
|
|
|
alias -> Text,
|
2023-09-02 23:30:45 +00:00
|
|
|
hash -> Text,
|
2023-09-02 18:35:30 +00:00
|
|
|
token -> Text,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
details (identifier) {
|
|
|
|
identifier -> Text,
|
2023-09-02 23:30:45 +00:00
|
|
|
json -> Jsonb,
|
2023-09-02 18:35:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
hashes (hash) {
|
2023-09-02 23:30:45 +00:00
|
|
|
hash -> Text,
|
2023-09-02 18:35:30 +00:00
|
|
|
identifier -> Text,
|
|
|
|
motion_identifier -> Nullable<Text>,
|
|
|
|
created_at -> Timestamp,
|
2024-03-02 19:27:58 +00:00
|
|
|
blurhash -> Nullable<Text>,
|
2023-09-02 18:35:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
use diesel::sql_types::*;
|
|
|
|
use super::sql_types::JobStatus;
|
|
|
|
|
2023-09-02 23:30:45 +00:00
|
|
|
job_queue (id) {
|
2023-09-02 18:35:30 +00:00
|
|
|
id -> Uuid,
|
2023-09-02 23:30:45 +00:00
|
|
|
queue -> Text,
|
2023-09-02 18:35:30 +00:00
|
|
|
job -> Jsonb,
|
2023-09-03 17:47:06 +00:00
|
|
|
worker -> Nullable<Uuid>,
|
2023-09-02 18:35:30 +00:00
|
|
|
status -> JobStatus,
|
|
|
|
queue_time -> Timestamp,
|
2023-09-03 17:47:06 +00:00
|
|
|
heartbeat -> Nullable<Timestamp>,
|
2024-01-24 23:14:31 +00:00
|
|
|
unique_key -> Nullable<Text>,
|
2024-03-09 18:15:23 +00:00
|
|
|
retry -> Int4,
|
2023-09-02 18:35:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-03-30 14:36:31 +00:00
|
|
|
diesel::table! {
|
|
|
|
keyed_notifications (key) {
|
|
|
|
key -> Text,
|
|
|
|
heartbeat -> Timestamp,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-02 23:30:45 +00:00
|
|
|
diesel::table! {
|
|
|
|
proxies (url) {
|
|
|
|
url -> Text,
|
|
|
|
alias -> Text,
|
|
|
|
accessed -> Timestamp,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-09-02 18:35:30 +00:00
|
|
|
diesel::table! {
|
|
|
|
refinery_schema_history (version) {
|
|
|
|
version -> Int4,
|
|
|
|
#[max_length = 255]
|
|
|
|
name -> Nullable<Varchar>,
|
|
|
|
#[max_length = 255]
|
|
|
|
applied_on -> Nullable<Varchar>,
|
|
|
|
#[max_length = 255]
|
|
|
|
checksum -> Nullable<Varchar>,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
settings (key) {
|
|
|
|
key -> Text,
|
|
|
|
value -> Text,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
2023-09-03 17:47:06 +00:00
|
|
|
store_migrations (old_identifier) {
|
|
|
|
old_identifier -> Text,
|
|
|
|
new_identifier -> Text,
|
2023-09-02 18:35:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
uploads (id) {
|
|
|
|
id -> Uuid,
|
2023-09-03 21:59:41 +00:00
|
|
|
result -> Nullable<Jsonb>,
|
2023-09-03 22:11:34 +00:00
|
|
|
created_at -> Timestamp,
|
2023-09-02 18:35:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::table! {
|
|
|
|
variants (id) {
|
|
|
|
id -> Uuid,
|
2023-09-02 23:30:45 +00:00
|
|
|
hash -> Text,
|
2023-09-02 18:35:30 +00:00
|
|
|
variant -> Text,
|
|
|
|
identifier -> Text,
|
|
|
|
accessed -> Timestamp,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
diesel::joinable!(aliases -> hashes (hash));
|
|
|
|
diesel::joinable!(proxies -> aliases (alias));
|
|
|
|
diesel::joinable!(variants -> hashes (hash));
|
|
|
|
|
|
|
|
diesel::allow_tables_to_appear_in_same_query!(
|
|
|
|
aliases,
|
|
|
|
details,
|
|
|
|
hashes,
|
2023-09-02 23:30:45 +00:00
|
|
|
job_queue,
|
2024-03-30 14:36:31 +00:00
|
|
|
keyed_notifications,
|
2023-09-02 18:35:30 +00:00
|
|
|
proxies,
|
|
|
|
refinery_schema_history,
|
|
|
|
settings,
|
|
|
|
store_migrations,
|
|
|
|
uploads,
|
|
|
|
variants,
|
|
|
|
);
|