#[derive(Queryable, Debug, Identifiable)] #[diesel(primary_key(account_id))] pub struct CarryOverBalance { pub account_id: i64, pub debit: BigDecimal, pub description: Option, pub description2: Option>, } #[derive(Queryable, Debug, Identifiable)] #[diesel(primary_key(id1, id2))] pub struct Order { pub id1: i64, pub id2: i64, pub time: NaiveDateTime, pub time2: DateTime, pub json: String, }