ticker/src/schema.rs

27 lines
558 B
Rust
Raw Normal View History

2019-10-10 04:09:14 +02:00
table! {
calendars {
id -> VarChar,
url -> VarChar,
2019-10-10 02:37:24 +02:00
2019-10-10 04:09:14 +02:00
last_fetch -> Nullable<Timestamp>,
last_success -> Nullable<Timestamp>,
error_message -> Nullable<VarChar>,
2019-10-10 02:37:24 +02:00
2019-10-10 04:09:14 +02:00
etag -> Nullable<VarChar>,
last_modified -> Nullable<VarChar>,
2019-10-10 02:37:24 +02:00
}
}
2019-10-10 04:09:14 +02:00
table! {
events (calendar, id) {
calendar -> VarChar,
id -> VarChar,
2019-10-10 02:37:24 +02:00
2019-10-10 04:09:14 +02:00
start -> Timestamp,
end -> Nullable<Timestamp>,
summary -> VarChar,
location -> Nullable<VarChar>,
url -> Nullable<VarChar>,
}
2019-10-10 02:37:24 +02:00
}