wasmcloud/src/schema.rs

78 lines
1.5 KiB
Rust
Raw Permalink Normal View History

2020-10-31 01:05:20 +00:00
table! {
executions (id) {
id -> Uuid,
handler_id -> Uuid,
finished -> Bool,
stderr -> Nullable<Varchar>,
created_at -> Timestamp,
updated_at -> Timestamp,
execution_time -> Nullable<Int4>,
}
}
2020-10-27 15:43:54 +00:00
table! {
gitea_tokens (id) {
id -> Uuid,
2020-10-27 17:41:34 +00:00
user_id -> Uuid,
2020-10-27 15:43:54 +00:00
access_token -> Varchar,
refresh_token -> Varchar,
2020-10-28 01:07:25 +00:00
created_at -> Timestamp,
updated_at -> Timestamp,
}
}
2020-10-30 15:57:29 +00:00
table! {
handler_config (key_name, handler_id) {
key_name -> Varchar,
value_contents -> Varchar,
handler_id -> Uuid,
created_at -> Timestamp,
updated_at -> Timestamp,
}
}
2020-10-28 20:08:35 +00:00
table! {
handlers (id) {
id -> Uuid,
user_id -> Uuid,
human_name -> Varchar,
2020-10-30 14:26:56 +00:00
current_version -> Nullable<Varchar>,
async_impl -> Bool,
2020-10-28 20:08:35 +00:00
created_at -> Timestamp,
updated_at -> Timestamp,
2020-10-30 14:26:56 +00:00
deleted_at -> Nullable<Timestamp>,
2020-10-28 20:08:35 +00:00
}
}
2020-10-28 01:07:25 +00:00
table! {
tokens (id) {
id -> Uuid,
user_id -> Uuid,
created_at -> Timestamp,
updated_at -> Timestamp,
deleted_at -> Nullable<Timestamp>,
2020-10-27 15:43:54 +00:00
}
}
2020-10-26 16:56:24 +00:00
table! {
users (id) {
id -> Uuid,
email -> Varchar,
salutation -> Varchar,
is_admin -> Bool,
is_locked -> Bool,
tier -> Int4,
2020-10-28 01:07:25 +00:00
created_at -> Timestamp,
updated_at -> Timestamp,
2020-10-26 16:56:24 +00:00
}
}
2020-10-27 15:43:54 +00:00
allow_tables_to_appear_in_same_query!(
2020-10-31 01:05:20 +00:00
executions,
2020-10-27 15:43:54 +00:00
gitea_tokens,
2020-10-30 15:57:29 +00:00
handler_config,
2020-10-28 20:08:35 +00:00
handlers,
2020-10-28 01:07:25 +00:00
tokens,
2020-10-27 15:43:54 +00:00
users,
);