adds new 'shop' table
This commit is contained in:
@@ -41,6 +41,11 @@ impl<'q> Claims<'q> {
|
||||
claims::table.load(self.0)
|
||||
}
|
||||
|
||||
pub fn by_player(&self, id: i32) -> QueryResult<Vec<Claim>> {
|
||||
claims::table.filter(claims::dsl::player_id.eq(id))
|
||||
.load(self.0)
|
||||
}
|
||||
|
||||
/// Finds a single claim by association of player and loot ids.
|
||||
pub fn find(&self, player_id: i32, loot_id: i32) -> QueryResult<Claim> {
|
||||
claims::table
|
||||
|
||||
Reference in New Issue
Block a user