diff --git a/src/repositories/member/schema.rs b/src/repositories/member/schema.rs index f4757ac..a21ee59 100644 --- a/src/repositories/member/schema.rs +++ b/src/repositories/member/schema.rs @@ -4,7 +4,7 @@ /// #[derive(Eq, Hash, Debug, Clone, Copy, PartialEq, PartialOrd, diesel_derive_enum::DbEnum)] pub enum MemberState { - Normal, + Normal = 1, Pending, Withdrawal, Dormancy, diff --git a/src/repositories/member_bank_deposit/schema.rs b/src/repositories/member_bank_deposit/schema.rs index e6a0fa1..69ea1bc 100644 --- a/src/repositories/member_bank_deposit/schema.rs +++ b/src/repositories/member_bank_deposit/schema.rs @@ -4,7 +4,7 @@ /// #[derive(Eq, Hash, Debug, Clone, Copy, PartialEq, diesel_derive_enum::DbEnum)] pub enum MemberBankDepositState { - Application, + Application = 1, Complete, } diff --git a/src/repositories/member_bank_withdraw/schema.rs b/src/repositories/member_bank_withdraw/schema.rs index b624f64..b7c079b 100644 --- a/src/repositories/member_bank_withdraw/schema.rs +++ b/src/repositories/member_bank_withdraw/schema.rs @@ -4,7 +4,7 @@ /// #[derive(Eq, Hash, Debug, Clone, Copy, PartialEq, diesel_derive_enum::DbEnum)] pub enum MemberBankWithdrawState { - Application, + Application = 1, Complete, } diff --git a/src/repositories/member_settlement_setting/schema.rs b/src/repositories/member_settlement_setting/schema.rs index 73264d0..385a88c 100644 --- a/src/repositories/member_settlement_setting/schema.rs +++ b/src/repositories/member_settlement_setting/schema.rs @@ -4,14 +4,14 @@ /// #[derive(Eq, Hash, Debug, Clone, Copy, PartialEq, PartialOrd, diesel_derive_enum::DbEnum)] pub enum SettlementType { - Rolling, + Rolling = 1, Loosing, } /// #[derive(Eq, Hash, Debug, Clone, Copy, PartialEq, PartialOrd, diesel_derive_enum::DbEnum)] pub enum ManualPaymentType { - Disable, + Disable = 1, AllChildPartner, OnlyDirectPartner, }