Skip to content

Commit

Permalink
chore: pull schema.rs from main
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjwalkumar17 committed Dec 5, 2023
1 parent b3665d7 commit 0348d18
Showing 1 changed file with 9 additions and 148 deletions.
157 changes: 9 additions & 148 deletions crates/diesel_models/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ diesel::table! {
merchant_id -> Varchar,
#[max_length = 64]
org_id -> Varchar,
data_key -> DashboardMetadata,
#[max_length = 64]
data_key -> Varchar,
data_value -> Json,
#[max_length = 64]
created_by -> Varchar,
Expand Down Expand Up @@ -269,23 +270,6 @@ diesel::table! {
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;

feedbacks (id) {
id -> Int4,
#[max_length = 255]
email -> Varchar,
#[max_length = 255]
description -> Nullable<Varchar>,
rating -> Nullable<Int4>,
#[max_length = 255]
category -> Nullable<Varchar>,
created_at -> Timestamp,
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;
Expand Down Expand Up @@ -417,7 +401,7 @@ diesel::table! {
card_fingerprint -> Varchar,
#[max_length = 255]
card_global_fingerprint -> Varchar,
#[max_length = 64]
#[max_length = 255]
merchant_id -> Varchar,
#[max_length = 255]
card_number -> Varchar,
Expand Down Expand Up @@ -577,21 +561,6 @@ diesel::table! {
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;

onboarding_data (id) {
id -> Int4,
#[max_length = 64]
user_id -> Varchar,
onboarding_step -> Int4,
created_at -> Timestamp,
last_modified -> Timestamp,
subscribed -> Nullable<Bool>,
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;
Expand Down Expand Up @@ -879,36 +848,6 @@ diesel::table! {
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;

plan (plan_id) {
#[max_length = 64]
plan_id -> Varchar,
#[max_length = 255]
plan_name -> Varchar,
#[max_length = 64]
merchant_id -> Varchar,
currency -> Currency,
amount -> Int4,
#[max_length = 64]
status -> Varchar,
#[max_length = 64]
billing_unit -> Varchar,
billing_length -> Int4,
billing_cycle -> Int4,
#[max_length = 64]
trial_unit -> Nullable<Varchar>,
trial_length -> Nullable<Int4>,
#[max_length = 64]
pricing_type -> Varchar,
trial_requires_payment_info -> Bool,
created_at -> Timestamp,
modified_at -> Timestamp,
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;
Expand All @@ -935,42 +874,6 @@ diesel::table! {
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;

prod_intent (id) {
id -> Int4,
#[max_length = 255]
user_id -> Varchar,
#[max_length = 255]
merchant_id -> Varchar,
#[max_length = 255]
legal_business_name -> Nullable<Varchar>,
#[max_length = 255]
business_label -> Nullable<Varchar>,
business_location -> Nullable<CountryAlpha2>,
#[max_length = 255]
display_name -> Nullable<Varchar>,
#[max_length = 255]
poc_email -> Nullable<Varchar>,
#[max_length = 255]
business_type -> Nullable<Varchar>,
#[max_length = 255]
business_identifier -> Nullable<Varchar>,
#[max_length = 255]
business_website -> Nullable<Varchar>,
#[max_length = 255]
poc_name -> Nullable<Varchar>,
#[max_length = 255]
poc_contact -> Nullable<Varchar>,
comments -> Nullable<Text>,
is_completed -> Bool,
created_at -> Timestamp,
modified_at -> Timestamp,
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;
Expand Down Expand Up @@ -1061,42 +964,6 @@ diesel::table! {
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;

subscriptions (subscription_id) {
#[max_length = 64]
subscription_id -> Varchar,
#[max_length = 64]
plan_id -> Varchar,
#[max_length = 64]
customer_id -> Varchar,
#[max_length = 64]
merchant_id -> Varchar,
#[max_length = 64]
mandate_id -> Nullable<Varchar>,
currency -> Currency,
amount -> Int4,
subscription_balance -> Int4,
#[max_length = 64]
status -> Varchar,
next_billing_date -> Timestamp,
#[max_length = 64]
billing_unit -> Varchar,
billing_length -> Int4,
billing_cycle -> Int4,
#[max_length = 64]
trial_unit -> Nullable<Varchar>,
trial_length -> Nullable<Int4>,
start_date -> Nullable<Timestamp>,
end_date -> Nullable<Timestamp>,
is_retry_initiated -> Nullable<Bool>,
created_at -> Timestamp,
modified_at -> Timestamp,
}
}

diesel::table! {
use diesel::sql_types::*;
use crate::enums::diesel_exports::*;
Expand All @@ -1109,15 +976,16 @@ diesel::table! {
merchant_id -> Varchar,
#[max_length = 64]
role_id -> Varchar,
status -> UserStatus,
#[max_length = 64]
org_id -> Varchar,
#[max_length = 64]
status -> Varchar,
#[max_length = 64]
created_by -> Varchar,
#[max_length = 64]
last_modified_by -> Varchar,
created_at -> Timestamp,
last_modified -> Timestamp,
#[max_length = 32]
org_id -> Varchar,
last_modified_at -> Timestamp,
}
}

Expand All @@ -1137,9 +1005,7 @@ diesel::table! {
password -> Varchar,
is_verified -> Bool,
created_at -> Timestamp,
last_modified -> Timestamp,
metadata -> Nullable<Jsonb>,
sandbox_integration -> Nullable<Jsonb>,
last_modified_at -> Timestamp,
}
}

Expand All @@ -1154,7 +1020,6 @@ diesel::allow_tables_to_appear_in_same_query!(
dashboard_metadata,
dispute,
events,
feedbacks,
file_metadata,
fraud_check,
gateway_status_map,
Expand All @@ -1164,21 +1029,17 @@ diesel::allow_tables_to_appear_in_same_query!(
merchant_account,
merchant_connector_account,
merchant_key_store,
onboarding_data,
organization,
payment_attempt,
payment_intent,
payment_link,
payment_methods,
payout_attempt,
payouts,
plan,
process_tracker,
prod_intent,
refund,
reverse_lookup,
routing_algorithm,
subscriptions,
user_roles,
users,
);

0 comments on commit 0348d18

Please sign in to comment.