Skip to content

Commit

Permalink
chore: updated main
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjwalkumar17 committed Dec 5, 2023
1 parent 7bd6e05 commit 779b1b0
Showing 1 changed file with 148 additions and 9 deletions.
157 changes: 148 additions & 9 deletions crates/diesel_models/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ diesel::table! {
merchant_id -> Varchar,
#[max_length = 64]
org_id -> Varchar,
#[max_length = 64]
data_key -> Varchar,
data_key -> DashboardMetadata,
data_value -> Json,
#[max_length = 64]
created_by -> Varchar,
Expand Down Expand Up @@ -270,6 +269,23 @@ 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 @@ -401,7 +417,7 @@ diesel::table! {
card_fingerprint -> Varchar,
#[max_length = 255]
card_global_fingerprint -> Varchar,
#[max_length = 255]
#[max_length = 64]
merchant_id -> Varchar,
#[max_length = 255]
card_number -> Varchar,
Expand Down Expand Up @@ -561,6 +577,21 @@ 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 @@ -848,6 +879,36 @@ 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 @@ -874,6 +935,42 @@ 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 @@ -964,6 +1061,42 @@ 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 @@ -976,16 +1109,15 @@ diesel::table! {
merchant_id -> Varchar,
#[max_length = 64]
role_id -> Varchar,
#[max_length = 64]
org_id -> Varchar,
#[max_length = 64]
status -> Varchar,
status -> UserStatus,
#[max_length = 64]
created_by -> Varchar,
#[max_length = 64]
last_modified_by -> Varchar,
created_at -> Timestamp,
last_modified_at -> Timestamp,
last_modified -> Timestamp,
#[max_length = 32]
org_id -> Varchar,
}
}

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

Expand All @@ -1020,6 +1154,7 @@ diesel::allow_tables_to_appear_in_same_query!(
dashboard_metadata,
dispute,
events,
feedbacks,
file_metadata,
fraud_check,
gateway_status_map,
Expand All @@ -1029,17 +1164,21 @@ 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 779b1b0

Please sign in to comment.