mi/backend/src/schema.rs

34 lines
546 B
Rust

table! {
members (id) {
id -> Integer,
cmene -> Text,
picurl -> Text,
}
}
table! {
switches (id) {
id -> Text,
member_id -> Integer,
started_at -> Timestamp,
ended_at -> Nullable<Timestamp>,
duration -> Integer,
}
}
table! {
webmentions (id) {
id -> Text,
source_url -> Text,
target_url -> Text,
}
}
joinable!(switches -> members (member_id));
allow_tables_to_appear_in_same_query!(
members,
switches,
webmentions,
);