enhance responses from API, integrates with frontend

This commit is contained in:
2019-07-11 14:54:18 +02:00
parent bc65dfcd78
commit e08cd64743
9 changed files with 130 additions and 26 deletions

View File

@@ -1,7 +1,9 @@
use diesel::prelude::*;
use crate::schema::claims;
use crate::models::item::Loot;
#[derive(Queryable, Serialize, Debug)]
#[derive(Identifiable, Queryable, Associations, Serialize, Debug)]
#[belongs_to(Loot)]
pub struct Claim {
id: i32,
player_id: i32,