preps historic events management

This commit is contained in:
2019-10-27 15:53:01 +01:00
parent 40e39d5a65
commit ae991bf4dc
4 changed files with 121 additions and 70 deletions

View File

@@ -7,6 +7,16 @@ table! {
}
}
table! {
history (id) {
id -> Integer,
player_id -> Integer,
event_date -> Timestamp,
text -> Text,
updates -> Nullable<Text>,
}
}
table! {
items (id) {
id -> Integer,
@@ -46,11 +56,13 @@ table! {
joinable!(claims -> looted (loot_id));
joinable!(claims -> players (player_id));
joinable!(history -> players (player_id));
joinable!(looted -> players (owner_id));
joinable!(notifications -> players (player_id));
allow_tables_to_appear_in_same_query!(
claims,
history,
items,
looted,
notifications,