adds notifications table and models

This commit is contained in:
2019-10-19 21:59:17 +02:00
parent 2248e25aec
commit ed3ac2abcb
5 changed files with 59 additions and 1 deletions

View File

@@ -24,6 +24,14 @@ table! {
}
}
table! {
notifications (id) {
id -> Integer,
player_id -> Integer,
text -> Text,
}
}
table! {
players (id) {
id -> Integer,
@@ -39,5 +47,12 @@ table! {
joinable!(claims -> looted (loot_id));
joinable!(claims -> players (player_id));
joinable!(looted -> players (owner_id));
joinable!(notifications -> players (player_id));
allow_tables_to_appear_in_same_query!(claims, items, looted, players,);
allow_tables_to_appear_in_same_query!(
claims,
items,
looted,
notifications,
players,
);