upend/src/schema.rs

34 lines
503 B
Rust
Raw Normal View History

2020-09-06 00:35:08 +02:00
table! {
data (identity) {
identity -> Binary,
target -> Binary,
key -> Text,
value -> Text,
}
}
2020-08-27 00:11:50 +02:00
table! {
files (id) {
id -> Integer,
hash -> Binary,
2020-08-27 00:11:50 +02:00
path -> Text,
size -> BigInt,
2020-09-06 12:32:17 +02:00
created -> Timestamp,
2020-08-27 00:11:50 +02:00
valid -> Bool,
}
}
2020-09-06 00:35:08 +02:00
2020-09-07 21:21:54 +02:00
table! {
meta (id) {
id -> Nullable<Integer>,
key -> Text,
value -> Text,
}
}
2020-09-06 00:35:08 +02:00
allow_tables_to_appear_in_same_query!(
data,
files,
2020-09-07 21:21:54 +02:00
meta,
2020-09-06 00:35:08 +02:00
);