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 -> Text,
|
|
|
|
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
|
|
|
|
|
|
|
allow_tables_to_appear_in_same_query!(
|
|
|
|
data,
|
|
|
|
files,
|
|
|
|
);
|