updates table schema
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
table! {
|
||||
claims (id) {
|
||||
id -> Integer,
|
||||
player_id -> Integer,
|
||||
loot_id -> Integer,
|
||||
resolve -> Integer,
|
||||
}
|
||||
}
|
||||
|
||||
table! {
|
||||
items (id) {
|
||||
id -> Integer,
|
||||
@@ -9,9 +18,9 @@ table! {
|
||||
table! {
|
||||
looted (id) {
|
||||
id -> Integer,
|
||||
player_id -> Integer,
|
||||
item_id -> Integer,
|
||||
acquired_date -> Date,
|
||||
name -> Text,
|
||||
base_price -> Integer,
|
||||
owner_id -> Integer,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +36,13 @@ table! {
|
||||
}
|
||||
}
|
||||
|
||||
joinable!(looted -> items (item_id));
|
||||
joinable!(looted -> players (player_id));
|
||||
joinable!(claims -> looted (loot_id));
|
||||
joinable!(claims -> players (player_id));
|
||||
joinable!(looted -> players (owner_id));
|
||||
|
||||
allow_tables_to_appear_in_same_query!(items, looted, players,);
|
||||
allow_tables_to_appear_in_same_query!(
|
||||
claims,
|
||||
items,
|
||||
looted,
|
||||
players,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user