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, }