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,
|
2020-09-12 14:27:45 +02:00
|
|
|
hash -> Binary,
|
2020-08-27 00:11:50 +02:00
|
|
|
path -> Text,
|
|
|
|
valid -> Bool,
|
2020-09-22 00:41:59 +02:00
|
|
|
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
|
|
|
);
|