upend/src/schema.rs

35 lines
545 B
Rust
Raw Normal View History

2020-09-06 00:35:08 +02:00
table! {
data (identity) {
identity -> Binary,
entity -> Binary,
attribute -> Text,
2020-09-06 00:35:08 +02:00
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,
valid -> Bool,
added -> Timestamp,
size -> BigInt,
mtime -> Nullable<Timestamp>,
2020-08-27 00:11:50 +02:00
}
}
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
);