impls claims on looted items

This commit is contained in:
2019-07-02 15:33:36 +02:00
parent 36c8f24fdc
commit 5a792edb20
5 changed files with 59 additions and 50 deletions

View File

@@ -0,0 +1,17 @@
use diesel::prelude::*;
use crate::schema::claims;
#[derive(Queryable, Serialize, Debug)]
pub struct Claim {
id: i32,
player_id: i32,
loot_id: i32,
resolve: i32,
}
#[derive(Insertable, Debug)]
#[table_name="claims"]
pub struct NewClaim {
pub player_id: i32,
pub loot_id: i32,
}