adds notifications table and models
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user