upend/src/schema.rs

25 lines
375 B
Rust

table! {
data (identity) {
identity -> Binary,
target -> Binary,
key -> Text,
value -> Text,
}
}
table! {
files (id) {
id -> Integer,
hash -> Text,
path -> Text,
size -> BigInt,
ts -> Timestamp,
valid -> Bool,
}
}
allow_tables_to_appear_in_same_query!(
data,
files,
);