From 417fca65583f71b4df2e29e84bd7f15108da0154 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sun, 28 Aug 2022 08:45:58 +0000 Subject: [PATCH] pending state is added --- migrations/202207011110_member_bank_deposit/up.sql | 2 +- migrations/202207011120_member_bank_withdraw/up.sql | 2 +- src/repositories/member_bank_deposit/schema.rs | 1 + src/repositories/member_bank_withdraw/schema.rs | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/migrations/202207011110_member_bank_deposit/up.sql b/migrations/202207011110_member_bank_deposit/up.sql index 385ea70..7e63850 100644 --- a/migrations/202207011110_member_bank_deposit/up.sql +++ b/migrations/202207011110_member_bank_deposit/up.sql @@ -1,4 +1,4 @@ -CREATE TYPE member_bank_deposit_state AS ENUM ('application', 'complete'); +CREATE TYPE member_bank_deposit_state AS ENUM ('application', 'pending', 'complete'); CREATE TABLE IF NOT EXISTS member_bank_deposits ( diff --git a/migrations/202207011120_member_bank_withdraw/up.sql b/migrations/202207011120_member_bank_withdraw/up.sql index e941bd3..9a50f43 100644 --- a/migrations/202207011120_member_bank_withdraw/up.sql +++ b/migrations/202207011120_member_bank_withdraw/up.sql @@ -1,4 +1,4 @@ -CREATE TYPE member_bank_withdraw_state AS ENUM ('application', 'complete'); +CREATE TYPE member_bank_withdraw_state AS ENUM ('application', 'pending', 'complete'); CREATE TABLE IF NOT EXISTS member_bank_withdraws ( diff --git a/src/repositories/member_bank_deposit/schema.rs b/src/repositories/member_bank_deposit/schema.rs index 69ea1bc..bca92de 100644 --- a/src/repositories/member_bank_deposit/schema.rs +++ b/src/repositories/member_bank_deposit/schema.rs @@ -5,6 +5,7 @@ #[derive(Eq, Hash, Debug, Clone, Copy, PartialEq, diesel_derive_enum::DbEnum)] pub enum MemberBankDepositState { Application = 1, + Pending, Complete, } diff --git a/src/repositories/member_bank_withdraw/schema.rs b/src/repositories/member_bank_withdraw/schema.rs index b7c079b..e6cfe79 100644 --- a/src/repositories/member_bank_withdraw/schema.rs +++ b/src/repositories/member_bank_withdraw/schema.rs @@ -5,6 +5,7 @@ #[derive(Eq, Hash, Debug, Clone, Copy, PartialEq, diesel_derive_enum::DbEnum)] pub enum MemberBankWithdrawState { Application = 1, + Pending, Complete, }