gqlsdk

package
v0.0.1-alpha.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AddSubscriptionEventDocument = `` /* 172-byte string literal not displayed */
View Source
const CreateSubscriptionCustomerDocument = `` /* 433-byte string literal not displayed */
View Source
const GetAccountFromSubscriptionDocument = `` /* 174-byte string literal not displayed */
View Source
const GetAccountInfoForCreatingSubscriptionDocument = `` /* 280-byte string literal not displayed */
View Source
const GetCurrentAccountDocument = `` /* 177-byte string literal not displayed */
View Source
const GetPlanFromStripePlanDocument = `` /* 147-byte string literal not displayed */
View Source
const GetRoleForUserAndAccountDocument = `` /* 157-byte string literal not displayed */
View Source
const GetStripePlanFromPlanDocument = `` /* 129-byte string literal not displayed */
View Source
const GetStripeSubscriptionDocument = `` /* 143-byte string literal not displayed */
View Source
const SetAccountForUserDocument = `` /* 240-byte string literal not displayed */
View Source
const SetSubscriptioStatusDocument = `` /* 409-byte string literal not displayed */

Variables

Functions

func AuthzHeadersInterceptor

func AuthzHeadersInterceptor(accountId, userId, role string) clientv2.RequestInterceptor

func HasuraAdminInterceptor

func HasuraAdminInterceptor() clientv2.RequestInterceptor

func WithAdminRole

func WithAdminRole() clientv2.RequestInterceptor

Types

type BooleanComparisonExp

type BooleanComparisonExp struct {
	Eq     *bool  `json:"_eq,omitempty"`
	Gt     *bool  `json:"_gt,omitempty"`
	Gte    *bool  `json:"_gte,omitempty"`
	In     []bool `json:"_in,omitempty"`
	IsNull *bool  `json:"_is_null,omitempty"`
	Lt     *bool  `json:"_lt,omitempty"`
	Lte    *bool  `json:"_lte,omitempty"`
	Neq    *bool  `json:"_neq,omitempty"`
	Nin    []bool `json:"_nin,omitempty"`
}

Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'.

type CancelSubscriptionOutput

type CancelSubscriptionOutput struct {
	Status string `json:"status"`
}

type ChangeSubscriptionInput

type ChangeSubscriptionInput struct {
	IDPlan string `json:"id_plan"`
}

type ChangeSubscriptionOutput

type ChangeSubscriptionOutput struct {
	IDAccount string `json:"id_account"`
	IsActive  bool   `json:"is_active"`
}

type Client

type Client struct {
	Client *clientv2.Client
}

func NewClient

func NewClient(cli *http.Client, baseURL string, interceptors ...clientv2.RequestInterceptor) *Client

func (*Client) AddSubscriptionEvent

func (c *Client) AddSubscriptionEvent(ctx context.Context, typeArg string, data map[string]interface{}, interceptors ...clientv2.RequestInterceptor) (*MutationAddSubscriptionEvent, error)

func (*Client) CreateSubscriptionCustomer

func (c *Client) CreateSubscriptionCustomer(ctx context.Context, name string, idPlan string, idUser string, stripeCustomer string, status string, idRole string, interceptors ...clientv2.RequestInterceptor) (*MutationCreateSubscriptionCustomer, error)

func (*Client) GetAccountFromSubscription

func (c *Client) GetAccountFromSubscription(ctx context.Context, stripeSubscriptionID string, interceptors ...clientv2.RequestInterceptor) (*QueryGetAccountFromSubscription, error)

func (*Client) GetAccountInfoForCreatingSubscription

func (c *Client) GetAccountInfoForCreatingSubscription(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*QueryGetAccountInfoForCreatingSubscription, error)

func (*Client) GetCurrentAccount

func (c *Client) GetCurrentAccount(ctx context.Context, idUser string, interceptors ...clientv2.RequestInterceptor) (*QueryGetCurrentAccount, error)

func (*Client) GetPlanFromStripePlan

func (c *Client) GetPlanFromStripePlan(ctx context.Context, stripeCode string, interceptors ...clientv2.RequestInterceptor) (*QueryGetPlanFromStripePlan, error)

func (*Client) GetRoleForUserAndAccount

func (c *Client) GetRoleForUserAndAccount(ctx context.Context, user string, account string, interceptors ...clientv2.RequestInterceptor) (*QueryGetRoleForUserAndAccount, error)

func (*Client) GetStripePlanFromPlan

func (c *Client) GetStripePlanFromPlan(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*QueryGetStripePlanFromPlan, error)

func (*Client) GetStripeSubscription

func (c *Client) GetStripeSubscription(ctx context.Context, idAccount string, interceptors ...clientv2.RequestInterceptor) (*QueryGetStripeSubscription, error)

func (*Client) SetAccountForUser

func (c *Client) SetAccountForUser(ctx context.Context, idAccount string, idUser string, interceptors ...clientv2.RequestInterceptor) (*MutationSetAccountForUser, error)

func (*Client) SetSubscriptioStatus

func (c *Client) SetSubscriptioStatus(ctx context.Context, status string, isActive bool, accountID string, stripeSubscriptionID string, idPlan string, interceptors ...clientv2.RequestInterceptor) (*MutationSetSubscriptioStatus, error)

type ClientBuilder

type ClientBuilder interface {
	BuildClient(setHasuraAdminSecret bool, additional ...clientv2.RequestInterceptor) *clientv2.Client
}

func NewClientBuilder

func NewClientBuilder(httpClient *http.Client) ClientBuilder

type ClientBuilderImpl

type ClientBuilderImpl struct {
	HttpClient *http.Client
}

func (*ClientBuilderImpl) BuildClient

func (b *ClientBuilderImpl) BuildClient(setHasuraAdminSecret bool, additional ...clientv2.RequestInterceptor) *clientv2.Client

type CreateSubscriptionInput

type CreateSubscriptionInput struct {
	PaymentMethodID *string `json:"payment_method_id,omitempty"`
}

type CreateSubscriptionOutput

type CreateSubscriptionOutput struct {
	IDAccount string `json:"id_account"`
	IsActive  bool   `json:"is_active"`
}

type InitSubscriptionInput

type InitSubscriptionInput struct {
	AccountName string `json:"account_name"`
	IDPlan      string `json:"id_plan"`
}

type InitSubscriptionOutput

type InitSubscriptionOutput struct {
	IDAccount string `json:"id_account"`
}

type IntComparisonExp

type IntComparisonExp struct {
	Eq     *int64  `json:"_eq,omitempty"`
	Gt     *int64  `json:"_gt,omitempty"`
	Gte    *int64  `json:"_gte,omitempty"`
	In     []int64 `json:"_in,omitempty"`
	IsNull *bool   `json:"_is_null,omitempty"`
	Lt     *int64  `json:"_lt,omitempty"`
	Lte    *int64  `json:"_lte,omitempty"`
	Neq    *int64  `json:"_neq,omitempty"`
	Nin    []int64 `json:"_nin,omitempty"`
}

Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'.

type JsonbComparisonExp

type JsonbComparisonExp struct {
	// is the column contained in the given json value
	ContainedIn map[string]interface{} `json:"_contained_in,omitempty"`
	// does the column contain the given json value at the top level
	Contains map[string]interface{} `json:"_contains,omitempty"`
	Eq       map[string]interface{} `json:"_eq,omitempty"`
	Gt       map[string]interface{} `json:"_gt,omitempty"`
	Gte      map[string]interface{} `json:"_gte,omitempty"`
	// does the string exist as a top-level key in the column
	HasKey *string `json:"_has_key,omitempty"`
	// do all of these strings exist as top-level keys in the column
	HasKeysAll []string `json:"_has_keys_all,omitempty"`
	// do any of these strings exist as top-level keys in the column
	HasKeysAny []string                 `json:"_has_keys_any,omitempty"`
	In         []map[string]interface{} `json:"_in,omitempty"`
	IsNull     *bool                    `json:"_is_null,omitempty"`
	Lt         map[string]interface{}   `json:"_lt,omitempty"`
	Lte        map[string]interface{}   `json:"_lte,omitempty"`
	Neq        map[string]interface{}   `json:"_neq,omitempty"`
	Nin        []map[string]interface{} `json:"_nin,omitempty"`
}

Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'.

type MutationAddSubscriptionEvent

type MutationAddSubscriptionEvent struct {
	InsertSubscriptionEvent *struct {
		AffectedRows int64 "json:\"affected_rows\" graphql:\"affected_rows\""
		Returning    []*struct {
			ID string "json:\"id\" graphql:\"id\""
		} "json:\"returning\" graphql:\"returning\""
	} "json:\"insert_subscription_event\" graphql:\"insert_subscription_event\""
}

type MutationCreateSubscriptionCustomer

type MutationCreateSubscriptionCustomer struct {
	InsertSaasAccount *struct {
		AffectedRows int64 "json:\"affected_rows\" graphql:\"affected_rows\""
		Returning    []*struct {
			ID string "json:\"id\" graphql:\"id\""
		} "json:\"returning\" graphql:\"returning\""
	} "json:\"insert_saas_account\" graphql:\"insert_saas_account\""
}

type MutationRoot

type MutationRoot struct {
	DeleteSaasAccount               *SaasAccountMutationResponse            "json:\"delete_saas_account\" graphql:\"delete_saas_account\""
	DeleteSaasAccountByPk           *SaasAccount                            "json:\"delete_saas_account_by_pk\" graphql:\"delete_saas_account_by_pk\""
	DeleteSaasAddress               *SaasAddressMutationResponse            "json:\"delete_saas_address\" graphql:\"delete_saas_address\""
	DeleteSaasAddressByPk           *SaasAddress                            "json:\"delete_saas_address_by_pk\" graphql:\"delete_saas_address_by_pk\""
	DeleteSaasMembership            *SaasMembershipMutationResponse         "json:\"delete_saas_membership\" graphql:\"delete_saas_membership\""
	DeleteSaasMembershipByPk        *SaasMembership                         "json:\"delete_saas_membership_by_pk\" graphql:\"delete_saas_membership_by_pk\""
	DeleteSaasRole                  *SaasRoleMutationResponse               "json:\"delete_saas_role\" graphql:\"delete_saas_role\""
	DeleteSaasRoleByPk              *SaasRole                               "json:\"delete_saas_role_by_pk\" graphql:\"delete_saas_role_by_pk\""
	DeleteSubscriptionActivePlan    *SubscriptionActivePlanMutationResponse "json:\"delete_subscription_active_plan\" graphql:\"delete_subscription_active_plan\""
	DeleteSubscriptionCustomer      *SubscriptionCustomerMutationResponse   "json:\"delete_subscription_customer\" graphql:\"delete_subscription_customer\""
	DeleteSubscriptionCustomerByPk  *SubscriptionCustomer                   "json:\"delete_subscription_customer_by_pk\" graphql:\"delete_subscription_customer_by_pk\""
	DeleteSubscriptionEvent         *SubscriptionEventMutationResponse      "json:\"delete_subscription_event\" graphql:\"delete_subscription_event\""
	DeleteSubscriptionEventByPk     *SubscriptionEvent                      "json:\"delete_subscription_event_by_pk\" graphql:\"delete_subscription_event_by_pk\""
	DeleteSubscriptionPlan          *SubscriptionPlanMutationResponse       "json:\"delete_subscription_plan\" graphql:\"delete_subscription_plan\""
	DeleteSubscriptionPlanByPk      *SubscriptionPlan                       "json:\"delete_subscription_plan_by_pk\" graphql:\"delete_subscription_plan_by_pk\""
	DeleteSubscriptionStatus        *SubscriptionStatusMutationResponse     "json:\"delete_subscription_status\" graphql:\"delete_subscription_status\""
	DeleteSubscriptionStatusByPk    *SubscriptionStatus                     "json:\"delete_subscription_status_by_pk\" graphql:\"delete_subscription_status_by_pk\""
	InsertSaasAccount               *SaasAccountMutationResponse            "json:\"insert_saas_account\" graphql:\"insert_saas_account\""
	InsertSaasAccountOne            *SaasAccount                            "json:\"insert_saas_account_one\" graphql:\"insert_saas_account_one\""
	InsertSaasAddress               *SaasAddressMutationResponse            "json:\"insert_saas_address\" graphql:\"insert_saas_address\""
	InsertSaasAddressOne            *SaasAddress                            "json:\"insert_saas_address_one\" graphql:\"insert_saas_address_one\""
	InsertSaasMembership            *SaasMembershipMutationResponse         "json:\"insert_saas_membership\" graphql:\"insert_saas_membership\""
	InsertSaasMembershipOne         *SaasMembership                         "json:\"insert_saas_membership_one\" graphql:\"insert_saas_membership_one\""
	InsertSaasRole                  *SaasRoleMutationResponse               "json:\"insert_saas_role\" graphql:\"insert_saas_role\""
	InsertSaasRoleOne               *SaasRole                               "json:\"insert_saas_role_one\" graphql:\"insert_saas_role_one\""
	InsertSubscriptionActivePlan    *SubscriptionActivePlanMutationResponse "json:\"insert_subscription_active_plan\" graphql:\"insert_subscription_active_plan\""
	InsertSubscriptionActivePlanOne *SubscriptionActivePlan                 "json:\"insert_subscription_active_plan_one\" graphql:\"insert_subscription_active_plan_one\""
	InsertSubscriptionCustomer      *SubscriptionCustomerMutationResponse   "json:\"insert_subscription_customer\" graphql:\"insert_subscription_customer\""
	InsertSubscriptionCustomerOne   *SubscriptionCustomer                   "json:\"insert_subscription_customer_one\" graphql:\"insert_subscription_customer_one\""
	InsertSubscriptionEvent         *SubscriptionEventMutationResponse      "json:\"insert_subscription_event\" graphql:\"insert_subscription_event\""
	InsertSubscriptionEventOne      *SubscriptionEvent                      "json:\"insert_subscription_event_one\" graphql:\"insert_subscription_event_one\""
	InsertSubscriptionPlan          *SubscriptionPlanMutationResponse       "json:\"insert_subscription_plan\" graphql:\"insert_subscription_plan\""
	InsertSubscriptionPlanOne       *SubscriptionPlan                       "json:\"insert_subscription_plan_one\" graphql:\"insert_subscription_plan_one\""
	InsertSubscriptionStatus        *SubscriptionStatusMutationResponse     "json:\"insert_subscription_status\" graphql:\"insert_subscription_status\""
	InsertSubscriptionStatusOne     *SubscriptionStatus                     "json:\"insert_subscription_status_one\" graphql:\"insert_subscription_status_one\""
	SaasSetCurrentAccount           *SaasSetCurrentAccountOutput            "json:\"saas_set_current_account\" graphql:\"saas_set_current_account\""
	SubscriptionCancel              *CancelSubscriptionOutput               "json:\"subscription_cancel\" graphql:\"subscription_cancel\""
	SubscriptionChange              *ChangeSubscriptionOutput               "json:\"subscription_change\" graphql:\"subscription_change\""
	SubscriptionCreate              *CreateSubscriptionOutput               "json:\"subscription_create\" graphql:\"subscription_create\""
	SubscriptionInit                *InitSubscriptionOutput                 "json:\"subscription_init\" graphql:\"subscription_init\""
	SubscriptionRetry               *RetrySubscriptionOutput                "json:\"subscription_retry\" graphql:\"subscription_retry\""
	UpdateSaasAccount               *SaasAccountMutationResponse            "json:\"update_saas_account\" graphql:\"update_saas_account\""
	UpdateSaasAccountByPk           *SaasAccount                            "json:\"update_saas_account_by_pk\" graphql:\"update_saas_account_by_pk\""
	UpdateSaasAddress               *SaasAddressMutationResponse            "json:\"update_saas_address\" graphql:\"update_saas_address\""
	UpdateSaasAddressByPk           *SaasAddress                            "json:\"update_saas_address_by_pk\" graphql:\"update_saas_address_by_pk\""
	UpdateSaasMembership            *SaasMembershipMutationResponse         "json:\"update_saas_membership\" graphql:\"update_saas_membership\""
	UpdateSaasMembershipByPk        *SaasMembership                         "json:\"update_saas_membership_by_pk\" graphql:\"update_saas_membership_by_pk\""
	UpdateSaasRole                  *SaasRoleMutationResponse               "json:\"update_saas_role\" graphql:\"update_saas_role\""
	UpdateSaasRoleByPk              *SaasRole                               "json:\"update_saas_role_by_pk\" graphql:\"update_saas_role_by_pk\""
	UpdateSubscriptionActivePlan    *SubscriptionActivePlanMutationResponse "json:\"update_subscription_active_plan\" graphql:\"update_subscription_active_plan\""
	UpdateSubscriptionCustomer      *SubscriptionCustomerMutationResponse   "json:\"update_subscription_customer\" graphql:\"update_subscription_customer\""
	UpdateSubscriptionCustomerByPk  *SubscriptionCustomer                   "json:\"update_subscription_customer_by_pk\" graphql:\"update_subscription_customer_by_pk\""
	UpdateSubscriptionEvent         *SubscriptionEventMutationResponse      "json:\"update_subscription_event\" graphql:\"update_subscription_event\""
	UpdateSubscriptionEventByPk     *SubscriptionEvent                      "json:\"update_subscription_event_by_pk\" graphql:\"update_subscription_event_by_pk\""
	UpdateSubscriptionPlan          *SubscriptionPlanMutationResponse       "json:\"update_subscription_plan\" graphql:\"update_subscription_plan\""
	UpdateSubscriptionPlanByPk      *SubscriptionPlan                       "json:\"update_subscription_plan_by_pk\" graphql:\"update_subscription_plan_by_pk\""
	UpdateSubscriptionStatus        *SubscriptionStatusMutationResponse     "json:\"update_subscription_status\" graphql:\"update_subscription_status\""
	UpdateSubscriptionStatusByPk    *SubscriptionStatus                     "json:\"update_subscription_status_by_pk\" graphql:\"update_subscription_status_by_pk\""
}

type MutationSetAccountForUser

type MutationSetAccountForUser struct {
	UpdateSaasMembership *struct {
		AffectedRows int64 "json:\"affected_rows\" graphql:\"affected_rows\""
		Returning    []*struct {
			SelectedAt *string "json:\"selected_at\" graphql:\"selected_at\""
		} "json:\"returning\" graphql:\"returning\""
	} "json:\"update_saas_membership\" graphql:\"update_saas_membership\""
}

type MutationSetSubscriptioStatus

type MutationSetSubscriptioStatus struct {
	UpdateSubscriptionStatus *struct {
		AffectedRows int64 "json:\"affected_rows\" graphql:\"affected_rows\""
		Returning    []*struct {
			IDAccount string "json:\"id_account\" graphql:\"id_account\""
			IDPlan    string "json:\"id_plan\" graphql:\"id_plan\""
			IsActive  bool   "json:\"is_active\" graphql:\"is_active\""
			Status    string "json:\"status\" graphql:\"status\""
		} "json:\"returning\" graphql:\"returning\""
	} "json:\"update_subscription_status\" graphql:\"update_subscription_status\""
}

type NumericComparisonExp

type NumericComparisonExp struct {
	Eq     *string  `json:"_eq,omitempty"`
	Gt     *string  `json:"_gt,omitempty"`
	Gte    *string  `json:"_gte,omitempty"`
	In     []string `json:"_in,omitempty"`
	IsNull *bool    `json:"_is_null,omitempty"`
	Lt     *string  `json:"_lt,omitempty"`
	Lte    *string  `json:"_lte,omitempty"`
	Neq    *string  `json:"_neq,omitempty"`
	Nin    []string `json:"_nin,omitempty"`
}

Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'.

type OrderBy

type OrderBy string

column ordering options

const (
	// in ascending order, nulls last
	OrderByAsc OrderBy = "asc"
	// in ascending order, nulls first
	OrderByAscNullsFirst OrderBy = "asc_nulls_first"
	// in ascending order, nulls last
	OrderByAscNullsLast OrderBy = "asc_nulls_last"
	// in descending order, nulls first
	OrderByDesc OrderBy = "desc"
	// in descending order, nulls first
	OrderByDescNullsFirst OrderBy = "desc_nulls_first"
	// in descending order, nulls last
	OrderByDescNullsLast OrderBy = "desc_nulls_last"
)

func (OrderBy) IsValid

func (e OrderBy) IsValid() bool

func (OrderBy) MarshalGQL

func (e OrderBy) MarshalGQL(w io.Writer)

func (OrderBy) String

func (e OrderBy) String() string

func (*OrderBy) UnmarshalGQL

func (e *OrderBy) UnmarshalGQL(v interface{}) error

type QueryGetAccountFromSubscription

type QueryGetAccountFromSubscription struct {
	SubscriptionStatus []*struct {
		IDAccount string "json:\"id_account\" graphql:\"id_account\""
	} "json:\"subscription_status\" graphql:\"subscription_status\""
}

type QueryGetAccountInfoForCreatingSubscription

type QueryGetAccountInfoForCreatingSubscription struct {
	SaasAccount []*struct {
		ID                   string "json:\"id\" graphql:\"id\""
		SubscriptionCustomer struct {
			StripeCustomer string "json:\"stripe_customer\" graphql:\"stripe_customer\""
		} "json:\"subscription_customer\" graphql:\"subscription_customer\""
		SubscriptionStatus struct {
			Status               string  "json:\"status\" graphql:\"status\""
			StripeSubscriptionID *string "json:\"stripe_subscription_id\" graphql:\"stripe_subscription_id\""
			SubscriptionPlan     struct {
				StripeCode *string "json:\"stripe_code\" graphql:\"stripe_code\""
				TrialDays  *int64  "json:\"trial_days\" graphql:\"trial_days\""
			} "json:\"subscription_plan\" graphql:\"subscription_plan\""
		} "json:\"subscription_status\" graphql:\"subscription_status\""
	} "json:\"saas_account\" graphql:\"saas_account\""
}

type QueryGetCurrentAccount

type QueryGetCurrentAccount struct {
	SaasMembership []*struct {
		IDAccount string "json:\"id_account\" graphql:\"id_account\""
		IDRole    string "json:\"id_role\" graphql:\"id_role\""
	} "json:\"saas_membership\" graphql:\"saas_membership\""
}

type QueryGetPlanFromStripePlan

type QueryGetPlanFromStripePlan struct {
	SubscriptionPlan []*struct {
		ID string "json:\"id\" graphql:\"id\""
	} "json:\"subscription_plan\" graphql:\"subscription_plan\""
}

type QueryGetRoleForUserAndAccount

type QueryGetRoleForUserAndAccount struct {
	SaasMembership []*struct {
		IDRole string "json:\"id_role\" graphql:\"id_role\""
	} "json:\"saas_membership\" graphql:\"saas_membership\""
}

type QueryGetStripePlanFromPlan

type QueryGetStripePlanFromPlan struct {
	SubscriptionPlan []*struct {
		StripeCode *string "json:\"stripe_code\" graphql:\"stripe_code\""
	} "json:\"subscription_plan\" graphql:\"subscription_plan\""
}

type QueryGetStripeSubscription

type QueryGetStripeSubscription struct {
	SubscriptionStatus []*struct {
		StripeSubscriptionID *string "json:\"stripe_subscription_id\" graphql:\"stripe_subscription_id\""
	} "json:\"subscription_status\" graphql:\"subscription_status\""
}

type QueryRoot

type QueryRoot struct {
	SaasAccount                     []*SaasAccount                  "json:\"saas_account\" graphql:\"saas_account\""
	SaasAccountAggregate            SaasAccountAggregate            "json:\"saas_account_aggregate\" graphql:\"saas_account_aggregate\""
	SaasAccountByPk                 *SaasAccount                    "json:\"saas_account_by_pk\" graphql:\"saas_account_by_pk\""
	SaasAddress                     []*SaasAddress                  "json:\"saas_address\" graphql:\"saas_address\""
	SaasAddressAggregate            SaasAddressAggregate            "json:\"saas_address_aggregate\" graphql:\"saas_address_aggregate\""
	SaasAddressByPk                 *SaasAddress                    "json:\"saas_address_by_pk\" graphql:\"saas_address_by_pk\""
	SaasGetCurrentAccount           *SaasGetCurrentAccountOutput    "json:\"saas_get_current_account\" graphql:\"saas_get_current_account\""
	SaasMembership                  []*SaasMembership               "json:\"saas_membership\" graphql:\"saas_membership\""
	SaasMembershipAggregate         SaasMembershipAggregate         "json:\"saas_membership_aggregate\" graphql:\"saas_membership_aggregate\""
	SaasMembershipByPk              *SaasMembership                 "json:\"saas_membership_by_pk\" graphql:\"saas_membership_by_pk\""
	SaasRole                        []*SaasRole                     "json:\"saas_role\" graphql:\"saas_role\""
	SaasRoleAggregate               SaasRoleAggregate               "json:\"saas_role_aggregate\" graphql:\"saas_role_aggregate\""
	SaasRoleByPk                    *SaasRole                       "json:\"saas_role_by_pk\" graphql:\"saas_role_by_pk\""
	SaasUserAccount                 []*SaasUserAccount              "json:\"saas_user_account\" graphql:\"saas_user_account\""
	SaasUserAccountAggregate        SaasUserAccountAggregate        "json:\"saas_user_account_aggregate\" graphql:\"saas_user_account_aggregate\""
	SubscriptionActivePlan          []*SubscriptionActivePlan       "json:\"subscription_active_plan\" graphql:\"subscription_active_plan\""
	SubscriptionActivePlanAggregate SubscriptionActivePlanAggregate "json:\"subscription_active_plan_aggregate\" graphql:\"subscription_active_plan_aggregate\""
	SubscriptionCustomer            []*SubscriptionCustomer         "json:\"subscription_customer\" graphql:\"subscription_customer\""
	SubscriptionCustomerAggregate   SubscriptionCustomerAggregate   "json:\"subscription_customer_aggregate\" graphql:\"subscription_customer_aggregate\""
	SubscriptionCustomerByPk        *SubscriptionCustomer           "json:\"subscription_customer_by_pk\" graphql:\"subscription_customer_by_pk\""
	SubscriptionEvent               []*SubscriptionEvent            "json:\"subscription_event\" graphql:\"subscription_event\""
	SubscriptionEventAggregate      SubscriptionEventAggregate      "json:\"subscription_event_aggregate\" graphql:\"subscription_event_aggregate\""
	SubscriptionEventByPk           *SubscriptionEvent              "json:\"subscription_event_by_pk\" graphql:\"subscription_event_by_pk\""
	SubscriptionPlan                []*SubscriptionPlan             "json:\"subscription_plan\" graphql:\"subscription_plan\""
	SubscriptionPlanAggregate       SubscriptionPlanAggregate       "json:\"subscription_plan_aggregate\" graphql:\"subscription_plan_aggregate\""
	SubscriptionPlanByPk            *SubscriptionPlan               "json:\"subscription_plan_by_pk\" graphql:\"subscription_plan_by_pk\""
	SubscriptionStatus              []*SubscriptionStatus           "json:\"subscription_status\" graphql:\"subscription_status\""
	SubscriptionStatusAggregate     SubscriptionStatusAggregate     "json:\"subscription_status_aggregate\" graphql:\"subscription_status_aggregate\""
	SubscriptionStatusByPk          *SubscriptionStatus             "json:\"subscription_status_by_pk\" graphql:\"subscription_status_by_pk\""
}

type RetrySubscriptionInput

type RetrySubscriptionInput struct {
	PaymentMethodID string `json:"payment_method_id"`
}

type RetrySubscriptionOutput

type RetrySubscriptionOutput struct {
	IDAccount string `json:"id_account"`
	IsActive  bool   `json:"is_active"`
}

type SaasAccount

type SaasAccount struct {
	CreatedAt        string  `json:"created_at"`
	ID               string  `json:"id"`
	IDAddressInvoice *string `json:"id_address_invoice,omitempty"`
	Name             string  `json:"name"`
	// An object relationship
	SaasAddress *SaasAddress `json:"saas_address,omitempty"`
	// An array relationship
	SaasAddresses []*SaasAddress `json:"saas_addresses,omitempty"`
	// An aggregate relationship
	SaasAddressesAggregate *SaasAddressAggregate `json:"saas_addresses_aggregate,omitempty"`
	// An array relationship
	SaasMemberships []*SaasMembership `json:"saas_memberships,omitempty"`
	// An aggregate relationship
	SaasMembershipsAggregate *SaasMembershipAggregate `json:"saas_memberships_aggregate,omitempty"`
	// An object relationship
	SubscriptionCustomer *SubscriptionCustomer `json:"subscription_customer,omitempty"`
	// An object relationship
	SubscriptionStatus *SubscriptionStatus `json:"subscription_status,omitempty"`
	UpdatedAt          string              `json:"updated_at"`
}

columns and relationships of "saas_account"

type SaasAccountAggregate

type SaasAccountAggregate struct {
	Aggregate *SaasAccountAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SaasAccount              `json:"nodes,omitempty"`
}

aggregated selection of "saas_account"

type SaasAccountAggregateFields

type SaasAccountAggregateFields struct {
	Count int64                 `json:"count"`
	Max   *SaasAccountMaxFields `json:"max,omitempty"`
	Min   *SaasAccountMinFields `json:"min,omitempty"`
}

aggregate fields of "saas_account"

type SaasAccountBoolExp

type SaasAccountBoolExp struct {
	And                  []*SaasAccountBoolExp        `json:"_and,omitempty"`
	Not                  *SaasAccountBoolExp          `json:"_not,omitempty"`
	Or                   []*SaasAccountBoolExp        `json:"_or,omitempty"`
	CreatedAt            *TimestamptzComparisonExp    `json:"created_at,omitempty"`
	ID                   *UUIDComparisonExp           `json:"id,omitempty"`
	IDAddressInvoice     *UUIDComparisonExp           `json:"id_address_invoice,omitempty"`
	Name                 *StringComparisonExp         `json:"name,omitempty"`
	SaasAddress          *SaasAddressBoolExp          `json:"saas_address,omitempty"`
	SaasAddresses        *SaasAddressBoolExp          `json:"saas_addresses,omitempty"`
	SaasMemberships      *SaasMembershipBoolExp       `json:"saas_memberships,omitempty"`
	SubscriptionCustomer *SubscriptionCustomerBoolExp `json:"subscription_customer,omitempty"`
	SubscriptionStatus   *SubscriptionStatusBoolExp   `json:"subscription_status,omitempty"`
	UpdatedAt            *TimestamptzComparisonExp    `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "saas_account". All fields are combined with a logical 'AND'.

type SaasAccountConstraint

type SaasAccountConstraint string

unique or primary key constraints on table "saas_account"

const (
	// unique or primary key constraint
	SaasAccountConstraintSaasAccountNameKey SaasAccountConstraint = "saas_account_name_key"
	// unique or primary key constraint
	SaasAccountConstraintSaasAccountPkey SaasAccountConstraint = "saas_account_pkey"
)

func (SaasAccountConstraint) IsValid

func (e SaasAccountConstraint) IsValid() bool

func (SaasAccountConstraint) MarshalGQL

func (e SaasAccountConstraint) MarshalGQL(w io.Writer)

func (SaasAccountConstraint) String

func (e SaasAccountConstraint) String() string

func (*SaasAccountConstraint) UnmarshalGQL

func (e *SaasAccountConstraint) UnmarshalGQL(v interface{}) error

type SaasAccountInsertInput

type SaasAccountInsertInput struct {
	CreatedAt            *string                                `json:"created_at,omitempty"`
	ID                   *string                                `json:"id,omitempty"`
	IDAddressInvoice     *string                                `json:"id_address_invoice,omitempty"`
	Name                 *string                                `json:"name,omitempty"`
	SaasAddress          *SaasAddressObjRelInsertInput          `json:"saas_address,omitempty"`
	SaasAddresses        *SaasAddressArrRelInsertInput          `json:"saas_addresses,omitempty"`
	SaasMemberships      *SaasMembershipArrRelInsertInput       `json:"saas_memberships,omitempty"`
	SubscriptionCustomer *SubscriptionCustomerObjRelInsertInput `json:"subscription_customer,omitempty"`
	SubscriptionStatus   *SubscriptionStatusObjRelInsertInput   `json:"subscription_status,omitempty"`
	UpdatedAt            *string                                `json:"updated_at,omitempty"`
}

input type for inserting data into table "saas_account"

type SaasAccountMaxFields

type SaasAccountMaxFields struct {
	CreatedAt        *string `json:"created_at,omitempty"`
	ID               *string `json:"id,omitempty"`
	IDAddressInvoice *string `json:"id_address_invoice,omitempty"`
	Name             *string `json:"name,omitempty"`
	UpdatedAt        *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SaasAccountMinFields

type SaasAccountMinFields struct {
	CreatedAt        *string `json:"created_at,omitempty"`
	ID               *string `json:"id,omitempty"`
	IDAddressInvoice *string `json:"id_address_invoice,omitempty"`
	Name             *string `json:"name,omitempty"`
	UpdatedAt        *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SaasAccountMutationResponse

type SaasAccountMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SaasAccount `json:"returning,omitempty"`
}

response of any mutation on the table "saas_account"

type SaasAccountObjRelInsertInput

type SaasAccountObjRelInsertInput struct {
	Data *SaasAccountInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SaasAccountOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting object relation for remote table "saas_account"

type SaasAccountOnConflict

type SaasAccountOnConflict struct {
	Constraint    SaasAccountConstraint     `json:"constraint"`
	UpdateColumns []SaasAccountUpdateColumn `json:"update_columns,omitempty"`
	Where         *SaasAccountBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "saas_account"

type SaasAccountOrderBy

type SaasAccountOrderBy struct {
	CreatedAt                *OrderBy                        `json:"created_at,omitempty"`
	ID                       *OrderBy                        `json:"id,omitempty"`
	IDAddressInvoice         *OrderBy                        `json:"id_address_invoice,omitempty"`
	Name                     *OrderBy                        `json:"name,omitempty"`
	SaasAddress              *SaasAddressOrderBy             `json:"saas_address,omitempty"`
	SaasAddressesAggregate   *SaasAddressAggregateOrderBy    `json:"saas_addresses_aggregate,omitempty"`
	SaasMembershipsAggregate *SaasMembershipAggregateOrderBy `json:"saas_memberships_aggregate,omitempty"`
	SubscriptionCustomer     *SubscriptionCustomerOrderBy    `json:"subscription_customer,omitempty"`
	SubscriptionStatus       *SubscriptionStatusOrderBy      `json:"subscription_status,omitempty"`
	UpdatedAt                *OrderBy                        `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "saas_account".

type SaasAccountPkColumnsInput

type SaasAccountPkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: saas_account

type SaasAccountSelectColumn

type SaasAccountSelectColumn string

select columns of table "saas_account"

const (
	// column name
	SaasAccountSelectColumnCreatedAt SaasAccountSelectColumn = "created_at"
	// column name
	SaasAccountSelectColumnID SaasAccountSelectColumn = "id"
	// column name
	SaasAccountSelectColumnIDAddressInvoice SaasAccountSelectColumn = "id_address_invoice"
	// column name
	SaasAccountSelectColumnName SaasAccountSelectColumn = "name"
	// column name
	SaasAccountSelectColumnUpdatedAt SaasAccountSelectColumn = "updated_at"
)

func (SaasAccountSelectColumn) IsValid

func (e SaasAccountSelectColumn) IsValid() bool

func (SaasAccountSelectColumn) MarshalGQL

func (e SaasAccountSelectColumn) MarshalGQL(w io.Writer)

func (SaasAccountSelectColumn) String

func (e SaasAccountSelectColumn) String() string

func (*SaasAccountSelectColumn) UnmarshalGQL

func (e *SaasAccountSelectColumn) UnmarshalGQL(v interface{}) error

type SaasAccountSetInput

type SaasAccountSetInput struct {
	CreatedAt        *string `json:"created_at,omitempty"`
	ID               *string `json:"id,omitempty"`
	IDAddressInvoice *string `json:"id_address_invoice,omitempty"`
	Name             *string `json:"name,omitempty"`
	UpdatedAt        *string `json:"updated_at,omitempty"`
}

input type for updating data in table "saas_account"

type SaasAccountUpdateColumn

type SaasAccountUpdateColumn string

update columns of table "saas_account"

const (
	// column name
	SaasAccountUpdateColumnCreatedAt SaasAccountUpdateColumn = "created_at"
	// column name
	SaasAccountUpdateColumnID SaasAccountUpdateColumn = "id"
	// column name
	SaasAccountUpdateColumnIDAddressInvoice SaasAccountUpdateColumn = "id_address_invoice"
	// column name
	SaasAccountUpdateColumnName SaasAccountUpdateColumn = "name"
	// column name
	SaasAccountUpdateColumnUpdatedAt SaasAccountUpdateColumn = "updated_at"
)

func (SaasAccountUpdateColumn) IsValid

func (e SaasAccountUpdateColumn) IsValid() bool

func (SaasAccountUpdateColumn) MarshalGQL

func (e SaasAccountUpdateColumn) MarshalGQL(w io.Writer)

func (SaasAccountUpdateColumn) String

func (e SaasAccountUpdateColumn) String() string

func (*SaasAccountUpdateColumn) UnmarshalGQL

func (e *SaasAccountUpdateColumn) UnmarshalGQL(v interface{}) error

type SaasAddress

type SaasAddress struct {
	Address    string  `json:"address"`
	City       string  `json:"city"`
	Country    string  `json:"country"`
	CreatedAt  string  `json:"created_at"`
	ID         string  `json:"id"`
	IDAccount  *string `json:"id_account,omitempty"`
	IDUser     string  `json:"id_user"`
	PostalCode string  `json:"postal_code"`
	// An object relationship
	SaasAccount *SaasAccount `json:"saas_account,omitempty"`
	UpdatedAt   string       `json:"updated_at"`
}

columns and relationships of "saas_address"

type SaasAddressAggregate

type SaasAddressAggregate struct {
	Aggregate *SaasAddressAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SaasAddress              `json:"nodes,omitempty"`
}

aggregated selection of "saas_address"

type SaasAddressAggregateFields

type SaasAddressAggregateFields struct {
	Count int64                 `json:"count"`
	Max   *SaasAddressMaxFields `json:"max,omitempty"`
	Min   *SaasAddressMinFields `json:"min,omitempty"`
}

aggregate fields of "saas_address"

type SaasAddressAggregateOrderBy

type SaasAddressAggregateOrderBy struct {
	Count *OrderBy               `json:"count,omitempty"`
	Max   *SaasAddressMaxOrderBy `json:"max,omitempty"`
	Min   *SaasAddressMinOrderBy `json:"min,omitempty"`
}

order by aggregate values of table "saas_address"

type SaasAddressArrRelInsertInput

type SaasAddressArrRelInsertInput struct {
	Data []*SaasAddressInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SaasAddressOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting array relation for remote table "saas_address"

type SaasAddressBoolExp

type SaasAddressBoolExp struct {
	And         []*SaasAddressBoolExp     `json:"_and,omitempty"`
	Not         *SaasAddressBoolExp       `json:"_not,omitempty"`
	Or          []*SaasAddressBoolExp     `json:"_or,omitempty"`
	Address     *StringComparisonExp      `json:"address,omitempty"`
	City        *StringComparisonExp      `json:"city,omitempty"`
	Country     *StringComparisonExp      `json:"country,omitempty"`
	CreatedAt   *TimestamptzComparisonExp `json:"created_at,omitempty"`
	ID          *UUIDComparisonExp        `json:"id,omitempty"`
	IDAccount   *UUIDComparisonExp        `json:"id_account,omitempty"`
	IDUser      *StringComparisonExp      `json:"id_user,omitempty"`
	PostalCode  *StringComparisonExp      `json:"postal_code,omitempty"`
	SaasAccount *SaasAccountBoolExp       `json:"saas_account,omitempty"`
	UpdatedAt   *TimestamptzComparisonExp `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "saas_address". All fields are combined with a logical 'AND'.

type SaasAddressConstraint

type SaasAddressConstraint string

unique or primary key constraints on table "saas_address"

const (
	// unique or primary key constraint
	SaasAddressConstraintSaasAddressPkey SaasAddressConstraint = "saas_address_pkey"
)

func (SaasAddressConstraint) IsValid

func (e SaasAddressConstraint) IsValid() bool

func (SaasAddressConstraint) MarshalGQL

func (e SaasAddressConstraint) MarshalGQL(w io.Writer)

func (SaasAddressConstraint) String

func (e SaasAddressConstraint) String() string

func (*SaasAddressConstraint) UnmarshalGQL

func (e *SaasAddressConstraint) UnmarshalGQL(v interface{}) error

type SaasAddressInsertInput

type SaasAddressInsertInput struct {
	Address     *string                       `json:"address,omitempty"`
	City        *string                       `json:"city,omitempty"`
	Country     *string                       `json:"country,omitempty"`
	CreatedAt   *string                       `json:"created_at,omitempty"`
	ID          *string                       `json:"id,omitempty"`
	IDAccount   *string                       `json:"id_account,omitempty"`
	IDUser      *string                       `json:"id_user,omitempty"`
	PostalCode  *string                       `json:"postal_code,omitempty"`
	SaasAccount *SaasAccountObjRelInsertInput `json:"saas_account,omitempty"`
	UpdatedAt   *string                       `json:"updated_at,omitempty"`
}

input type for inserting data into table "saas_address"

type SaasAddressMaxFields

type SaasAddressMaxFields struct {
	Address    *string `json:"address,omitempty"`
	City       *string `json:"city,omitempty"`
	Country    *string `json:"country,omitempty"`
	CreatedAt  *string `json:"created_at,omitempty"`
	ID         *string `json:"id,omitempty"`
	IDAccount  *string `json:"id_account,omitempty"`
	IDUser     *string `json:"id_user,omitempty"`
	PostalCode *string `json:"postal_code,omitempty"`
	UpdatedAt  *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SaasAddressMaxOrderBy

type SaasAddressMaxOrderBy struct {
	Address    *OrderBy `json:"address,omitempty"`
	City       *OrderBy `json:"city,omitempty"`
	Country    *OrderBy `json:"country,omitempty"`
	CreatedAt  *OrderBy `json:"created_at,omitempty"`
	ID         *OrderBy `json:"id,omitempty"`
	IDAccount  *OrderBy `json:"id_account,omitempty"`
	IDUser     *OrderBy `json:"id_user,omitempty"`
	PostalCode *OrderBy `json:"postal_code,omitempty"`
	UpdatedAt  *OrderBy `json:"updated_at,omitempty"`
}

order by max() on columns of table "saas_address"

type SaasAddressMinFields

type SaasAddressMinFields struct {
	Address    *string `json:"address,omitempty"`
	City       *string `json:"city,omitempty"`
	Country    *string `json:"country,omitempty"`
	CreatedAt  *string `json:"created_at,omitempty"`
	ID         *string `json:"id,omitempty"`
	IDAccount  *string `json:"id_account,omitempty"`
	IDUser     *string `json:"id_user,omitempty"`
	PostalCode *string `json:"postal_code,omitempty"`
	UpdatedAt  *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SaasAddressMinOrderBy

type SaasAddressMinOrderBy struct {
	Address    *OrderBy `json:"address,omitempty"`
	City       *OrderBy `json:"city,omitempty"`
	Country    *OrderBy `json:"country,omitempty"`
	CreatedAt  *OrderBy `json:"created_at,omitempty"`
	ID         *OrderBy `json:"id,omitempty"`
	IDAccount  *OrderBy `json:"id_account,omitempty"`
	IDUser     *OrderBy `json:"id_user,omitempty"`
	PostalCode *OrderBy `json:"postal_code,omitempty"`
	UpdatedAt  *OrderBy `json:"updated_at,omitempty"`
}

order by min() on columns of table "saas_address"

type SaasAddressMutationResponse

type SaasAddressMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SaasAddress `json:"returning,omitempty"`
}

response of any mutation on the table "saas_address"

type SaasAddressObjRelInsertInput

type SaasAddressObjRelInsertInput struct {
	Data *SaasAddressInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SaasAddressOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting object relation for remote table "saas_address"

type SaasAddressOnConflict

type SaasAddressOnConflict struct {
	Constraint    SaasAddressConstraint     `json:"constraint"`
	UpdateColumns []SaasAddressUpdateColumn `json:"update_columns,omitempty"`
	Where         *SaasAddressBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "saas_address"

type SaasAddressOrderBy

type SaasAddressOrderBy struct {
	Address     *OrderBy            `json:"address,omitempty"`
	City        *OrderBy            `json:"city,omitempty"`
	Country     *OrderBy            `json:"country,omitempty"`
	CreatedAt   *OrderBy            `json:"created_at,omitempty"`
	ID          *OrderBy            `json:"id,omitempty"`
	IDAccount   *OrderBy            `json:"id_account,omitempty"`
	IDUser      *OrderBy            `json:"id_user,omitempty"`
	PostalCode  *OrderBy            `json:"postal_code,omitempty"`
	SaasAccount *SaasAccountOrderBy `json:"saas_account,omitempty"`
	UpdatedAt   *OrderBy            `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "saas_address".

type SaasAddressPkColumnsInput

type SaasAddressPkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: saas_address

type SaasAddressSelectColumn

type SaasAddressSelectColumn string

select columns of table "saas_address"

const (
	// column name
	SaasAddressSelectColumnAddress SaasAddressSelectColumn = "address"
	// column name
	SaasAddressSelectColumnCity SaasAddressSelectColumn = "city"
	// column name
	SaasAddressSelectColumnCountry SaasAddressSelectColumn = "country"
	// column name
	SaasAddressSelectColumnCreatedAt SaasAddressSelectColumn = "created_at"
	// column name
	SaasAddressSelectColumnID SaasAddressSelectColumn = "id"
	// column name
	SaasAddressSelectColumnIDAccount SaasAddressSelectColumn = "id_account"
	// column name
	SaasAddressSelectColumnIDUser SaasAddressSelectColumn = "id_user"
	// column name
	SaasAddressSelectColumnPostalCode SaasAddressSelectColumn = "postal_code"
	// column name
	SaasAddressSelectColumnUpdatedAt SaasAddressSelectColumn = "updated_at"
)

func (SaasAddressSelectColumn) IsValid

func (e SaasAddressSelectColumn) IsValid() bool

func (SaasAddressSelectColumn) MarshalGQL

func (e SaasAddressSelectColumn) MarshalGQL(w io.Writer)

func (SaasAddressSelectColumn) String

func (e SaasAddressSelectColumn) String() string

func (*SaasAddressSelectColumn) UnmarshalGQL

func (e *SaasAddressSelectColumn) UnmarshalGQL(v interface{}) error

type SaasAddressSetInput

type SaasAddressSetInput struct {
	Address    *string `json:"address,omitempty"`
	City       *string `json:"city,omitempty"`
	Country    *string `json:"country,omitempty"`
	CreatedAt  *string `json:"created_at,omitempty"`
	ID         *string `json:"id,omitempty"`
	IDAccount  *string `json:"id_account,omitempty"`
	IDUser     *string `json:"id_user,omitempty"`
	PostalCode *string `json:"postal_code,omitempty"`
	UpdatedAt  *string `json:"updated_at,omitempty"`
}

input type for updating data in table "saas_address"

type SaasAddressUpdateColumn

type SaasAddressUpdateColumn string

update columns of table "saas_address"

const (
	// column name
	SaasAddressUpdateColumnAddress SaasAddressUpdateColumn = "address"
	// column name
	SaasAddressUpdateColumnCity SaasAddressUpdateColumn = "city"
	// column name
	SaasAddressUpdateColumnCountry SaasAddressUpdateColumn = "country"
	// column name
	SaasAddressUpdateColumnCreatedAt SaasAddressUpdateColumn = "created_at"
	// column name
	SaasAddressUpdateColumnID SaasAddressUpdateColumn = "id"
	// column name
	SaasAddressUpdateColumnIDAccount SaasAddressUpdateColumn = "id_account"
	// column name
	SaasAddressUpdateColumnIDUser SaasAddressUpdateColumn = "id_user"
	// column name
	SaasAddressUpdateColumnPostalCode SaasAddressUpdateColumn = "postal_code"
	// column name
	SaasAddressUpdateColumnUpdatedAt SaasAddressUpdateColumn = "updated_at"
)

func (SaasAddressUpdateColumn) IsValid

func (e SaasAddressUpdateColumn) IsValid() bool

func (SaasAddressUpdateColumn) MarshalGQL

func (e SaasAddressUpdateColumn) MarshalGQL(w io.Writer)

func (SaasAddressUpdateColumn) String

func (e SaasAddressUpdateColumn) String() string

func (*SaasAddressUpdateColumn) UnmarshalGQL

func (e *SaasAddressUpdateColumn) UnmarshalGQL(v interface{}) error

type SaasGetCurrentAccountInput

type SaasGetCurrentAccountInput struct {
	IDUser string `json:"id_user"`
}

type SaasGetCurrentAccountOutput

type SaasGetCurrentAccountOutput struct {
	IDAccount string `json:"id_account"`
	IDRole    string `json:"id_role"`
}

type SaasMembership

type SaasMembership struct {
	CreatedAt string `json:"created_at"`
	ID        string `json:"id"`
	IDAccount string `json:"id_account"`
	IDRole    string `json:"id_role"`
	IDUser    string `json:"id_user"`
	// An object relationship
	SaasAccount *SaasAccount `json:"saas_account,omitempty"`
	// An object relationship
	SaasRole   *SaasRole `json:"saas_role,omitempty"`
	SelectedAt *string   `json:"selected_at,omitempty"`
	UpdatedAt  string    `json:"updated_at"`
}

columns and relationships of "saas_membership"

type SaasMembershipAggregate

type SaasMembershipAggregate struct {
	Aggregate *SaasMembershipAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SaasMembership              `json:"nodes,omitempty"`
}

aggregated selection of "saas_membership"

type SaasMembershipAggregateFields

type SaasMembershipAggregateFields struct {
	Count int64                    `json:"count"`
	Max   *SaasMembershipMaxFields `json:"max,omitempty"`
	Min   *SaasMembershipMinFields `json:"min,omitempty"`
}

aggregate fields of "saas_membership"

type SaasMembershipAggregateOrderBy

type SaasMembershipAggregateOrderBy struct {
	Count *OrderBy                  `json:"count,omitempty"`
	Max   *SaasMembershipMaxOrderBy `json:"max,omitempty"`
	Min   *SaasMembershipMinOrderBy `json:"min,omitempty"`
}

order by aggregate values of table "saas_membership"

type SaasMembershipArrRelInsertInput

type SaasMembershipArrRelInsertInput struct {
	Data []*SaasMembershipInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SaasMembershipOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting array relation for remote table "saas_membership"

type SaasMembershipBoolExp

type SaasMembershipBoolExp struct {
	And         []*SaasMembershipBoolExp  `json:"_and,omitempty"`
	Not         *SaasMembershipBoolExp    `json:"_not,omitempty"`
	Or          []*SaasMembershipBoolExp  `json:"_or,omitempty"`
	CreatedAt   *TimestamptzComparisonExp `json:"created_at,omitempty"`
	ID          *UUIDComparisonExp        `json:"id,omitempty"`
	IDAccount   *UUIDComparisonExp        `json:"id_account,omitempty"`
	IDRole      *StringComparisonExp      `json:"id_role,omitempty"`
	IDUser      *StringComparisonExp      `json:"id_user,omitempty"`
	SaasAccount *SaasAccountBoolExp       `json:"saas_account,omitempty"`
	SaasRole    *SaasRoleBoolExp          `json:"saas_role,omitempty"`
	SelectedAt  *TimestamptzComparisonExp `json:"selected_at,omitempty"`
	UpdatedAt   *TimestamptzComparisonExp `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "saas_membership". All fields are combined with a logical 'AND'.

type SaasMembershipConstraint

type SaasMembershipConstraint string

unique or primary key constraints on table "saas_membership"

const (
	// unique or primary key constraint
	SaasMembershipConstraintSaasMembershipIDAccountIDUserKey SaasMembershipConstraint = "saas_membership_id_account_id_user_key"
	// unique or primary key constraint
	SaasMembershipConstraintSaasMembershipPkey SaasMembershipConstraint = "saas_membership_pkey"
)

func (SaasMembershipConstraint) IsValid

func (e SaasMembershipConstraint) IsValid() bool

func (SaasMembershipConstraint) MarshalGQL

func (e SaasMembershipConstraint) MarshalGQL(w io.Writer)

func (SaasMembershipConstraint) String

func (e SaasMembershipConstraint) String() string

func (*SaasMembershipConstraint) UnmarshalGQL

func (e *SaasMembershipConstraint) UnmarshalGQL(v interface{}) error

type SaasMembershipInsertInput

type SaasMembershipInsertInput struct {
	CreatedAt   *string                       `json:"created_at,omitempty"`
	ID          *string                       `json:"id,omitempty"`
	IDAccount   *string                       `json:"id_account,omitempty"`
	IDRole      *string                       `json:"id_role,omitempty"`
	IDUser      *string                       `json:"id_user,omitempty"`
	SaasAccount *SaasAccountObjRelInsertInput `json:"saas_account,omitempty"`
	SaasRole    *SaasRoleObjRelInsertInput    `json:"saas_role,omitempty"`
	SelectedAt  *string                       `json:"selected_at,omitempty"`
	UpdatedAt   *string                       `json:"updated_at,omitempty"`
}

input type for inserting data into table "saas_membership"

type SaasMembershipMaxFields

type SaasMembershipMaxFields struct {
	CreatedAt  *string `json:"created_at,omitempty"`
	ID         *string `json:"id,omitempty"`
	IDAccount  *string `json:"id_account,omitempty"`
	IDRole     *string `json:"id_role,omitempty"`
	IDUser     *string `json:"id_user,omitempty"`
	SelectedAt *string `json:"selected_at,omitempty"`
	UpdatedAt  *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SaasMembershipMaxOrderBy

type SaasMembershipMaxOrderBy struct {
	CreatedAt  *OrderBy `json:"created_at,omitempty"`
	ID         *OrderBy `json:"id,omitempty"`
	IDAccount  *OrderBy `json:"id_account,omitempty"`
	IDRole     *OrderBy `json:"id_role,omitempty"`
	IDUser     *OrderBy `json:"id_user,omitempty"`
	SelectedAt *OrderBy `json:"selected_at,omitempty"`
	UpdatedAt  *OrderBy `json:"updated_at,omitempty"`
}

order by max() on columns of table "saas_membership"

type SaasMembershipMinFields

type SaasMembershipMinFields struct {
	CreatedAt  *string `json:"created_at,omitempty"`
	ID         *string `json:"id,omitempty"`
	IDAccount  *string `json:"id_account,omitempty"`
	IDRole     *string `json:"id_role,omitempty"`
	IDUser     *string `json:"id_user,omitempty"`
	SelectedAt *string `json:"selected_at,omitempty"`
	UpdatedAt  *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SaasMembershipMinOrderBy

type SaasMembershipMinOrderBy struct {
	CreatedAt  *OrderBy `json:"created_at,omitempty"`
	ID         *OrderBy `json:"id,omitempty"`
	IDAccount  *OrderBy `json:"id_account,omitempty"`
	IDRole     *OrderBy `json:"id_role,omitempty"`
	IDUser     *OrderBy `json:"id_user,omitempty"`
	SelectedAt *OrderBy `json:"selected_at,omitempty"`
	UpdatedAt  *OrderBy `json:"updated_at,omitempty"`
}

order by min() on columns of table "saas_membership"

type SaasMembershipMutationResponse

type SaasMembershipMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SaasMembership `json:"returning,omitempty"`
}

response of any mutation on the table "saas_membership"

type SaasMembershipOnConflict

type SaasMembershipOnConflict struct {
	Constraint    SaasMembershipConstraint     `json:"constraint"`
	UpdateColumns []SaasMembershipUpdateColumn `json:"update_columns,omitempty"`
	Where         *SaasMembershipBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "saas_membership"

type SaasMembershipOrderBy

type SaasMembershipOrderBy struct {
	CreatedAt   *OrderBy            `json:"created_at,omitempty"`
	ID          *OrderBy            `json:"id,omitempty"`
	IDAccount   *OrderBy            `json:"id_account,omitempty"`
	IDRole      *OrderBy            `json:"id_role,omitempty"`
	IDUser      *OrderBy            `json:"id_user,omitempty"`
	SaasAccount *SaasAccountOrderBy `json:"saas_account,omitempty"`
	SaasRole    *SaasRoleOrderBy    `json:"saas_role,omitempty"`
	SelectedAt  *OrderBy            `json:"selected_at,omitempty"`
	UpdatedAt   *OrderBy            `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "saas_membership".

type SaasMembershipPkColumnsInput

type SaasMembershipPkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: saas_membership

type SaasMembershipSelectColumn

type SaasMembershipSelectColumn string

select columns of table "saas_membership"

const (
	// column name
	SaasMembershipSelectColumnCreatedAt SaasMembershipSelectColumn = "created_at"
	// column name
	SaasMembershipSelectColumnID SaasMembershipSelectColumn = "id"
	// column name
	SaasMembershipSelectColumnIDAccount SaasMembershipSelectColumn = "id_account"
	// column name
	SaasMembershipSelectColumnIDRole SaasMembershipSelectColumn = "id_role"
	// column name
	SaasMembershipSelectColumnIDUser SaasMembershipSelectColumn = "id_user"
	// column name
	SaasMembershipSelectColumnSelectedAt SaasMembershipSelectColumn = "selected_at"
	// column name
	SaasMembershipSelectColumnUpdatedAt SaasMembershipSelectColumn = "updated_at"
)

func (SaasMembershipSelectColumn) IsValid

func (e SaasMembershipSelectColumn) IsValid() bool

func (SaasMembershipSelectColumn) MarshalGQL

func (e SaasMembershipSelectColumn) MarshalGQL(w io.Writer)

func (SaasMembershipSelectColumn) String

func (*SaasMembershipSelectColumn) UnmarshalGQL

func (e *SaasMembershipSelectColumn) UnmarshalGQL(v interface{}) error

type SaasMembershipSetInput

type SaasMembershipSetInput struct {
	CreatedAt  *string `json:"created_at,omitempty"`
	ID         *string `json:"id,omitempty"`
	IDAccount  *string `json:"id_account,omitempty"`
	IDRole     *string `json:"id_role,omitempty"`
	IDUser     *string `json:"id_user,omitempty"`
	SelectedAt *string `json:"selected_at,omitempty"`
	UpdatedAt  *string `json:"updated_at,omitempty"`
}

input type for updating data in table "saas_membership"

type SaasMembershipUpdateColumn

type SaasMembershipUpdateColumn string

update columns of table "saas_membership"

const (
	// column name
	SaasMembershipUpdateColumnCreatedAt SaasMembershipUpdateColumn = "created_at"
	// column name
	SaasMembershipUpdateColumnID SaasMembershipUpdateColumn = "id"
	// column name
	SaasMembershipUpdateColumnIDAccount SaasMembershipUpdateColumn = "id_account"
	// column name
	SaasMembershipUpdateColumnIDRole SaasMembershipUpdateColumn = "id_role"
	// column name
	SaasMembershipUpdateColumnIDUser SaasMembershipUpdateColumn = "id_user"
	// column name
	SaasMembershipUpdateColumnSelectedAt SaasMembershipUpdateColumn = "selected_at"
	// column name
	SaasMembershipUpdateColumnUpdatedAt SaasMembershipUpdateColumn = "updated_at"
)

func (SaasMembershipUpdateColumn) IsValid

func (e SaasMembershipUpdateColumn) IsValid() bool

func (SaasMembershipUpdateColumn) MarshalGQL

func (e SaasMembershipUpdateColumn) MarshalGQL(w io.Writer)

func (SaasMembershipUpdateColumn) String

func (*SaasMembershipUpdateColumn) UnmarshalGQL

func (e *SaasMembershipUpdateColumn) UnmarshalGQL(v interface{}) error

type SaasRole

type SaasRole struct {
	CreatedAt   string `json:"created_at"`
	Description string `json:"description"`
	ID          string `json:"id"`
	// An array relationship
	SaasMemberships []*SaasMembership `json:"saas_memberships,omitempty"`
	// An aggregate relationship
	SaasMembershipsAggregate *SaasMembershipAggregate `json:"saas_memberships_aggregate,omitempty"`
	UpdatedAt                string                   `json:"updated_at"`
}

columns and relationships of "saas_role"

type SaasRoleAggregate

type SaasRoleAggregate struct {
	Aggregate *SaasRoleAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SaasRole              `json:"nodes,omitempty"`
}

aggregated selection of "saas_role"

type SaasRoleAggregateFields

type SaasRoleAggregateFields struct {
	Count int64              `json:"count"`
	Max   *SaasRoleMaxFields `json:"max,omitempty"`
	Min   *SaasRoleMinFields `json:"min,omitempty"`
}

aggregate fields of "saas_role"

type SaasRoleBoolExp

type SaasRoleBoolExp struct {
	And             []*SaasRoleBoolExp        `json:"_and,omitempty"`
	Not             *SaasRoleBoolExp          `json:"_not,omitempty"`
	Or              []*SaasRoleBoolExp        `json:"_or,omitempty"`
	CreatedAt       *TimestamptzComparisonExp `json:"created_at,omitempty"`
	Description     *StringComparisonExp      `json:"description,omitempty"`
	ID              *StringComparisonExp      `json:"id,omitempty"`
	SaasMemberships *SaasMembershipBoolExp    `json:"saas_memberships,omitempty"`
	UpdatedAt       *TimestamptzComparisonExp `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "saas_role". All fields are combined with a logical 'AND'.

type SaasRoleConstraint

type SaasRoleConstraint string

unique or primary key constraints on table "saas_role"

const (
	// unique or primary key constraint
	SaasRoleConstraintSaasRolePkey SaasRoleConstraint = "saas_role_pkey"
)

func (SaasRoleConstraint) IsValid

func (e SaasRoleConstraint) IsValid() bool

func (SaasRoleConstraint) MarshalGQL

func (e SaasRoleConstraint) MarshalGQL(w io.Writer)

func (SaasRoleConstraint) String

func (e SaasRoleConstraint) String() string

func (*SaasRoleConstraint) UnmarshalGQL

func (e *SaasRoleConstraint) UnmarshalGQL(v interface{}) error

type SaasRoleInsertInput

type SaasRoleInsertInput struct {
	CreatedAt       *string                          `json:"created_at,omitempty"`
	Description     *string                          `json:"description,omitempty"`
	ID              *string                          `json:"id,omitempty"`
	SaasMemberships *SaasMembershipArrRelInsertInput `json:"saas_memberships,omitempty"`
	UpdatedAt       *string                          `json:"updated_at,omitempty"`
}

input type for inserting data into table "saas_role"

type SaasRoleMaxFields

type SaasRoleMaxFields struct {
	CreatedAt   *string `json:"created_at,omitempty"`
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	UpdatedAt   *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SaasRoleMinFields

type SaasRoleMinFields struct {
	CreatedAt   *string `json:"created_at,omitempty"`
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	UpdatedAt   *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SaasRoleMutationResponse

type SaasRoleMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SaasRole `json:"returning,omitempty"`
}

response of any mutation on the table "saas_role"

type SaasRoleObjRelInsertInput

type SaasRoleObjRelInsertInput struct {
	Data *SaasRoleInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SaasRoleOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting object relation for remote table "saas_role"

type SaasRoleOnConflict

type SaasRoleOnConflict struct {
	Constraint    SaasRoleConstraint     `json:"constraint"`
	UpdateColumns []SaasRoleUpdateColumn `json:"update_columns,omitempty"`
	Where         *SaasRoleBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "saas_role"

type SaasRoleOrderBy

type SaasRoleOrderBy struct {
	CreatedAt                *OrderBy                        `json:"created_at,omitempty"`
	Description              *OrderBy                        `json:"description,omitempty"`
	ID                       *OrderBy                        `json:"id,omitempty"`
	SaasMembershipsAggregate *SaasMembershipAggregateOrderBy `json:"saas_memberships_aggregate,omitempty"`
	UpdatedAt                *OrderBy                        `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "saas_role".

type SaasRolePkColumnsInput

type SaasRolePkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: saas_role

type SaasRoleSelectColumn

type SaasRoleSelectColumn string

select columns of table "saas_role"

const (
	// column name
	SaasRoleSelectColumnCreatedAt SaasRoleSelectColumn = "created_at"
	// column name
	SaasRoleSelectColumnDescription SaasRoleSelectColumn = "description"
	// column name
	SaasRoleSelectColumnID SaasRoleSelectColumn = "id"
	// column name
	SaasRoleSelectColumnUpdatedAt SaasRoleSelectColumn = "updated_at"
)

func (SaasRoleSelectColumn) IsValid

func (e SaasRoleSelectColumn) IsValid() bool

func (SaasRoleSelectColumn) MarshalGQL

func (e SaasRoleSelectColumn) MarshalGQL(w io.Writer)

func (SaasRoleSelectColumn) String

func (e SaasRoleSelectColumn) String() string

func (*SaasRoleSelectColumn) UnmarshalGQL

func (e *SaasRoleSelectColumn) UnmarshalGQL(v interface{}) error

type SaasRoleSetInput

type SaasRoleSetInput struct {
	CreatedAt   *string `json:"created_at,omitempty"`
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	UpdatedAt   *string `json:"updated_at,omitempty"`
}

input type for updating data in table "saas_role"

type SaasRoleUpdateColumn

type SaasRoleUpdateColumn string

update columns of table "saas_role"

const (
	// column name
	SaasRoleUpdateColumnCreatedAt SaasRoleUpdateColumn = "created_at"
	// column name
	SaasRoleUpdateColumnDescription SaasRoleUpdateColumn = "description"
	// column name
	SaasRoleUpdateColumnID SaasRoleUpdateColumn = "id"
	// column name
	SaasRoleUpdateColumnUpdatedAt SaasRoleUpdateColumn = "updated_at"
)

func (SaasRoleUpdateColumn) IsValid

func (e SaasRoleUpdateColumn) IsValid() bool

func (SaasRoleUpdateColumn) MarshalGQL

func (e SaasRoleUpdateColumn) MarshalGQL(w io.Writer)

func (SaasRoleUpdateColumn) String

func (e SaasRoleUpdateColumn) String() string

func (*SaasRoleUpdateColumn) UnmarshalGQL

func (e *SaasRoleUpdateColumn) UnmarshalGQL(v interface{}) error

type SaasSetCurrentAccountInput

type SaasSetCurrentAccountInput struct {
	IDAccount string `json:"id_account"`
}

type SaasSetCurrentAccountOutput

type SaasSetCurrentAccountOutput struct {
	IDAccount string `json:"id_account"`
}

type SaasUserAccount

type SaasUserAccount struct {
	CreatedAt *string `json:"created_at,omitempty"`
	ID        *string `json:"id,omitempty"`
	IDUser    *string `json:"id_user,omitempty"`
	Name      *string `json:"name,omitempty"`
	UpdatedAt *string `json:"updated_at,omitempty"`
}

columns and relationships of "saas_user_account"

type SaasUserAccountAggregate

type SaasUserAccountAggregate struct {
	Aggregate *SaasUserAccountAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SaasUserAccount              `json:"nodes,omitempty"`
}

aggregated selection of "saas_user_account"

type SaasUserAccountAggregateFields

type SaasUserAccountAggregateFields struct {
	Count int64                     `json:"count"`
	Max   *SaasUserAccountMaxFields `json:"max,omitempty"`
	Min   *SaasUserAccountMinFields `json:"min,omitempty"`
}

aggregate fields of "saas_user_account"

type SaasUserAccountBoolExp

type SaasUserAccountBoolExp struct {
	And       []*SaasUserAccountBoolExp `json:"_and,omitempty"`
	Not       *SaasUserAccountBoolExp   `json:"_not,omitempty"`
	Or        []*SaasUserAccountBoolExp `json:"_or,omitempty"`
	CreatedAt *TimestamptzComparisonExp `json:"created_at,omitempty"`
	ID        *UUIDComparisonExp        `json:"id,omitempty"`
	IDUser    *StringComparisonExp      `json:"id_user,omitempty"`
	Name      *StringComparisonExp      `json:"name,omitempty"`
	UpdatedAt *TimestamptzComparisonExp `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "saas_user_account". All fields are combined with a logical 'AND'.

type SaasUserAccountMaxFields

type SaasUserAccountMaxFields struct {
	CreatedAt *string `json:"created_at,omitempty"`
	ID        *string `json:"id,omitempty"`
	IDUser    *string `json:"id_user,omitempty"`
	Name      *string `json:"name,omitempty"`
	UpdatedAt *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SaasUserAccountMinFields

type SaasUserAccountMinFields struct {
	CreatedAt *string `json:"created_at,omitempty"`
	ID        *string `json:"id,omitempty"`
	IDUser    *string `json:"id_user,omitempty"`
	Name      *string `json:"name,omitempty"`
	UpdatedAt *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SaasUserAccountOrderBy

type SaasUserAccountOrderBy struct {
	CreatedAt *OrderBy `json:"created_at,omitempty"`
	ID        *OrderBy `json:"id,omitempty"`
	IDUser    *OrderBy `json:"id_user,omitempty"`
	Name      *OrderBy `json:"name,omitempty"`
	UpdatedAt *OrderBy `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "saas_user_account".

type SaasUserAccountSelectColumn

type SaasUserAccountSelectColumn string

select columns of table "saas_user_account"

const (
	// column name
	SaasUserAccountSelectColumnCreatedAt SaasUserAccountSelectColumn = "created_at"
	// column name
	SaasUserAccountSelectColumnID SaasUserAccountSelectColumn = "id"
	// column name
	SaasUserAccountSelectColumnIDUser SaasUserAccountSelectColumn = "id_user"
	// column name
	SaasUserAccountSelectColumnName SaasUserAccountSelectColumn = "name"
	// column name
	SaasUserAccountSelectColumnUpdatedAt SaasUserAccountSelectColumn = "updated_at"
)

func (SaasUserAccountSelectColumn) IsValid

func (e SaasUserAccountSelectColumn) IsValid() bool

func (SaasUserAccountSelectColumn) MarshalGQL

func (e SaasUserAccountSelectColumn) MarshalGQL(w io.Writer)

func (SaasUserAccountSelectColumn) String

func (*SaasUserAccountSelectColumn) UnmarshalGQL

func (e *SaasUserAccountSelectColumn) UnmarshalGQL(v interface{}) error

type Service

type Service interface {
	CreateSubscriptionCustomer(ctx context.Context, name string, idPlan string, idUser string, stripeCustomer string, status string, idRole string, interceptors ...clientv2.RequestInterceptor) (*MutationCreateSubscriptionCustomer, error)
	GetAccountInfoForCreatingSubscription(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*QueryGetAccountInfoForCreatingSubscription, error)
	SetSubscriptioStatus(ctx context.Context, status string, isActive bool, accountID string, stripeSubscriptionID string, idPlan string, interceptors ...clientv2.RequestInterceptor) (*MutationSetSubscriptioStatus, error)
	GetStripeSubscription(ctx context.Context, idAccount string, interceptors ...clientv2.RequestInterceptor) (*QueryGetStripeSubscription, error)
	AddSubscriptionEvent(ctx context.Context, typeArg string, data map[string]interface{}, interceptors ...clientv2.RequestInterceptor) (*MutationAddSubscriptionEvent, error)
	GetRoleForUserAndAccount(ctx context.Context, user string, account string, interceptors ...clientv2.RequestInterceptor) (*QueryGetRoleForUserAndAccount, error)
	GetAccountFromSubscription(ctx context.Context, stripeSubscriptionID string, interceptors ...clientv2.RequestInterceptor) (*QueryGetAccountFromSubscription, error)
	GetStripePlanFromPlan(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*QueryGetStripePlanFromPlan, error)
	GetPlanFromStripePlan(ctx context.Context, stripeCode string, interceptors ...clientv2.RequestInterceptor) (*QueryGetPlanFromStripePlan, error)
	SetAccountForUser(ctx context.Context, idAccount string, idUser string, interceptors ...clientv2.RequestInterceptor) (*MutationSetAccountForUser, error)
	GetCurrentAccount(ctx context.Context, userID string, interceptors ...clientv2.RequestInterceptor) (*QueryGetCurrentAccount, error)
}

func NewServiceMock

func NewServiceMock() Service

type ServiceMock

type ServiceMock struct {
	mock.Mock
}

func (*ServiceMock) AddSubscriptionEvent

func (m *ServiceMock) AddSubscriptionEvent(ctx context.Context, typeArg string, data map[string]interface{}, interceptors ...clientv2.RequestInterceptor) (*MutationAddSubscriptionEvent, error)

func (*ServiceMock) CreateSubscriptionCustomer

func (m *ServiceMock) CreateSubscriptionCustomer(ctx context.Context, name string, idPlan string, idUser string, stripeCustomer string, status string, idRole string, interceptors ...clientv2.RequestInterceptor) (*MutationCreateSubscriptionCustomer, error)

func (*ServiceMock) GetAccountFromSubscription

func (m *ServiceMock) GetAccountFromSubscription(ctx context.Context, stripeSubscriptionID string, interceptors ...clientv2.RequestInterceptor) (*QueryGetAccountFromSubscription, error)

func (*ServiceMock) GetAccountInfoForCreatingSubscription

func (m *ServiceMock) GetAccountInfoForCreatingSubscription(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*QueryGetAccountInfoForCreatingSubscription, error)

func (*ServiceMock) GetCurrentAccount

func (m *ServiceMock) GetCurrentAccount(ctx context.Context, userID string, interceptors ...clientv2.RequestInterceptor) (*QueryGetCurrentAccount, error)

func (*ServiceMock) GetPlanFromStripePlan

func (m *ServiceMock) GetPlanFromStripePlan(ctx context.Context, stripeCode string, interceptors ...clientv2.RequestInterceptor) (*QueryGetPlanFromStripePlan, error)

func (*ServiceMock) GetRoleForUserAndAccount

func (m *ServiceMock) GetRoleForUserAndAccount(ctx context.Context, user string, account string, interceptors ...clientv2.RequestInterceptor) (*QueryGetRoleForUserAndAccount, error)

func (*ServiceMock) GetStripePlanFromPlan

func (m *ServiceMock) GetStripePlanFromPlan(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*QueryGetStripePlanFromPlan, error)

func (*ServiceMock) GetStripeSubscription

func (m *ServiceMock) GetStripeSubscription(ctx context.Context, idAccount string, interceptors ...clientv2.RequestInterceptor) (*QueryGetStripeSubscription, error)

func (*ServiceMock) SetAccountForUser

func (m *ServiceMock) SetAccountForUser(ctx context.Context, idAccount string, idUser string, interceptors ...clientv2.RequestInterceptor) (*MutationSetAccountForUser, error)

func (*ServiceMock) SetSubscriptioStatus

func (m *ServiceMock) SetSubscriptioStatus(ctx context.Context, status string, isActive bool, accountID string, stripeSubscriptionID string, idPlan string, interceptors ...clientv2.RequestInterceptor) (*MutationSetSubscriptioStatus, error)

type StringComparisonExp

type StringComparisonExp struct {
	Eq  *string `json:"_eq,omitempty"`
	Gt  *string `json:"_gt,omitempty"`
	Gte *string `json:"_gte,omitempty"`
	// does the column match the given case-insensitive pattern
	Ilike *string  `json:"_ilike,omitempty"`
	In    []string `json:"_in,omitempty"`
	// does the column match the given POSIX regular expression, case insensitive
	Iregex *string `json:"_iregex,omitempty"`
	IsNull *bool   `json:"_is_null,omitempty"`
	// does the column match the given pattern
	Like *string `json:"_like,omitempty"`
	Lt   *string `json:"_lt,omitempty"`
	Lte  *string `json:"_lte,omitempty"`
	Neq  *string `json:"_neq,omitempty"`
	// does the column NOT match the given case-insensitive pattern
	Nilike *string  `json:"_nilike,omitempty"`
	Nin    []string `json:"_nin,omitempty"`
	// does the column NOT match the given POSIX regular expression, case insensitive
	Niregex *string `json:"_niregex,omitempty"`
	// does the column NOT match the given pattern
	Nlike *string `json:"_nlike,omitempty"`
	// does the column NOT match the given POSIX regular expression, case sensitive
	Nregex *string `json:"_nregex,omitempty"`
	// does the column NOT match the given SQL regular expression
	Nsimilar *string `json:"_nsimilar,omitempty"`
	// does the column match the given POSIX regular expression, case sensitive
	Regex *string `json:"_regex,omitempty"`
	// does the column match the given SQL regular expression
	Similar *string `json:"_similar,omitempty"`
}

Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'.

type SubscriptionActivePlan

type SubscriptionActivePlan struct {
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	Price       *string `json:"price,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
}

columns and relationships of "subscription_active_plan"

type SubscriptionActivePlanAggregate

type SubscriptionActivePlanAggregate struct {
	Aggregate *SubscriptionActivePlanAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SubscriptionActivePlan              `json:"nodes,omitempty"`
}

aggregated selection of "subscription_active_plan"

type SubscriptionActivePlanAggregateFields

type SubscriptionActivePlanAggregateFields struct {
	Avg        *SubscriptionActivePlanAvgFields        `json:"avg,omitempty"`
	Count      int64                                   `json:"count"`
	Max        *SubscriptionActivePlanMaxFields        `json:"max,omitempty"`
	Min        *SubscriptionActivePlanMinFields        `json:"min,omitempty"`
	Stddev     *SubscriptionActivePlanStddevFields     `json:"stddev,omitempty"`
	StddevPop  *SubscriptionActivePlanStddevPopFields  `json:"stddev_pop,omitempty"`
	StddevSamp *SubscriptionActivePlanStddevSampFields `json:"stddev_samp,omitempty"`
	Sum        *SubscriptionActivePlanSumFields        `json:"sum,omitempty"`
	VarPop     *SubscriptionActivePlanVarPopFields     `json:"var_pop,omitempty"`
	VarSamp    *SubscriptionActivePlanVarSampFields    `json:"var_samp,omitempty"`
	Variance   *SubscriptionActivePlanVarianceFields   `json:"variance,omitempty"`
}

aggregate fields of "subscription_active_plan"

type SubscriptionActivePlanAvgFields

type SubscriptionActivePlanAvgFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate avg on columns

type SubscriptionActivePlanBoolExp

type SubscriptionActivePlanBoolExp struct {
	And         []*SubscriptionActivePlanBoolExp `json:"_and,omitempty"`
	Not         *SubscriptionActivePlanBoolExp   `json:"_not,omitempty"`
	Or          []*SubscriptionActivePlanBoolExp `json:"_or,omitempty"`
	Description *StringComparisonExp             `json:"description,omitempty"`
	ID          *StringComparisonExp             `json:"id,omitempty"`
	Price       *NumericComparisonExp            `json:"price,omitempty"`
	TrialDays   *IntComparisonExp                `json:"trial_days,omitempty"`
}

Boolean expression to filter rows from the table "subscription_active_plan". All fields are combined with a logical 'AND'.

type SubscriptionActivePlanIncInput

type SubscriptionActivePlanIncInput struct {
	Price     *string `json:"price,omitempty"`
	TrialDays *int64  `json:"trial_days,omitempty"`
}

input type for incrementing numeric columns in table "subscription_active_plan"

type SubscriptionActivePlanInsertInput

type SubscriptionActivePlanInsertInput struct {
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	Price       *string `json:"price,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
}

input type for inserting data into table "subscription_active_plan"

type SubscriptionActivePlanMaxFields

type SubscriptionActivePlanMaxFields struct {
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	Price       *string `json:"price,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
}

aggregate max on columns

type SubscriptionActivePlanMinFields

type SubscriptionActivePlanMinFields struct {
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	Price       *string `json:"price,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
}

aggregate min on columns

type SubscriptionActivePlanMutationResponse

type SubscriptionActivePlanMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SubscriptionActivePlan `json:"returning,omitempty"`
}

response of any mutation on the table "subscription_active_plan"

type SubscriptionActivePlanOrderBy

type SubscriptionActivePlanOrderBy struct {
	Description *OrderBy `json:"description,omitempty"`
	ID          *OrderBy `json:"id,omitempty"`
	Price       *OrderBy `json:"price,omitempty"`
	TrialDays   *OrderBy `json:"trial_days,omitempty"`
}

Ordering options when selecting data from "subscription_active_plan".

type SubscriptionActivePlanSelectColumn

type SubscriptionActivePlanSelectColumn string

select columns of table "subscription_active_plan"

const (
	// column name
	SubscriptionActivePlanSelectColumnDescription SubscriptionActivePlanSelectColumn = "description"
	// column name
	SubscriptionActivePlanSelectColumnID SubscriptionActivePlanSelectColumn = "id"
	// column name
	SubscriptionActivePlanSelectColumnPrice SubscriptionActivePlanSelectColumn = "price"
	// column name
	SubscriptionActivePlanSelectColumnTrialDays SubscriptionActivePlanSelectColumn = "trial_days"
)

func (SubscriptionActivePlanSelectColumn) IsValid

func (SubscriptionActivePlanSelectColumn) MarshalGQL

func (SubscriptionActivePlanSelectColumn) String

func (*SubscriptionActivePlanSelectColumn) UnmarshalGQL

func (e *SubscriptionActivePlanSelectColumn) UnmarshalGQL(v interface{}) error

type SubscriptionActivePlanSetInput

type SubscriptionActivePlanSetInput struct {
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	Price       *string `json:"price,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
}

input type for updating data in table "subscription_active_plan"

type SubscriptionActivePlanStddevFields

type SubscriptionActivePlanStddevFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate stddev on columns

type SubscriptionActivePlanStddevPopFields

type SubscriptionActivePlanStddevPopFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate stddev_pop on columns

type SubscriptionActivePlanStddevSampFields

type SubscriptionActivePlanStddevSampFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate stddev_samp on columns

type SubscriptionActivePlanSumFields

type SubscriptionActivePlanSumFields struct {
	Price     *string `json:"price,omitempty"`
	TrialDays *int64  `json:"trial_days,omitempty"`
}

aggregate sum on columns

type SubscriptionActivePlanVarPopFields

type SubscriptionActivePlanVarPopFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate var_pop on columns

type SubscriptionActivePlanVarSampFields

type SubscriptionActivePlanVarSampFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate var_samp on columns

type SubscriptionActivePlanVarianceFields

type SubscriptionActivePlanVarianceFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate variance on columns

type SubscriptionCustomer

type SubscriptionCustomer struct {
	CreatedAt string `json:"created_at"`
	ID        string `json:"id"`
	IDAccount string `json:"id_account"`
	// An object relationship
	SaasAccount    *SaasAccount `json:"saas_account,omitempty"`
	StripeCustomer string       `json:"stripe_customer"`
	UpdatedAt      string       `json:"updated_at"`
}

columns and relationships of "subscription_customer"

type SubscriptionCustomerAggregate

type SubscriptionCustomerAggregate struct {
	Aggregate *SubscriptionCustomerAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SubscriptionCustomer              `json:"nodes,omitempty"`
}

aggregated selection of "subscription_customer"

type SubscriptionCustomerAggregateFields

type SubscriptionCustomerAggregateFields struct {
	Count int64                          `json:"count"`
	Max   *SubscriptionCustomerMaxFields `json:"max,omitempty"`
	Min   *SubscriptionCustomerMinFields `json:"min,omitempty"`
}

aggregate fields of "subscription_customer"

type SubscriptionCustomerBoolExp

type SubscriptionCustomerBoolExp struct {
	And            []*SubscriptionCustomerBoolExp `json:"_and,omitempty"`
	Not            *SubscriptionCustomerBoolExp   `json:"_not,omitempty"`
	Or             []*SubscriptionCustomerBoolExp `json:"_or,omitempty"`
	CreatedAt      *TimestamptzComparisonExp      `json:"created_at,omitempty"`
	ID             *UUIDComparisonExp             `json:"id,omitempty"`
	IDAccount      *UUIDComparisonExp             `json:"id_account,omitempty"`
	SaasAccount    *SaasAccountBoolExp            `json:"saas_account,omitempty"`
	StripeCustomer *StringComparisonExp           `json:"stripe_customer,omitempty"`
	UpdatedAt      *TimestamptzComparisonExp      `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "subscription_customer". All fields are combined with a logical 'AND'.

type SubscriptionCustomerConstraint

type SubscriptionCustomerConstraint string

unique or primary key constraints on table "subscription_customer"

const (
	// unique or primary key constraint
	SubscriptionCustomerConstraintSubscriptionCustomerIDAccountKey SubscriptionCustomerConstraint = "subscription_customer_id_account_key"
	// unique or primary key constraint
	SubscriptionCustomerConstraintSubscriptionCustomerPkey SubscriptionCustomerConstraint = "subscription_customer_pkey"
)

func (SubscriptionCustomerConstraint) IsValid

func (SubscriptionCustomerConstraint) MarshalGQL

func (e SubscriptionCustomerConstraint) MarshalGQL(w io.Writer)

func (SubscriptionCustomerConstraint) String

func (*SubscriptionCustomerConstraint) UnmarshalGQL

func (e *SubscriptionCustomerConstraint) UnmarshalGQL(v interface{}) error

type SubscriptionCustomerInsertInput

type SubscriptionCustomerInsertInput struct {
	CreatedAt      *string                       `json:"created_at,omitempty"`
	ID             *string                       `json:"id,omitempty"`
	IDAccount      *string                       `json:"id_account,omitempty"`
	SaasAccount    *SaasAccountObjRelInsertInput `json:"saas_account,omitempty"`
	StripeCustomer *string                       `json:"stripe_customer,omitempty"`
	UpdatedAt      *string                       `json:"updated_at,omitempty"`
}

input type for inserting data into table "subscription_customer"

type SubscriptionCustomerMaxFields

type SubscriptionCustomerMaxFields struct {
	CreatedAt      *string `json:"created_at,omitempty"`
	ID             *string `json:"id,omitempty"`
	IDAccount      *string `json:"id_account,omitempty"`
	StripeCustomer *string `json:"stripe_customer,omitempty"`
	UpdatedAt      *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SubscriptionCustomerMinFields

type SubscriptionCustomerMinFields struct {
	CreatedAt      *string `json:"created_at,omitempty"`
	ID             *string `json:"id,omitempty"`
	IDAccount      *string `json:"id_account,omitempty"`
	StripeCustomer *string `json:"stripe_customer,omitempty"`
	UpdatedAt      *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SubscriptionCustomerMutationResponse

type SubscriptionCustomerMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SubscriptionCustomer `json:"returning,omitempty"`
}

response of any mutation on the table "subscription_customer"

type SubscriptionCustomerObjRelInsertInput

type SubscriptionCustomerObjRelInsertInput struct {
	Data *SubscriptionCustomerInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SubscriptionCustomerOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting object relation for remote table "subscription_customer"

type SubscriptionCustomerOnConflict

type SubscriptionCustomerOnConflict struct {
	Constraint    SubscriptionCustomerConstraint     `json:"constraint"`
	UpdateColumns []SubscriptionCustomerUpdateColumn `json:"update_columns,omitempty"`
	Where         *SubscriptionCustomerBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "subscription_customer"

type SubscriptionCustomerOrderBy

type SubscriptionCustomerOrderBy struct {
	CreatedAt      *OrderBy            `json:"created_at,omitempty"`
	ID             *OrderBy            `json:"id,omitempty"`
	IDAccount      *OrderBy            `json:"id_account,omitempty"`
	SaasAccount    *SaasAccountOrderBy `json:"saas_account,omitempty"`
	StripeCustomer *OrderBy            `json:"stripe_customer,omitempty"`
	UpdatedAt      *OrderBy            `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "subscription_customer".

type SubscriptionCustomerPkColumnsInput

type SubscriptionCustomerPkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: subscription_customer

type SubscriptionCustomerSelectColumn

type SubscriptionCustomerSelectColumn string

select columns of table "subscription_customer"

const (
	// column name
	SubscriptionCustomerSelectColumnCreatedAt SubscriptionCustomerSelectColumn = "created_at"
	// column name
	SubscriptionCustomerSelectColumnID SubscriptionCustomerSelectColumn = "id"
	// column name
	SubscriptionCustomerSelectColumnIDAccount SubscriptionCustomerSelectColumn = "id_account"
	// column name
	SubscriptionCustomerSelectColumnStripeCustomer SubscriptionCustomerSelectColumn = "stripe_customer"
	// column name
	SubscriptionCustomerSelectColumnUpdatedAt SubscriptionCustomerSelectColumn = "updated_at"
)

func (SubscriptionCustomerSelectColumn) IsValid

func (SubscriptionCustomerSelectColumn) MarshalGQL

func (e SubscriptionCustomerSelectColumn) MarshalGQL(w io.Writer)

func (SubscriptionCustomerSelectColumn) String

func (*SubscriptionCustomerSelectColumn) UnmarshalGQL

func (e *SubscriptionCustomerSelectColumn) UnmarshalGQL(v interface{}) error

type SubscriptionCustomerSetInput

type SubscriptionCustomerSetInput struct {
	CreatedAt      *string `json:"created_at,omitempty"`
	ID             *string `json:"id,omitempty"`
	IDAccount      *string `json:"id_account,omitempty"`
	StripeCustomer *string `json:"stripe_customer,omitempty"`
	UpdatedAt      *string `json:"updated_at,omitempty"`
}

input type for updating data in table "subscription_customer"

type SubscriptionCustomerUpdateColumn

type SubscriptionCustomerUpdateColumn string

update columns of table "subscription_customer"

const (
	// column name
	SubscriptionCustomerUpdateColumnCreatedAt SubscriptionCustomerUpdateColumn = "created_at"
	// column name
	SubscriptionCustomerUpdateColumnID SubscriptionCustomerUpdateColumn = "id"
	// column name
	SubscriptionCustomerUpdateColumnIDAccount SubscriptionCustomerUpdateColumn = "id_account"
	// column name
	SubscriptionCustomerUpdateColumnStripeCustomer SubscriptionCustomerUpdateColumn = "stripe_customer"
	// column name
	SubscriptionCustomerUpdateColumnUpdatedAt SubscriptionCustomerUpdateColumn = "updated_at"
)

func (SubscriptionCustomerUpdateColumn) IsValid

func (SubscriptionCustomerUpdateColumn) MarshalGQL

func (e SubscriptionCustomerUpdateColumn) MarshalGQL(w io.Writer)

func (SubscriptionCustomerUpdateColumn) String

func (*SubscriptionCustomerUpdateColumn) UnmarshalGQL

func (e *SubscriptionCustomerUpdateColumn) UnmarshalGQL(v interface{}) error

type SubscriptionEvent

type SubscriptionEvent struct {
	CreatedAt string                 `json:"created_at"`
	Data      map[string]interface{} `json:"data,omitempty"`
	ID        string                 `json:"id"`
	Type      string                 `json:"type"`
	UpdatedAt string                 `json:"updated_at"`
}

columns and relationships of "subscription_event"

type SubscriptionEventAggregate

type SubscriptionEventAggregate struct {
	Aggregate *SubscriptionEventAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SubscriptionEvent              `json:"nodes,omitempty"`
}

aggregated selection of "subscription_event"

type SubscriptionEventAggregateFields

type SubscriptionEventAggregateFields struct {
	Count int64                       `json:"count"`
	Max   *SubscriptionEventMaxFields `json:"max,omitempty"`
	Min   *SubscriptionEventMinFields `json:"min,omitempty"`
}

aggregate fields of "subscription_event"

type SubscriptionEventAppendInput

type SubscriptionEventAppendInput struct {
	Data map[string]interface{} `json:"data,omitempty"`
}

append existing jsonb value of filtered columns with new jsonb value

type SubscriptionEventBoolExp

type SubscriptionEventBoolExp struct {
	And       []*SubscriptionEventBoolExp `json:"_and,omitempty"`
	Not       *SubscriptionEventBoolExp   `json:"_not,omitempty"`
	Or        []*SubscriptionEventBoolExp `json:"_or,omitempty"`
	CreatedAt *TimestamptzComparisonExp   `json:"created_at,omitempty"`
	Data      *JsonbComparisonExp         `json:"data,omitempty"`
	ID        *UUIDComparisonExp          `json:"id,omitempty"`
	Type      *StringComparisonExp        `json:"type,omitempty"`
	UpdatedAt *TimestamptzComparisonExp   `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "subscription_event". All fields are combined with a logical 'AND'.

type SubscriptionEventConstraint

type SubscriptionEventConstraint string

unique or primary key constraints on table "subscription_event"

const (
	// unique or primary key constraint
	SubscriptionEventConstraintSubscriptionEventPkey SubscriptionEventConstraint = "subscription_event_pkey"
)

func (SubscriptionEventConstraint) IsValid

func (e SubscriptionEventConstraint) IsValid() bool

func (SubscriptionEventConstraint) MarshalGQL

func (e SubscriptionEventConstraint) MarshalGQL(w io.Writer)

func (SubscriptionEventConstraint) String

func (*SubscriptionEventConstraint) UnmarshalGQL

func (e *SubscriptionEventConstraint) UnmarshalGQL(v interface{}) error

type SubscriptionEventDeleteAtPathInput

type SubscriptionEventDeleteAtPathInput struct {
	Data []string `json:"data,omitempty"`
}

delete the field or element with specified path (for JSON arrays, negative integers count from the end)

type SubscriptionEventDeleteElemInput

type SubscriptionEventDeleteElemInput struct {
	Data *int64 `json:"data,omitempty"`
}

delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array

type SubscriptionEventDeleteKeyInput

type SubscriptionEventDeleteKeyInput struct {
	Data *string `json:"data,omitempty"`
}

delete key/value pair or string element. key/value pairs are matched based on their key value

type SubscriptionEventInsertInput

type SubscriptionEventInsertInput struct {
	CreatedAt *string                `json:"created_at,omitempty"`
	Data      map[string]interface{} `json:"data,omitempty"`
	ID        *string                `json:"id,omitempty"`
	Type      *string                `json:"type,omitempty"`
	UpdatedAt *string                `json:"updated_at,omitempty"`
}

input type for inserting data into table "subscription_event"

type SubscriptionEventMaxFields

type SubscriptionEventMaxFields struct {
	CreatedAt *string `json:"created_at,omitempty"`
	ID        *string `json:"id,omitempty"`
	Type      *string `json:"type,omitempty"`
	UpdatedAt *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SubscriptionEventMinFields

type SubscriptionEventMinFields struct {
	CreatedAt *string `json:"created_at,omitempty"`
	ID        *string `json:"id,omitempty"`
	Type      *string `json:"type,omitempty"`
	UpdatedAt *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SubscriptionEventMutationResponse

type SubscriptionEventMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SubscriptionEvent `json:"returning,omitempty"`
}

response of any mutation on the table "subscription_event"

type SubscriptionEventOnConflict

type SubscriptionEventOnConflict struct {
	Constraint    SubscriptionEventConstraint     `json:"constraint"`
	UpdateColumns []SubscriptionEventUpdateColumn `json:"update_columns,omitempty"`
	Where         *SubscriptionEventBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "subscription_event"

type SubscriptionEventOrderBy

type SubscriptionEventOrderBy struct {
	CreatedAt *OrderBy `json:"created_at,omitempty"`
	Data      *OrderBy `json:"data,omitempty"`
	ID        *OrderBy `json:"id,omitempty"`
	Type      *OrderBy `json:"type,omitempty"`
	UpdatedAt *OrderBy `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "subscription_event".

type SubscriptionEventPkColumnsInput

type SubscriptionEventPkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: subscription_event

type SubscriptionEventPrependInput

type SubscriptionEventPrependInput struct {
	Data map[string]interface{} `json:"data,omitempty"`
}

prepend existing jsonb value of filtered columns with new jsonb value

type SubscriptionEventSelectColumn

type SubscriptionEventSelectColumn string

select columns of table "subscription_event"

const (
	// column name
	SubscriptionEventSelectColumnCreatedAt SubscriptionEventSelectColumn = "created_at"
	// column name
	SubscriptionEventSelectColumnData SubscriptionEventSelectColumn = "data"
	// column name
	SubscriptionEventSelectColumnID SubscriptionEventSelectColumn = "id"
	// column name
	SubscriptionEventSelectColumnType SubscriptionEventSelectColumn = "type"
	// column name
	SubscriptionEventSelectColumnUpdatedAt SubscriptionEventSelectColumn = "updated_at"
)

func (SubscriptionEventSelectColumn) IsValid

func (e SubscriptionEventSelectColumn) IsValid() bool

func (SubscriptionEventSelectColumn) MarshalGQL

func (e SubscriptionEventSelectColumn) MarshalGQL(w io.Writer)

func (SubscriptionEventSelectColumn) String

func (*SubscriptionEventSelectColumn) UnmarshalGQL

func (e *SubscriptionEventSelectColumn) UnmarshalGQL(v interface{}) error

type SubscriptionEventSetInput

type SubscriptionEventSetInput struct {
	CreatedAt *string                `json:"created_at,omitempty"`
	Data      map[string]interface{} `json:"data,omitempty"`
	ID        *string                `json:"id,omitempty"`
	Type      *string                `json:"type,omitempty"`
	UpdatedAt *string                `json:"updated_at,omitempty"`
}

input type for updating data in table "subscription_event"

type SubscriptionEventUpdateColumn

type SubscriptionEventUpdateColumn string

update columns of table "subscription_event"

const (
	// column name
	SubscriptionEventUpdateColumnCreatedAt SubscriptionEventUpdateColumn = "created_at"
	// column name
	SubscriptionEventUpdateColumnData SubscriptionEventUpdateColumn = "data"
	// column name
	SubscriptionEventUpdateColumnID SubscriptionEventUpdateColumn = "id"
	// column name
	SubscriptionEventUpdateColumnType SubscriptionEventUpdateColumn = "type"
	// column name
	SubscriptionEventUpdateColumnUpdatedAt SubscriptionEventUpdateColumn = "updated_at"
)

func (SubscriptionEventUpdateColumn) IsValid

func (e SubscriptionEventUpdateColumn) IsValid() bool

func (SubscriptionEventUpdateColumn) MarshalGQL

func (e SubscriptionEventUpdateColumn) MarshalGQL(w io.Writer)

func (SubscriptionEventUpdateColumn) String

func (*SubscriptionEventUpdateColumn) UnmarshalGQL

func (e *SubscriptionEventUpdateColumn) UnmarshalGQL(v interface{}) error

type SubscriptionPlan

type SubscriptionPlan struct {
	CreatedAt   string  `json:"created_at"`
	Currency    *string `json:"currency,omitempty"`
	Description string  `json:"description"`
	ID          string  `json:"id"`
	IsActive    bool    `json:"is_active"`
	Price       *string `json:"price,omitempty"`
	StripeCode  *string `json:"stripe_code,omitempty"`
	// An array relationship
	SubscriptionStatuses []*SubscriptionStatus `json:"subscription_statuses,omitempty"`
	// An aggregate relationship
	SubscriptionStatusesAggregate *SubscriptionStatusAggregate `json:"subscription_statuses_aggregate,omitempty"`
	TrialDays                     *int64                       `json:"trial_days,omitempty"`
	UpdatedAt                     string                       `json:"updated_at"`
}

columns and relationships of "subscription_plan"

type SubscriptionPlanAggregate

type SubscriptionPlanAggregate struct {
	Aggregate *SubscriptionPlanAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SubscriptionPlan              `json:"nodes,omitempty"`
}

aggregated selection of "subscription_plan"

type SubscriptionPlanAggregateFields

type SubscriptionPlanAggregateFields struct {
	Avg        *SubscriptionPlanAvgFields        `json:"avg,omitempty"`
	Count      int64                             `json:"count"`
	Max        *SubscriptionPlanMaxFields        `json:"max,omitempty"`
	Min        *SubscriptionPlanMinFields        `json:"min,omitempty"`
	Stddev     *SubscriptionPlanStddevFields     `json:"stddev,omitempty"`
	StddevPop  *SubscriptionPlanStddevPopFields  `json:"stddev_pop,omitempty"`
	StddevSamp *SubscriptionPlanStddevSampFields `json:"stddev_samp,omitempty"`
	Sum        *SubscriptionPlanSumFields        `json:"sum,omitempty"`
	VarPop     *SubscriptionPlanVarPopFields     `json:"var_pop,omitempty"`
	VarSamp    *SubscriptionPlanVarSampFields    `json:"var_samp,omitempty"`
	Variance   *SubscriptionPlanVarianceFields   `json:"variance,omitempty"`
}

aggregate fields of "subscription_plan"

type SubscriptionPlanAvgFields

type SubscriptionPlanAvgFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate avg on columns

type SubscriptionPlanBoolExp

type SubscriptionPlanBoolExp struct {
	And                  []*SubscriptionPlanBoolExp `json:"_and,omitempty"`
	Not                  *SubscriptionPlanBoolExp   `json:"_not,omitempty"`
	Or                   []*SubscriptionPlanBoolExp `json:"_or,omitempty"`
	CreatedAt            *TimestamptzComparisonExp  `json:"created_at,omitempty"`
	Currency             *StringComparisonExp       `json:"currency,omitempty"`
	Description          *StringComparisonExp       `json:"description,omitempty"`
	ID                   *StringComparisonExp       `json:"id,omitempty"`
	IsActive             *BooleanComparisonExp      `json:"is_active,omitempty"`
	Price                *NumericComparisonExp      `json:"price,omitempty"`
	StripeCode           *StringComparisonExp       `json:"stripe_code,omitempty"`
	SubscriptionStatuses *SubscriptionStatusBoolExp `json:"subscription_statuses,omitempty"`
	TrialDays            *IntComparisonExp          `json:"trial_days,omitempty"`
	UpdatedAt            *TimestamptzComparisonExp  `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "subscription_plan". All fields are combined with a logical 'AND'.

type SubscriptionPlanConstraint

type SubscriptionPlanConstraint string

unique or primary key constraints on table "subscription_plan"

const (
	// unique or primary key constraint
	SubscriptionPlanConstraintSubscriptionPlanPkey SubscriptionPlanConstraint = "subscription_plan_pkey"
)

func (SubscriptionPlanConstraint) IsValid

func (e SubscriptionPlanConstraint) IsValid() bool

func (SubscriptionPlanConstraint) MarshalGQL

func (e SubscriptionPlanConstraint) MarshalGQL(w io.Writer)

func (SubscriptionPlanConstraint) String

func (*SubscriptionPlanConstraint) UnmarshalGQL

func (e *SubscriptionPlanConstraint) UnmarshalGQL(v interface{}) error

type SubscriptionPlanIncInput

type SubscriptionPlanIncInput struct {
	Price     *string `json:"price,omitempty"`
	TrialDays *int64  `json:"trial_days,omitempty"`
}

input type for incrementing numeric columns in table "subscription_plan"

type SubscriptionPlanInsertInput

type SubscriptionPlanInsertInput struct {
	CreatedAt            *string                              `json:"created_at,omitempty"`
	Currency             *string                              `json:"currency,omitempty"`
	Description          *string                              `json:"description,omitempty"`
	ID                   *string                              `json:"id,omitempty"`
	IsActive             *bool                                `json:"is_active,omitempty"`
	Price                *string                              `json:"price,omitempty"`
	StripeCode           *string                              `json:"stripe_code,omitempty"`
	SubscriptionStatuses *SubscriptionStatusArrRelInsertInput `json:"subscription_statuses,omitempty"`
	TrialDays            *int64                               `json:"trial_days,omitempty"`
	UpdatedAt            *string                              `json:"updated_at,omitempty"`
}

input type for inserting data into table "subscription_plan"

type SubscriptionPlanMaxFields

type SubscriptionPlanMaxFields struct {
	CreatedAt   *string `json:"created_at,omitempty"`
	Currency    *string `json:"currency,omitempty"`
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	Price       *string `json:"price,omitempty"`
	StripeCode  *string `json:"stripe_code,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
	UpdatedAt   *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SubscriptionPlanMinFields

type SubscriptionPlanMinFields struct {
	CreatedAt   *string `json:"created_at,omitempty"`
	Currency    *string `json:"currency,omitempty"`
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	Price       *string `json:"price,omitempty"`
	StripeCode  *string `json:"stripe_code,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
	UpdatedAt   *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SubscriptionPlanMutationResponse

type SubscriptionPlanMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SubscriptionPlan `json:"returning,omitempty"`
}

response of any mutation on the table "subscription_plan"

type SubscriptionPlanObjRelInsertInput

type SubscriptionPlanObjRelInsertInput struct {
	Data *SubscriptionPlanInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SubscriptionPlanOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting object relation for remote table "subscription_plan"

type SubscriptionPlanOnConflict

type SubscriptionPlanOnConflict struct {
	Constraint    SubscriptionPlanConstraint     `json:"constraint"`
	UpdateColumns []SubscriptionPlanUpdateColumn `json:"update_columns,omitempty"`
	Where         *SubscriptionPlanBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "subscription_plan"

type SubscriptionPlanOrderBy

type SubscriptionPlanOrderBy struct {
	CreatedAt                     *OrderBy                            `json:"created_at,omitempty"`
	Currency                      *OrderBy                            `json:"currency,omitempty"`
	Description                   *OrderBy                            `json:"description,omitempty"`
	ID                            *OrderBy                            `json:"id,omitempty"`
	IsActive                      *OrderBy                            `json:"is_active,omitempty"`
	Price                         *OrderBy                            `json:"price,omitempty"`
	StripeCode                    *OrderBy                            `json:"stripe_code,omitempty"`
	SubscriptionStatusesAggregate *SubscriptionStatusAggregateOrderBy `json:"subscription_statuses_aggregate,omitempty"`
	TrialDays                     *OrderBy                            `json:"trial_days,omitempty"`
	UpdatedAt                     *OrderBy                            `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "subscription_plan".

type SubscriptionPlanPkColumnsInput

type SubscriptionPlanPkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: subscription_plan

type SubscriptionPlanSelectColumn

type SubscriptionPlanSelectColumn string

select columns of table "subscription_plan"

const (
	// column name
	SubscriptionPlanSelectColumnCreatedAt SubscriptionPlanSelectColumn = "created_at"
	// column name
	SubscriptionPlanSelectColumnCurrency SubscriptionPlanSelectColumn = "currency"
	// column name
	SubscriptionPlanSelectColumnDescription SubscriptionPlanSelectColumn = "description"
	// column name
	SubscriptionPlanSelectColumnID SubscriptionPlanSelectColumn = "id"
	// column name
	SubscriptionPlanSelectColumnIsActive SubscriptionPlanSelectColumn = "is_active"
	// column name
	SubscriptionPlanSelectColumnPrice SubscriptionPlanSelectColumn = "price"
	// column name
	SubscriptionPlanSelectColumnStripeCode SubscriptionPlanSelectColumn = "stripe_code"
	// column name
	SubscriptionPlanSelectColumnTrialDays SubscriptionPlanSelectColumn = "trial_days"
	// column name
	SubscriptionPlanSelectColumnUpdatedAt SubscriptionPlanSelectColumn = "updated_at"
)

func (SubscriptionPlanSelectColumn) IsValid

func (e SubscriptionPlanSelectColumn) IsValid() bool

func (SubscriptionPlanSelectColumn) MarshalGQL

func (e SubscriptionPlanSelectColumn) MarshalGQL(w io.Writer)

func (SubscriptionPlanSelectColumn) String

func (*SubscriptionPlanSelectColumn) UnmarshalGQL

func (e *SubscriptionPlanSelectColumn) UnmarshalGQL(v interface{}) error

type SubscriptionPlanSetInput

type SubscriptionPlanSetInput struct {
	CreatedAt   *string `json:"created_at,omitempty"`
	Currency    *string `json:"currency,omitempty"`
	Description *string `json:"description,omitempty"`
	ID          *string `json:"id,omitempty"`
	IsActive    *bool   `json:"is_active,omitempty"`
	Price       *string `json:"price,omitempty"`
	StripeCode  *string `json:"stripe_code,omitempty"`
	TrialDays   *int64  `json:"trial_days,omitempty"`
	UpdatedAt   *string `json:"updated_at,omitempty"`
}

input type for updating data in table "subscription_plan"

type SubscriptionPlanStddevFields

type SubscriptionPlanStddevFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate stddev on columns

type SubscriptionPlanStddevPopFields

type SubscriptionPlanStddevPopFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate stddev_pop on columns

type SubscriptionPlanStddevSampFields

type SubscriptionPlanStddevSampFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate stddev_samp on columns

type SubscriptionPlanSumFields

type SubscriptionPlanSumFields struct {
	Price     *string `json:"price,omitempty"`
	TrialDays *int64  `json:"trial_days,omitempty"`
}

aggregate sum on columns

type SubscriptionPlanUpdateColumn

type SubscriptionPlanUpdateColumn string

update columns of table "subscription_plan"

const (
	// column name
	SubscriptionPlanUpdateColumnCreatedAt SubscriptionPlanUpdateColumn = "created_at"
	// column name
	SubscriptionPlanUpdateColumnCurrency SubscriptionPlanUpdateColumn = "currency"
	// column name
	SubscriptionPlanUpdateColumnDescription SubscriptionPlanUpdateColumn = "description"
	// column name
	SubscriptionPlanUpdateColumnID SubscriptionPlanUpdateColumn = "id"
	// column name
	SubscriptionPlanUpdateColumnIsActive SubscriptionPlanUpdateColumn = "is_active"
	// column name
	SubscriptionPlanUpdateColumnPrice SubscriptionPlanUpdateColumn = "price"
	// column name
	SubscriptionPlanUpdateColumnStripeCode SubscriptionPlanUpdateColumn = "stripe_code"
	// column name
	SubscriptionPlanUpdateColumnTrialDays SubscriptionPlanUpdateColumn = "trial_days"
	// column name
	SubscriptionPlanUpdateColumnUpdatedAt SubscriptionPlanUpdateColumn = "updated_at"
)

func (SubscriptionPlanUpdateColumn) IsValid

func (e SubscriptionPlanUpdateColumn) IsValid() bool

func (SubscriptionPlanUpdateColumn) MarshalGQL

func (e SubscriptionPlanUpdateColumn) MarshalGQL(w io.Writer)

func (SubscriptionPlanUpdateColumn) String

func (*SubscriptionPlanUpdateColumn) UnmarshalGQL

func (e *SubscriptionPlanUpdateColumn) UnmarshalGQL(v interface{}) error

type SubscriptionPlanVarPopFields

type SubscriptionPlanVarPopFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate var_pop on columns

type SubscriptionPlanVarSampFields

type SubscriptionPlanVarSampFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate var_samp on columns

type SubscriptionPlanVarianceFields

type SubscriptionPlanVarianceFields struct {
	Price     *float64 `json:"price,omitempty"`
	TrialDays *float64 `json:"trial_days,omitempty"`
}

aggregate variance on columns

type SubscriptionRoot

type SubscriptionRoot struct {
	// fetch data from the table: "saas_account"
	SaasAccount []*SaasAccount `json:"saas_account,omitempty"`
	// fetch aggregated fields from the table: "saas_account"
	SaasAccountAggregate *SaasAccountAggregate `json:"saas_account_aggregate,omitempty"`
	// fetch data from the table: "saas_account" using primary key columns
	SaasAccountByPk *SaasAccount `json:"saas_account_by_pk,omitempty"`
	// fetch data from the table: "saas_address"
	SaasAddress []*SaasAddress `json:"saas_address,omitempty"`
	// fetch aggregated fields from the table: "saas_address"
	SaasAddressAggregate *SaasAddressAggregate `json:"saas_address_aggregate,omitempty"`
	// fetch data from the table: "saas_address" using primary key columns
	SaasAddressByPk *SaasAddress `json:"saas_address_by_pk,omitempty"`
	// fetch data from the table: "saas_membership"
	SaasMembership []*SaasMembership `json:"saas_membership,omitempty"`
	// fetch aggregated fields from the table: "saas_membership"
	SaasMembershipAggregate *SaasMembershipAggregate `json:"saas_membership_aggregate,omitempty"`
	// fetch data from the table: "saas_membership" using primary key columns
	SaasMembershipByPk *SaasMembership `json:"saas_membership_by_pk,omitempty"`
	// fetch data from the table: "saas_role"
	SaasRole []*SaasRole `json:"saas_role,omitempty"`
	// fetch aggregated fields from the table: "saas_role"
	SaasRoleAggregate *SaasRoleAggregate `json:"saas_role_aggregate,omitempty"`
	// fetch data from the table: "saas_role" using primary key columns
	SaasRoleByPk *SaasRole `json:"saas_role_by_pk,omitempty"`
	// fetch data from the table: "saas_user_account"
	SaasUserAccount []*SaasUserAccount `json:"saas_user_account,omitempty"`
	// fetch aggregated fields from the table: "saas_user_account"
	SaasUserAccountAggregate *SaasUserAccountAggregate `json:"saas_user_account_aggregate,omitempty"`
	// fetch data from the table: "subscription_active_plan"
	SubscriptionActivePlan []*SubscriptionActivePlan `json:"subscription_active_plan,omitempty"`
	// fetch aggregated fields from the table: "subscription_active_plan"
	SubscriptionActivePlanAggregate *SubscriptionActivePlanAggregate `json:"subscription_active_plan_aggregate,omitempty"`
	// fetch data from the table: "subscription_customer"
	SubscriptionCustomer []*SubscriptionCustomer `json:"subscription_customer,omitempty"`
	// fetch aggregated fields from the table: "subscription_customer"
	SubscriptionCustomerAggregate *SubscriptionCustomerAggregate `json:"subscription_customer_aggregate,omitempty"`
	// fetch data from the table: "subscription_customer" using primary key columns
	SubscriptionCustomerByPk *SubscriptionCustomer `json:"subscription_customer_by_pk,omitempty"`
	// fetch data from the table: "subscription_event"
	SubscriptionEvent []*SubscriptionEvent `json:"subscription_event,omitempty"`
	// fetch aggregated fields from the table: "subscription_event"
	SubscriptionEventAggregate *SubscriptionEventAggregate `json:"subscription_event_aggregate,omitempty"`
	// fetch data from the table: "subscription_event" using primary key columns
	SubscriptionEventByPk *SubscriptionEvent `json:"subscription_event_by_pk,omitempty"`
	// fetch data from the table: "subscription_plan"
	SubscriptionPlan []*SubscriptionPlan `json:"subscription_plan,omitempty"`
	// fetch aggregated fields from the table: "subscription_plan"
	SubscriptionPlanAggregate *SubscriptionPlanAggregate `json:"subscription_plan_aggregate,omitempty"`
	// fetch data from the table: "subscription_plan" using primary key columns
	SubscriptionPlanByPk *SubscriptionPlan `json:"subscription_plan_by_pk,omitempty"`
	// fetch data from the table: "subscription_status"
	SubscriptionStatus []*SubscriptionStatus `json:"subscription_status,omitempty"`
	// fetch aggregated fields from the table: "subscription_status"
	SubscriptionStatusAggregate *SubscriptionStatusAggregate `json:"subscription_status_aggregate,omitempty"`
	// fetch data from the table: "subscription_status" using primary key columns
	SubscriptionStatusByPk *SubscriptionStatus `json:"subscription_status_by_pk,omitempty"`
}

type SubscriptionStatus

type SubscriptionStatus struct {
	CreatedAt string `json:"created_at"`
	ID        string `json:"id"`
	IDAccount string `json:"id_account"`
	IDPlan    string `json:"id_plan"`
	IsActive  bool   `json:"is_active"`
	// An object relationship
	SaasAccount          *SaasAccount `json:"saas_account,omitempty"`
	Status               string       `json:"status"`
	StripeSubscriptionID *string      `json:"stripe_subscription_id,omitempty"`
	// An object relationship
	SubscriptionPlan *SubscriptionPlan `json:"subscription_plan,omitempty"`
	UpdatedAt        string            `json:"updated_at"`
}

columns and relationships of "subscription_status"

type SubscriptionStatusAggregate

type SubscriptionStatusAggregate struct {
	Aggregate *SubscriptionStatusAggregateFields `json:"aggregate,omitempty"`
	Nodes     []*SubscriptionStatus              `json:"nodes,omitempty"`
}

aggregated selection of "subscription_status"

type SubscriptionStatusAggregateFields

type SubscriptionStatusAggregateFields struct {
	Count int64                        `json:"count"`
	Max   *SubscriptionStatusMaxFields `json:"max,omitempty"`
	Min   *SubscriptionStatusMinFields `json:"min,omitempty"`
}

aggregate fields of "subscription_status"

type SubscriptionStatusAggregateOrderBy

type SubscriptionStatusAggregateOrderBy struct {
	Count *OrderBy                      `json:"count,omitempty"`
	Max   *SubscriptionStatusMaxOrderBy `json:"max,omitempty"`
	Min   *SubscriptionStatusMinOrderBy `json:"min,omitempty"`
}

order by aggregate values of table "subscription_status"

type SubscriptionStatusArrRelInsertInput

type SubscriptionStatusArrRelInsertInput struct {
	Data []*SubscriptionStatusInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SubscriptionStatusOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting array relation for remote table "subscription_status"

type SubscriptionStatusBoolExp

type SubscriptionStatusBoolExp struct {
	And                  []*SubscriptionStatusBoolExp `json:"_and,omitempty"`
	Not                  *SubscriptionStatusBoolExp   `json:"_not,omitempty"`
	Or                   []*SubscriptionStatusBoolExp `json:"_or,omitempty"`
	CreatedAt            *TimestamptzComparisonExp    `json:"created_at,omitempty"`
	ID                   *UUIDComparisonExp           `json:"id,omitempty"`
	IDAccount            *UUIDComparisonExp           `json:"id_account,omitempty"`
	IDPlan               *StringComparisonExp         `json:"id_plan,omitempty"`
	IsActive             *BooleanComparisonExp        `json:"is_active,omitempty"`
	SaasAccount          *SaasAccountBoolExp          `json:"saas_account,omitempty"`
	Status               *StringComparisonExp         `json:"status,omitempty"`
	StripeSubscriptionID *StringComparisonExp         `json:"stripe_subscription_id,omitempty"`
	SubscriptionPlan     *SubscriptionPlanBoolExp     `json:"subscription_plan,omitempty"`
	UpdatedAt            *TimestamptzComparisonExp    `json:"updated_at,omitempty"`
}

Boolean expression to filter rows from the table "subscription_status". All fields are combined with a logical 'AND'.

type SubscriptionStatusConstraint

type SubscriptionStatusConstraint string

unique or primary key constraints on table "subscription_status"

const (
	// unique or primary key constraint
	SubscriptionStatusConstraintSubscriptionStatusIDAccountKey SubscriptionStatusConstraint = "subscription_status_id_account_key"
	// unique or primary key constraint
	SubscriptionStatusConstraintSubscriptionStatusPkey SubscriptionStatusConstraint = "subscription_status_pkey"
)

func (SubscriptionStatusConstraint) IsValid

func (e SubscriptionStatusConstraint) IsValid() bool

func (SubscriptionStatusConstraint) MarshalGQL

func (e SubscriptionStatusConstraint) MarshalGQL(w io.Writer)

func (SubscriptionStatusConstraint) String

func (*SubscriptionStatusConstraint) UnmarshalGQL

func (e *SubscriptionStatusConstraint) UnmarshalGQL(v interface{}) error

type SubscriptionStatusInsertInput

type SubscriptionStatusInsertInput struct {
	CreatedAt            *string                            `json:"created_at,omitempty"`
	ID                   *string                            `json:"id,omitempty"`
	IDAccount            *string                            `json:"id_account,omitempty"`
	IDPlan               *string                            `json:"id_plan,omitempty"`
	IsActive             *bool                              `json:"is_active,omitempty"`
	SaasAccount          *SaasAccountObjRelInsertInput      `json:"saas_account,omitempty"`
	Status               *string                            `json:"status,omitempty"`
	StripeSubscriptionID *string                            `json:"stripe_subscription_id,omitempty"`
	SubscriptionPlan     *SubscriptionPlanObjRelInsertInput `json:"subscription_plan,omitempty"`
	UpdatedAt            *string                            `json:"updated_at,omitempty"`
}

input type for inserting data into table "subscription_status"

type SubscriptionStatusMaxFields

type SubscriptionStatusMaxFields struct {
	CreatedAt            *string `json:"created_at,omitempty"`
	ID                   *string `json:"id,omitempty"`
	IDAccount            *string `json:"id_account,omitempty"`
	IDPlan               *string `json:"id_plan,omitempty"`
	Status               *string `json:"status,omitempty"`
	StripeSubscriptionID *string `json:"stripe_subscription_id,omitempty"`
	UpdatedAt            *string `json:"updated_at,omitempty"`
}

aggregate max on columns

type SubscriptionStatusMaxOrderBy

type SubscriptionStatusMaxOrderBy struct {
	CreatedAt            *OrderBy `json:"created_at,omitempty"`
	ID                   *OrderBy `json:"id,omitempty"`
	IDAccount            *OrderBy `json:"id_account,omitempty"`
	IDPlan               *OrderBy `json:"id_plan,omitempty"`
	Status               *OrderBy `json:"status,omitempty"`
	StripeSubscriptionID *OrderBy `json:"stripe_subscription_id,omitempty"`
	UpdatedAt            *OrderBy `json:"updated_at,omitempty"`
}

order by max() on columns of table "subscription_status"

type SubscriptionStatusMinFields

type SubscriptionStatusMinFields struct {
	CreatedAt            *string `json:"created_at,omitempty"`
	ID                   *string `json:"id,omitempty"`
	IDAccount            *string `json:"id_account,omitempty"`
	IDPlan               *string `json:"id_plan,omitempty"`
	Status               *string `json:"status,omitempty"`
	StripeSubscriptionID *string `json:"stripe_subscription_id,omitempty"`
	UpdatedAt            *string `json:"updated_at,omitempty"`
}

aggregate min on columns

type SubscriptionStatusMinOrderBy

type SubscriptionStatusMinOrderBy struct {
	CreatedAt            *OrderBy `json:"created_at,omitempty"`
	ID                   *OrderBy `json:"id,omitempty"`
	IDAccount            *OrderBy `json:"id_account,omitempty"`
	IDPlan               *OrderBy `json:"id_plan,omitempty"`
	Status               *OrderBy `json:"status,omitempty"`
	StripeSubscriptionID *OrderBy `json:"stripe_subscription_id,omitempty"`
	UpdatedAt            *OrderBy `json:"updated_at,omitempty"`
}

order by min() on columns of table "subscription_status"

type SubscriptionStatusMutationResponse

type SubscriptionStatusMutationResponse struct {
	// number of rows affected by the mutation
	AffectedRows int64 `json:"affected_rows"`
	// data from the rows affected by the mutation
	Returning []*SubscriptionStatus `json:"returning,omitempty"`
}

response of any mutation on the table "subscription_status"

type SubscriptionStatusObjRelInsertInput

type SubscriptionStatusObjRelInsertInput struct {
	Data *SubscriptionStatusInsertInput `json:"data,omitempty"`
	// on conflict condition
	OnConflict *SubscriptionStatusOnConflict `json:"on_conflict,omitempty"`
}

input type for inserting object relation for remote table "subscription_status"

type SubscriptionStatusOnConflict

type SubscriptionStatusOnConflict struct {
	Constraint    SubscriptionStatusConstraint     `json:"constraint"`
	UpdateColumns []SubscriptionStatusUpdateColumn `json:"update_columns,omitempty"`
	Where         *SubscriptionStatusBoolExp       `json:"where,omitempty"`
}

on conflict condition type for table "subscription_status"

type SubscriptionStatusOrderBy

type SubscriptionStatusOrderBy struct {
	CreatedAt            *OrderBy                 `json:"created_at,omitempty"`
	ID                   *OrderBy                 `json:"id,omitempty"`
	IDAccount            *OrderBy                 `json:"id_account,omitempty"`
	IDPlan               *OrderBy                 `json:"id_plan,omitempty"`
	IsActive             *OrderBy                 `json:"is_active,omitempty"`
	SaasAccount          *SaasAccountOrderBy      `json:"saas_account,omitempty"`
	Status               *OrderBy                 `json:"status,omitempty"`
	StripeSubscriptionID *OrderBy                 `json:"stripe_subscription_id,omitempty"`
	SubscriptionPlan     *SubscriptionPlanOrderBy `json:"subscription_plan,omitempty"`
	UpdatedAt            *OrderBy                 `json:"updated_at,omitempty"`
}

Ordering options when selecting data from "subscription_status".

type SubscriptionStatusPkColumnsInput

type SubscriptionStatusPkColumnsInput struct {
	ID string `json:"id"`
}

primary key columns input for table: subscription_status

type SubscriptionStatusSelectColumn

type SubscriptionStatusSelectColumn string

select columns of table "subscription_status"

const (
	// column name
	SubscriptionStatusSelectColumnCreatedAt SubscriptionStatusSelectColumn = "created_at"
	// column name
	SubscriptionStatusSelectColumnID SubscriptionStatusSelectColumn = "id"
	// column name
	SubscriptionStatusSelectColumnIDAccount SubscriptionStatusSelectColumn = "id_account"
	// column name
	SubscriptionStatusSelectColumnIDPlan SubscriptionStatusSelectColumn = "id_plan"
	// column name
	SubscriptionStatusSelectColumnIsActive SubscriptionStatusSelectColumn = "is_active"
	// column name
	SubscriptionStatusSelectColumnStatus SubscriptionStatusSelectColumn = "status"
	// column name
	SubscriptionStatusSelectColumnStripeSubscriptionID SubscriptionStatusSelectColumn = "stripe_subscription_id"
	// column name
	SubscriptionStatusSelectColumnUpdatedAt SubscriptionStatusSelectColumn = "updated_at"
)

func (SubscriptionStatusSelectColumn) IsValid

func (SubscriptionStatusSelectColumn) MarshalGQL

func (e SubscriptionStatusSelectColumn) MarshalGQL(w io.Writer)

func (SubscriptionStatusSelectColumn) String

func (*SubscriptionStatusSelectColumn) UnmarshalGQL

func (e *SubscriptionStatusSelectColumn) UnmarshalGQL(v interface{}) error

type SubscriptionStatusSetInput

type SubscriptionStatusSetInput struct {
	CreatedAt            *string `json:"created_at,omitempty"`
	ID                   *string `json:"id,omitempty"`
	IDAccount            *string `json:"id_account,omitempty"`
	IDPlan               *string `json:"id_plan,omitempty"`
	IsActive             *bool   `json:"is_active,omitempty"`
	Status               *string `json:"status,omitempty"`
	StripeSubscriptionID *string `json:"stripe_subscription_id,omitempty"`
	UpdatedAt            *string `json:"updated_at,omitempty"`
}

input type for updating data in table "subscription_status"

type SubscriptionStatusUpdateColumn

type SubscriptionStatusUpdateColumn string

update columns of table "subscription_status"

const (
	// column name
	SubscriptionStatusUpdateColumnCreatedAt SubscriptionStatusUpdateColumn = "created_at"
	// column name
	SubscriptionStatusUpdateColumnID SubscriptionStatusUpdateColumn = "id"
	// column name
	SubscriptionStatusUpdateColumnIDAccount SubscriptionStatusUpdateColumn = "id_account"
	// column name
	SubscriptionStatusUpdateColumnIDPlan SubscriptionStatusUpdateColumn = "id_plan"
	// column name
	SubscriptionStatusUpdateColumnIsActive SubscriptionStatusUpdateColumn = "is_active"
	// column name
	SubscriptionStatusUpdateColumnStatus SubscriptionStatusUpdateColumn = "status"
	// column name
	SubscriptionStatusUpdateColumnStripeSubscriptionID SubscriptionStatusUpdateColumn = "stripe_subscription_id"
	// column name
	SubscriptionStatusUpdateColumnUpdatedAt SubscriptionStatusUpdateColumn = "updated_at"
)

func (SubscriptionStatusUpdateColumn) IsValid

func (SubscriptionStatusUpdateColumn) MarshalGQL

func (e SubscriptionStatusUpdateColumn) MarshalGQL(w io.Writer)

func (SubscriptionStatusUpdateColumn) String

func (*SubscriptionStatusUpdateColumn) UnmarshalGQL

func (e *SubscriptionStatusUpdateColumn) UnmarshalGQL(v interface{}) error

type TimestamptzComparisonExp

type TimestamptzComparisonExp struct {
	Eq     *string  `json:"_eq,omitempty"`
	Gt     *string  `json:"_gt,omitempty"`
	Gte    *string  `json:"_gte,omitempty"`
	In     []string `json:"_in,omitempty"`
	IsNull *bool    `json:"_is_null,omitempty"`
	Lt     *string  `json:"_lt,omitempty"`
	Lte    *string  `json:"_lte,omitempty"`
	Neq    *string  `json:"_neq,omitempty"`
	Nin    []string `json:"_nin,omitempty"`
}

Boolean expression to compare columns of type "timestamptz". All fields are combined with logical 'AND'.

type UUIDComparisonExp

type UUIDComparisonExp struct {
	Eq     *string  `json:"_eq,omitempty"`
	Gt     *string  `json:"_gt,omitempty"`
	Gte    *string  `json:"_gte,omitempty"`
	In     []string `json:"_in,omitempty"`
	IsNull *bool    `json:"_is_null,omitempty"`
	Lt     *string  `json:"_lt,omitempty"`
	Lte    *string  `json:"_lte,omitempty"`
	Neq    *string  `json:"_neq,omitempty"`
	Nin    []string `json:"_nin,omitempty"`
}

Boolean expression to compare columns of type "uuid". All fields are combined with logical 'AND'.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL