feat(business_profile): add business profile table and CRUD endpoints (#1928)

This commit is contained in:
Narayan Bhat
2023-08-18 14:53:29 +05:30
committed by GitHub
parent 156430a570
commit 53956d6f83
23 changed files with 933 additions and 9 deletions

View File

@ -53,6 +53,34 @@ diesel::table! {
}
}
diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;
business_profile (profile_id) {
#[max_length = 64]
profile_id -> Varchar,
#[max_length = 64]
merchant_id -> Varchar,
#[max_length = 64]
profile_name -> Varchar,
created_at -> Timestamp,
modified_at -> Timestamp,
return_url -> Nullable<Text>,
enable_payment_response_hash -> Bool,
#[max_length = 255]
payment_response_hash_key -> Nullable<Varchar>,
redirect_to_merchant_with_http_post -> Bool,
webhook_details -> Nullable<Json>,
metadata -> Nullable<Json>,
routing_algorithm -> Nullable<Json>,
intent_fulfillment_time -> Nullable<Int8>,
frm_routing_algorithm -> Nullable<Jsonb>,
payout_routing_algorithm -> Nullable<Jsonb>,
is_recon_enabled -> Bool,
}
}
diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;
@ -756,6 +784,7 @@ diesel::table! {
diesel::allow_tables_to_appear_in_same_query!(
address,
api_keys,
business_profile,
captures,
cards_info,
configs,