From 5ac12a6b6a893f2d923d6207a1dec7d86e66f906 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Thu, 25 Aug 2022 06:40:59 +0000 Subject: [PATCH] start value of enum is changed --- src/repositories/member/schema.rs | 2 +- src/repositories/member_bank_deposit/schema.rs | 2 +- src/repositories/member_bank_withdraw/schema.rs | 2 +- src/repositories/member_settlement_setting/schema.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) 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, }