// @generated automatically by Diesel CLI. diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; address (address_id) { id -> Nullable, #[max_length = 64] address_id -> Varchar, #[max_length = 128] city -> Nullable, country -> Nullable, line1 -> Nullable, line2 -> Nullable, line3 -> Nullable, state -> Nullable, zip -> Nullable, first_name -> Nullable, last_name -> Nullable, phone_number -> Nullable, #[max_length = 8] country_code -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, #[max_length = 64] customer_id -> Nullable, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] payment_id -> Nullable, #[max_length = 32] updated_by -> Varchar, email -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; api_keys (key_id) { #[max_length = 64] key_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] name -> Varchar, #[max_length = 256] description -> Nullable, #[max_length = 128] hashed_api_key -> Varchar, #[max_length = 16] prefix -> Varchar, created_at -> Timestamp, expires_at -> Nullable, last_used -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; authentication (authentication_id) { #[max_length = 64] authentication_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] authentication_connector -> Varchar, #[max_length = 64] connector_authentication_id -> Nullable, authentication_data -> Nullable, #[max_length = 64] payment_method_id -> Varchar, #[max_length = 64] authentication_type -> Nullable, #[max_length = 64] authentication_status -> Varchar, #[max_length = 64] authentication_lifecycle_status -> Varchar, created_at -> Timestamp, modified_at -> Timestamp, #[max_length = 64] error_message -> Nullable, #[max_length = 64] error_code -> Nullable, connector_metadata -> Nullable, maximum_supported_version -> Nullable, #[max_length = 64] threeds_server_transaction_id -> Nullable, #[max_length = 64] cavv -> Nullable, #[max_length = 64] authentication_flow_type -> Nullable, message_version -> Nullable, #[max_length = 64] eci -> Nullable, #[max_length = 64] trans_status -> Nullable, #[max_length = 64] acquirer_bin -> Nullable, #[max_length = 64] acquirer_merchant_id -> Nullable, three_ds_method_data -> Nullable, three_ds_method_url -> Nullable, acs_url -> Nullable, challenge_request -> Nullable, acs_reference_number -> Nullable, acs_trans_id -> Nullable, three_dsserver_trans_id -> Nullable, acs_signed_content -> Nullable, #[max_length = 64] profile_id -> Varchar, #[max_length = 255] payment_id -> Nullable, #[max_length = 128] merchant_connector_id -> Varchar, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; blocklist (id) { id -> Int4, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] fingerprint_id -> Varchar, data_kind -> BlocklistDataKind, metadata -> Nullable, created_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; blocklist_fingerprint (id) { id -> Int4, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] fingerprint_id -> Varchar, data_kind -> BlocklistDataKind, encrypted_fingerprint -> Text, created_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; blocklist_lookup (id) { id -> Int4, #[max_length = 64] merchant_id -> Varchar, fingerprint -> Text, } } 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, enable_payment_response_hash -> Bool, #[max_length = 255] payment_response_hash_key -> Nullable, redirect_to_merchant_with_http_post -> Bool, webhook_details -> Nullable, metadata -> Nullable, routing_algorithm -> Nullable, intent_fulfillment_time -> Nullable, frm_routing_algorithm -> Nullable, payout_routing_algorithm -> Nullable, is_recon_enabled -> Bool, applepay_verified_domains -> Nullable>>, payment_link_config -> Nullable, session_expiry -> Nullable, authentication_connector_details -> Nullable, is_extended_card_info_enabled -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; captures (capture_id) { #[max_length = 64] capture_id -> Varchar, #[max_length = 64] payment_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, status -> CaptureStatus, amount -> Int8, currency -> Nullable, #[max_length = 255] connector -> Varchar, #[max_length = 255] error_message -> Nullable, #[max_length = 255] error_code -> Nullable, #[max_length = 255] error_reason -> Nullable, tax_amount -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, #[max_length = 64] authorized_attempt_id -> Varchar, #[max_length = 128] connector_capture_id -> Nullable, capture_sequence -> Int2, #[max_length = 128] connector_response_reference_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; cards_info (card_iin) { #[max_length = 16] card_iin -> Varchar, card_issuer -> Nullable, card_network -> Nullable, card_type -> Nullable, card_subtype -> Nullable, card_issuing_country -> Nullable, #[max_length = 32] bank_code_id -> Nullable, #[max_length = 32] bank_code -> Nullable, #[max_length = 32] country_code -> Nullable, date_created -> Timestamp, last_updated -> Nullable, last_updated_provider -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; configs (key) { id -> Int4, #[max_length = 255] key -> Varchar, config -> Text, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; customers (customer_id, merchant_id) { id -> Int4, #[max_length = 64] customer_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, name -> Nullable, email -> Nullable, phone -> Nullable, #[max_length = 8] phone_country_code -> Nullable, #[max_length = 255] description -> Nullable, created_at -> Timestamp, metadata -> Nullable, connector_customer -> Nullable, modified_at -> Timestamp, #[max_length = 64] address_id -> Nullable, #[max_length = 64] default_payment_method_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; dashboard_metadata (id) { id -> Int4, #[max_length = 64] user_id -> Nullable, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] org_id -> Varchar, data_key -> DashboardMetadata, data_value -> Json, #[max_length = 64] created_by -> Varchar, created_at -> Timestamp, #[max_length = 64] last_modified_by -> Varchar, last_modified_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; dispute (id) { id -> Int4, #[max_length = 64] dispute_id -> Varchar, #[max_length = 255] amount -> Varchar, #[max_length = 255] currency -> Varchar, dispute_stage -> DisputeStage, dispute_status -> DisputeStatus, #[max_length = 64] payment_id -> Varchar, #[max_length = 64] attempt_id -> Varchar, #[max_length = 255] merchant_id -> Varchar, #[max_length = 255] connector_status -> Varchar, #[max_length = 255] connector_dispute_id -> Varchar, #[max_length = 255] connector_reason -> Nullable, #[max_length = 255] connector_reason_code -> Nullable, challenge_required_by -> Nullable, connector_created_at -> Nullable, connector_updated_at -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, #[max_length = 255] connector -> Varchar, evidence -> Jsonb, #[max_length = 64] profile_id -> Nullable, #[max_length = 32] merchant_connector_id -> Nullable, dispute_amount -> Int8, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; events (event_id) { #[max_length = 64] event_id -> Varchar, event_type -> EventType, event_class -> EventClass, is_webhook_notified -> Bool, #[max_length = 64] primary_object_id -> Varchar, primary_object_type -> EventObjectType, created_at -> Timestamp, #[max_length = 64] merchant_id -> Nullable, #[max_length = 64] business_profile_id -> Nullable, primary_object_created_at -> Nullable, #[max_length = 64] idempotent_event_id -> Nullable, #[max_length = 64] initial_attempt_id -> Nullable, request -> Nullable, response -> Nullable, delivery_attempt -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; file_metadata (file_id, merchant_id) { #[max_length = 64] file_id -> Varchar, #[max_length = 255] merchant_id -> Varchar, #[max_length = 255] file_name -> Nullable, file_size -> Int4, #[max_length = 255] file_type -> Varchar, #[max_length = 255] provider_file_id -> Nullable, #[max_length = 255] file_upload_provider -> Nullable, available -> Bool, created_at -> Timestamp, #[max_length = 255] connector_label -> Nullable, #[max_length = 64] profile_id -> Nullable, #[max_length = 32] merchant_connector_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; fraud_check (frm_id, attempt_id, payment_id, merchant_id) { #[max_length = 64] frm_id -> Varchar, #[max_length = 64] payment_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] attempt_id -> Varchar, created_at -> Timestamp, #[max_length = 255] frm_name -> Varchar, #[max_length = 255] frm_transaction_id -> Nullable, frm_transaction_type -> FraudCheckType, frm_status -> FraudCheckStatus, frm_score -> Nullable, frm_reason -> Nullable, #[max_length = 255] frm_error -> Nullable, payment_details -> Nullable, metadata -> Nullable, modified_at -> Timestamp, #[max_length = 64] last_step -> Varchar, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; gateway_status_map (connector, flow, sub_flow, code, message) { #[max_length = 64] connector -> Varchar, #[max_length = 64] flow -> Varchar, #[max_length = 64] sub_flow -> Varchar, #[max_length = 255] code -> Varchar, #[max_length = 1024] message -> Varchar, #[max_length = 64] status -> Varchar, #[max_length = 64] router_error -> Nullable, #[max_length = 64] decision -> Varchar, created_at -> Timestamp, last_modified -> Timestamp, step_up_possible -> Bool, #[max_length = 255] unified_code -> Nullable, #[max_length = 1024] unified_message -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; incremental_authorization (authorization_id, merchant_id) { #[max_length = 64] authorization_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] payment_id -> Varchar, amount -> Int8, created_at -> Timestamp, modified_at -> Timestamp, #[max_length = 64] status -> Varchar, #[max_length = 255] error_code -> Nullable, error_message -> Nullable, #[max_length = 64] connector_authorization_id -> Nullable, previously_authorized_amount -> Int8, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; locker_mock_up (id) { id -> Int4, #[max_length = 255] card_id -> Varchar, #[max_length = 255] external_id -> Varchar, #[max_length = 255] card_fingerprint -> Varchar, #[max_length = 255] card_global_fingerprint -> Varchar, #[max_length = 255] merchant_id -> Varchar, #[max_length = 255] card_number -> Varchar, #[max_length = 255] card_exp_year -> Varchar, #[max_length = 255] card_exp_month -> Varchar, #[max_length = 255] name_on_card -> Nullable, #[max_length = 255] nickname -> Nullable, #[max_length = 255] customer_id -> Nullable, duplicate -> Nullable, #[max_length = 8] card_cvc -> Nullable, #[max_length = 64] payment_method_id -> Nullable, enc_card_data -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; mandate (id) { id -> Int4, #[max_length = 64] mandate_id -> Varchar, #[max_length = 64] customer_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] payment_method_id -> Varchar, mandate_status -> MandateStatus, mandate_type -> MandateType, customer_accepted_at -> Nullable, #[max_length = 64] customer_ip_address -> Nullable, #[max_length = 255] customer_user_agent -> Nullable, #[max_length = 128] network_transaction_id -> Nullable, #[max_length = 64] previous_attempt_id -> Nullable, created_at -> Timestamp, mandate_amount -> Nullable, mandate_currency -> Nullable, amount_captured -> Nullable, #[max_length = 64] connector -> Varchar, #[max_length = 128] connector_mandate_id -> Nullable, start_date -> Nullable, end_date -> Nullable, metadata -> Nullable, connector_mandate_ids -> Nullable, #[max_length = 64] original_payment_id -> Nullable, #[max_length = 32] merchant_connector_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; merchant_account (id) { id -> Int4, #[max_length = 64] merchant_id -> Varchar, #[max_length = 255] return_url -> Nullable, enable_payment_response_hash -> Bool, #[max_length = 255] payment_response_hash_key -> Nullable, redirect_to_merchant_with_http_post -> Bool, merchant_name -> Nullable, merchant_details -> Nullable, webhook_details -> Nullable, sub_merchants_enabled -> Nullable, #[max_length = 64] parent_merchant_id -> Nullable, #[max_length = 128] publishable_key -> Nullable, storage_scheme -> MerchantStorageScheme, #[max_length = 64] locker_id -> Nullable, metadata -> Nullable, routing_algorithm -> Nullable, primary_business_details -> Json, intent_fulfillment_time -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, frm_routing_algorithm -> Nullable, payout_routing_algorithm -> Nullable, #[max_length = 32] organization_id -> Varchar, is_recon_enabled -> Bool, #[max_length = 64] default_profile -> Nullable, recon_status -> ReconStatus, payment_link_config -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; merchant_connector_account (id) { id -> Int4, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] connector_name -> Varchar, connector_account_details -> Bytea, test_mode -> Nullable, disabled -> Nullable, #[max_length = 128] merchant_connector_id -> Varchar, payment_methods_enabled -> Nullable>>, connector_type -> ConnectorType, metadata -> Nullable, #[max_length = 255] connector_label -> Nullable, business_country -> Nullable, #[max_length = 255] business_label -> Nullable, #[max_length = 64] business_sub_label -> Nullable, frm_configs -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, connector_webhook_details -> Nullable, frm_config -> Nullable>>, #[max_length = 64] profile_id -> Nullable, applepay_verified_domains -> Nullable>>, pm_auth_config -> Nullable, status -> ConnectorStatus, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; merchant_key_store (merchant_id) { #[max_length = 64] merchant_id -> Varchar, key -> Bytea, created_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; organization (org_id) { #[max_length = 32] org_id -> Varchar, org_name -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payment_attempt (id) { id -> Int4, #[max_length = 64] payment_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] attempt_id -> Varchar, status -> AttemptStatus, amount -> Int8, currency -> Nullable, save_to_locker -> Nullable, #[max_length = 64] connector -> Nullable, error_message -> Nullable, offer_amount -> Nullable, surcharge_amount -> Nullable, tax_amount -> Nullable, #[max_length = 64] payment_method_id -> Nullable, payment_method -> Nullable, #[max_length = 128] connector_transaction_id -> Nullable, capture_method -> Nullable, capture_on -> Nullable, confirm -> Bool, authentication_type -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, last_synced -> Nullable, #[max_length = 255] cancellation_reason -> Nullable, amount_to_capture -> Nullable, #[max_length = 64] mandate_id -> Nullable, browser_info -> Nullable, #[max_length = 255] error_code -> Nullable, #[max_length = 128] payment_token -> Nullable, connector_metadata -> Nullable, #[max_length = 50] payment_experience -> Nullable, #[max_length = 64] payment_method_type -> Nullable, payment_method_data -> Nullable, #[max_length = 64] business_sub_label -> Nullable, straight_through_algorithm -> Nullable, preprocessing_step_id -> Nullable, mandate_details -> Nullable, error_reason -> Nullable, multiple_capture_count -> Nullable, #[max_length = 128] connector_response_reference_id -> Nullable, amount_capturable -> Int8, #[max_length = 32] updated_by -> Varchar, #[max_length = 32] merchant_connector_id -> Nullable, authentication_data -> Nullable, encoded_data -> Nullable, #[max_length = 255] unified_code -> Nullable, #[max_length = 1024] unified_message -> Nullable, net_amount -> Nullable, external_three_ds_authentication_attempted -> Nullable, #[max_length = 64] authentication_connector -> Nullable, #[max_length = 64] authentication_id -> Nullable, mandate_data -> Nullable, #[max_length = 64] fingerprint_id -> Nullable, #[max_length = 64] payment_method_billing_address_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payment_intent (id) { id -> Int4, #[max_length = 64] payment_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, status -> IntentStatus, amount -> Int8, currency -> Nullable, amount_captured -> Nullable, #[max_length = 64] customer_id -> Nullable, #[max_length = 255] description -> Nullable, #[max_length = 255] return_url -> Nullable, metadata -> Nullable, #[max_length = 64] connector_id -> Nullable, #[max_length = 64] shipping_address_id -> Nullable, #[max_length = 64] billing_address_id -> Nullable, #[max_length = 255] statement_descriptor_name -> Nullable, #[max_length = 255] statement_descriptor_suffix -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, last_synced -> Nullable, setup_future_usage -> Nullable, off_session -> Nullable, #[max_length = 128] client_secret -> Nullable, #[max_length = 64] active_attempt_id -> Varchar, business_country -> Nullable, #[max_length = 64] business_label -> Nullable, order_details -> Nullable>>, allowed_payment_method_types -> Nullable, connector_metadata -> Nullable, feature_metadata -> Nullable, attempt_count -> Int2, #[max_length = 64] profile_id -> Nullable, #[max_length = 64] merchant_decision -> Nullable, #[max_length = 255] payment_link_id -> Nullable, payment_confirm_source -> Nullable, #[max_length = 32] updated_by -> Varchar, surcharge_applicable -> Nullable, request_incremental_authorization -> Nullable, incremental_authorization_allowed -> Nullable, authorization_count -> Nullable, session_expiry -> Nullable, #[max_length = 64] fingerprint_id -> Nullable, request_external_three_ds_authentication -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payment_link (payment_link_id) { #[max_length = 255] payment_link_id -> Varchar, #[max_length = 64] payment_id -> Varchar, #[max_length = 255] link_to_pay -> Varchar, #[max_length = 64] merchant_id -> Varchar, amount -> Int8, currency -> Nullable, created_at -> Timestamp, last_modified_at -> Timestamp, fulfilment_time -> Nullable, #[max_length = 64] custom_merchant_name -> Nullable, payment_link_config -> Nullable, #[max_length = 255] description -> Nullable, #[max_length = 64] profile_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payment_methods (id) { id -> Int4, #[max_length = 64] customer_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] payment_method_id -> Varchar, accepted_currency -> Nullable>>, #[max_length = 32] scheme -> Nullable, #[max_length = 128] token -> Nullable, #[max_length = 255] cardholder_name -> Nullable, #[max_length = 64] issuer_name -> Nullable, #[max_length = 64] issuer_country -> Nullable, payer_country -> Nullable>>, is_stored -> Nullable, #[max_length = 32] swift_code -> Nullable, #[max_length = 128] direct_debit_token -> Nullable, created_at -> Timestamp, last_modified -> Timestamp, payment_method -> Nullable, #[max_length = 64] payment_method_type -> Nullable, #[max_length = 128] payment_method_issuer -> Nullable, payment_method_issuer_code -> Nullable, metadata -> Nullable, payment_method_data -> Nullable, #[max_length = 64] locker_id -> Nullable, last_used_at -> Timestamp, connector_mandate_details -> Nullable, customer_acceptance -> Nullable, #[max_length = 64] status -> Varchar, #[max_length = 255] network_transaction_id -> Nullable, #[max_length = 128] client_secret -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payout_attempt (payout_attempt_id) { #[max_length = 64] payout_attempt_id -> Varchar, #[max_length = 64] payout_id -> Varchar, #[max_length = 64] customer_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] address_id -> Varchar, #[max_length = 64] connector -> Nullable, #[max_length = 128] connector_payout_id -> Varchar, #[max_length = 64] payout_token -> Nullable, status -> PayoutStatus, is_eligible -> Nullable, error_message -> Nullable, #[max_length = 64] error_code -> Nullable, business_country -> Nullable, #[max_length = 64] business_label -> Nullable, created_at -> Timestamp, last_modified_at -> Timestamp, #[max_length = 64] profile_id -> Varchar, #[max_length = 32] merchant_connector_id -> Nullable, routing_info -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payouts (payout_id) { #[max_length = 64] payout_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] customer_id -> Varchar, #[max_length = 64] address_id -> Varchar, payout_type -> PayoutType, #[max_length = 64] payout_method_id -> Nullable, amount -> Int8, destination_currency -> Currency, source_currency -> Currency, #[max_length = 255] description -> Nullable, recurring -> Bool, auto_fulfill -> Bool, #[max_length = 255] return_url -> Nullable, #[max_length = 64] entity_type -> Varchar, metadata -> Nullable, created_at -> Timestamp, last_modified_at -> Timestamp, attempt_count -> Int2, #[max_length = 64] profile_id -> Varchar, status -> PayoutStatus, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; process_tracker (id) { #[max_length = 127] id -> Varchar, #[max_length = 64] name -> Nullable, tag -> Array>, #[max_length = 64] runner -> Nullable, retry_count -> Int4, schedule_time -> Nullable, #[max_length = 255] rule -> Varchar, tracking_data -> Json, #[max_length = 255] business_status -> Varchar, status -> ProcessTrackerStatus, event -> Array>, created_at -> Timestamp, updated_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; refund (id) { id -> Int4, #[max_length = 64] internal_reference_id -> Varchar, #[max_length = 64] refund_id -> Varchar, #[max_length = 64] payment_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 128] connector_transaction_id -> Varchar, #[max_length = 64] connector -> Varchar, #[max_length = 128] connector_refund_id -> Nullable, #[max_length = 64] external_reference_id -> Nullable, refund_type -> RefundType, total_amount -> Int8, currency -> Currency, refund_amount -> Int8, refund_status -> RefundStatus, sent_to_gateway -> Bool, refund_error_message -> Nullable, metadata -> Nullable, #[max_length = 128] refund_arn -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, #[max_length = 255] description -> Nullable, #[max_length = 64] attempt_id -> Varchar, #[max_length = 255] refund_reason -> Nullable, refund_error_code -> Nullable, #[max_length = 64] profile_id -> Nullable, #[max_length = 32] updated_by -> Varchar, #[max_length = 32] merchant_connector_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; reverse_lookup (lookup_id) { #[max_length = 128] lookup_id -> Varchar, #[max_length = 128] sk_id -> Varchar, #[max_length = 128] pk_id -> Varchar, #[max_length = 128] source -> Varchar, #[max_length = 32] updated_by -> Varchar, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; roles (id) { id -> Int4, #[max_length = 64] role_name -> Varchar, #[max_length = 64] role_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] org_id -> Varchar, groups -> Array>, scope -> RoleScope, created_at -> Timestamp, #[max_length = 64] created_by -> Varchar, last_modified_at -> Timestamp, #[max_length = 64] last_modified_by -> Varchar, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; routing_algorithm (algorithm_id) { #[max_length = 64] algorithm_id -> Varchar, #[max_length = 64] profile_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] name -> Varchar, #[max_length = 256] description -> Nullable, kind -> RoutingAlgorithmKind, algorithm_data -> Jsonb, created_at -> Timestamp, modified_at -> Timestamp, algorithm_for -> TransactionType, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; user_roles (id) { id -> Int4, #[max_length = 64] user_id -> Varchar, #[max_length = 64] merchant_id -> Varchar, #[max_length = 64] role_id -> Varchar, #[max_length = 64] org_id -> Varchar, status -> UserStatus, #[max_length = 64] created_by -> Varchar, #[max_length = 64] last_modified_by -> Varchar, created_at -> Timestamp, last_modified -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; users (id) { id -> Int4, #[max_length = 64] user_id -> Varchar, #[max_length = 255] email -> Varchar, #[max_length = 255] name -> Varchar, #[max_length = 255] password -> Varchar, is_verified -> Bool, created_at -> Timestamp, last_modified_at -> Timestamp, #[max_length = 64] preferred_merchant_id -> Nullable, } } diesel::allow_tables_to_appear_in_same_query!( address, api_keys, authentication, blocklist, blocklist_fingerprint, blocklist_lookup, business_profile, captures, cards_info, configs, customers, dashboard_metadata, dispute, events, file_metadata, fraud_check, gateway_status_map, incremental_authorization, locker_mock_up, mandate, merchant_account, merchant_connector_account, merchant_key_store, organization, payment_attempt, payment_intent, payment_link, payment_methods, payout_attempt, payouts, process_tracker, refund, reverse_lookup, roles, routing_algorithm, user_roles, users, );