learning how to test

This commit is contained in:
2019-07-12 15:56:16 +02:00
parent caa8d3fad6
commit 5d54d40bec
13 changed files with 2956 additions and 130 deletions

View File

@@ -1,6 +1,6 @@
use diesel::prelude::*;
use crate::schema::claims;
use crate::models::item::Loot;
use crate::schema::claims;
use diesel::prelude::*;
#[derive(Identifiable, Queryable, Associations, Serialize, Debug)]
#[belongs_to(Loot)]
@@ -12,7 +12,7 @@ pub struct Claim {
}
#[derive(Insertable, Debug)]
#[table_name="claims"]
#[table_name = "claims"]
pub struct NewClaim {
pub player_id: i32,
pub loot_id: i32,