impls claims on looted items
This commit is contained in:
17
lootalot_db/src/models/claim.rs
Normal file
17
lootalot_db/src/models/claim.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user