wasmcloud/src/schema.rs

53 lines
1014 B
Rust
Raw Normal View History

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-28 20:08:35 +00:00
table! {
handlers (id) {
id -> Uuid,
user_id -> Uuid,
human_name -> Varchar,
current_version -> Varchar,
async_impl -> Nullable<Bool>,
created_at -> Timestamp,
updated_at -> Timestamp,
}
}
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!(
gitea_tokens,
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,
);