wasmcloud/src/schema.rs

78 lines
1.5 KiB
Rust

table! {
executions (id) {
id -> Uuid,
handler_id -> Uuid,
finished -> Bool,
stderr -> Nullable<Varchar>,
created_at -> Timestamp,
updated_at -> Timestamp,
execution_time -> Nullable<Int4>,
}
}
table! {
gitea_tokens (id) {
id -> Uuid,
user_id -> Uuid,
access_token -> Varchar,
refresh_token -> Varchar,
created_at -> Timestamp,
updated_at -> Timestamp,
}
}
table! {
handler_config (key_name, handler_id) {
key_name -> Varchar,
value_contents -> Varchar,
handler_id -> Uuid,
created_at -> Timestamp,
updated_at -> Timestamp,
}
}
table! {
handlers (id) {
id -> Uuid,
user_id -> Uuid,
human_name -> Varchar,
current_version -> Nullable<Varchar>,
async_impl -> Bool,
created_at -> Timestamp,
updated_at -> Timestamp,
deleted_at -> Nullable<Timestamp>,
}
}
table! {
tokens (id) {
id -> Uuid,
user_id -> Uuid,
created_at -> Timestamp,
updated_at -> Timestamp,
deleted_at -> Nullable<Timestamp>,
}
}
table! {
users (id) {
id -> Uuid,
email -> Varchar,
salutation -> Varchar,
is_admin -> Bool,
is_locked -> Bool,
tier -> Int4,
created_at -> Timestamp,
updated_at -> Timestamp,
}
}
allow_tables_to_appear_in_same_query!(
executions,
gitea_tokens,
handler_config,
handlers,
tokens,
users,
);