From c1fc7d7a6a3eaf35fe2ca474fff22d3a4b717fa8 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Mon, 3 Jul 2023 16:53:07 -0700 Subject: [PATCH] derive default to make 0 balance easy to get to --- entities/src/balance.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entities/src/balance.rs b/entities/src/balance.rs index 75423e6d..a888792e 100644 --- a/entities/src/balance.rs +++ b/entities/src/balance.rs @@ -3,7 +3,7 @@ use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; -#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] +#[derive(Clone, Debug, Default, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)] #[sea_orm(table_name = "balance")] pub struct Model { #[sea_orm(primary_key)]