// @generated automatically by Diesel CLI. diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; address (address_id) { id -> Int4, address_id -> Varchar, city -> Nullable, country -> Nullable, line1 -> Nullable, line2 -> Nullable, line3 -> Nullable, state -> Nullable, zip -> Nullable, first_name -> Nullable, last_name -> Nullable, phone_number -> Nullable, country_code -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, customer_id -> Varchar, merchant_id -> Varchar, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; api_keys (key_id) { key_id -> Varchar, merchant_id -> Varchar, name -> Varchar, description -> Nullable, hashed_api_key -> Varchar, prefix -> Varchar, created_at -> Timestamp, expires_at -> Nullable, last_used -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; cards_info (card_iin) { card_iin -> Varchar, card_issuer -> Nullable, card_network -> Nullable, card_type -> Nullable, card_subtype -> Nullable, card_issuing_country -> Nullable, bank_code_id -> Nullable, bank_code -> Nullable, 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, key -> Varchar, config -> Text, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; connector_response (id) { id -> Int4, payment_id -> Varchar, merchant_id -> Varchar, attempt_id -> Varchar, created_at -> Timestamp, modified_at -> Timestamp, connector_name -> Nullable, connector_transaction_id -> Nullable, authentication_data -> Nullable, encoded_data -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; customers (customer_id, merchant_id) { id -> Int4, customer_id -> Varchar, merchant_id -> Varchar, name -> Nullable, email -> Nullable, phone -> Nullable, phone_country_code -> Nullable, description -> Nullable, created_at -> Timestamp, metadata -> Nullable, modified_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; dispute (id) { id -> Int4, dispute_id -> Varchar, amount -> Varchar, currency -> Varchar, dispute_stage -> DisputeStage, dispute_status -> DisputeStatus, payment_id -> Varchar, attempt_id -> Varchar, merchant_id -> Varchar, connector_status -> Varchar, connector_dispute_id -> Varchar, connector_reason -> Nullable, connector_reason_code -> Nullable, challenge_required_by -> Nullable, dispute_created_at -> Nullable, updated_at -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, connector -> Varchar, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; events (id) { id -> Int4, event_id -> Varchar, event_type -> EventType, event_class -> EventClass, is_webhook_notified -> Bool, intent_reference_id -> Nullable, primary_object_id -> Varchar, primary_object_type -> EventObjectType, created_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; locker_mock_up (id) { id -> Int4, card_id -> Varchar, external_id -> Varchar, card_fingerprint -> Varchar, card_global_fingerprint -> Varchar, merchant_id -> Varchar, card_number -> Varchar, card_exp_year -> Varchar, card_exp_month -> Varchar, name_on_card -> Nullable, nickname -> Nullable, customer_id -> Nullable, duplicate -> Nullable, card_cvc -> Nullable, payment_method_id -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; mandate (id) { id -> Int4, mandate_id -> Varchar, customer_id -> Varchar, merchant_id -> Varchar, payment_method_id -> Varchar, mandate_status -> MandateStatus, mandate_type -> MandateType, customer_accepted_at -> Nullable, customer_ip_address -> Nullable, customer_user_agent -> Nullable, network_transaction_id -> Nullable, previous_attempt_id -> Nullable, created_at -> Timestamp, mandate_amount -> Nullable, mandate_currency -> Nullable, amount_captured -> Nullable, connector -> Varchar, connector_mandate_id -> Nullable, start_date -> Nullable, end_date -> Nullable, metadata -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; merchant_account (id) { id -> Int4, merchant_id -> Varchar, return_url -> Nullable, enable_payment_response_hash -> Bool, 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, parent_merchant_id -> Nullable, publishable_key -> Nullable, storage_scheme -> MerchantStorageScheme, locker_id -> Nullable, metadata -> Nullable, routing_algorithm -> Nullable, primary_business_details -> Json, api_key -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; merchant_connector_account (id) { id -> Int4, merchant_id -> Varchar, connector_name -> Varchar, connector_account_details -> Json, test_mode -> Nullable, disabled -> Nullable, merchant_connector_id -> Varchar, payment_methods_enabled -> Nullable>>, connector_type -> ConnectorType, metadata -> Nullable, frm_configs -> Nullable, connector_label -> Varchar, business_country -> CountryCode, business_label -> Varchar, business_sub_label -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payment_attempt (id) { id -> Int4, payment_id -> Varchar, merchant_id -> Varchar, attempt_id -> Varchar, status -> AttemptStatus, amount -> Int8, currency -> Nullable, save_to_locker -> Nullable, connector -> Nullable, error_message -> Nullable, offer_amount -> Nullable, surcharge_amount -> Nullable, tax_amount -> Nullable, payment_method_id -> Nullable, payment_method -> Nullable, connector_transaction_id -> Nullable, capture_method -> Nullable, capture_on -> Nullable, confirm -> Bool, authentication_type -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, last_synced -> Nullable, cancellation_reason -> Nullable, amount_to_capture -> Nullable, mandate_id -> Nullable, browser_info -> Nullable, error_code -> Nullable, payment_token -> Nullable, connector_metadata -> Nullable, payment_experience -> Nullable, payment_method_type -> Nullable, payment_method_data -> Nullable, business_sub_label -> Nullable, straight_through_algorithm -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payment_intent (id) { id -> Int4, payment_id -> Varchar, merchant_id -> Varchar, status -> IntentStatus, amount -> Int8, currency -> Nullable, amount_captured -> Nullable, customer_id -> Nullable, description -> Nullable, return_url -> Nullable, metadata -> Nullable, connector_id -> Nullable, shipping_address_id -> Nullable, billing_address_id -> Nullable, statement_descriptor_name -> Nullable, statement_descriptor_suffix -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, last_synced -> Nullable, setup_future_usage -> Nullable, off_session -> Nullable, client_secret -> Nullable, active_attempt_id -> Varchar, business_country -> CountryCode, business_label -> Varchar, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; payment_methods (id) { id -> Int4, customer_id -> Varchar, merchant_id -> Varchar, payment_method_id -> Varchar, accepted_currency -> Nullable>>, scheme -> Nullable, token -> Nullable, cardholder_name -> Nullable, issuer_name -> Nullable, issuer_country -> Nullable, payer_country -> Nullable>>, is_stored -> Nullable, swift_code -> Nullable, direct_debit_token -> Nullable, created_at -> Timestamp, last_modified -> Timestamp, payment_method -> Varchar, payment_method_type -> Nullable, payment_method_issuer -> Nullable, payment_method_issuer_code -> Nullable, metadata -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; process_tracker (id) { id -> Varchar, name -> Nullable, tag -> Array>, runner -> Nullable, retry_count -> Int4, schedule_time -> Nullable, rule -> Varchar, tracking_data -> Json, 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, internal_reference_id -> Varchar, refund_id -> Varchar, payment_id -> Varchar, merchant_id -> Varchar, connector_transaction_id -> Varchar, connector -> Varchar, connector_refund_id -> Nullable, 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, refund_arn -> Nullable, created_at -> Timestamp, modified_at -> Timestamp, description -> Nullable, attempt_id -> Varchar, refund_reason -> Nullable, refund_error_code -> Nullable, } } diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; reverse_lookup (lookup_id) { lookup_id -> Varchar, sk_id -> Varchar, pk_id -> Varchar, source -> Varchar, } } diesel::allow_tables_to_appear_in_same_query!( address, api_keys, cards_info, configs, connector_response, customers, dispute, events, locker_mock_up, mandate, merchant_account, merchant_connector_account, payment_attempt, payment_intent, payment_methods, process_tracker, refund, reverse_lookup, );