mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(business_profile): add business profile table and CRUD endpoints (#1928)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user