organization

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the organization type in the database.
	Label = "organization"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldSlug holds the string denoting the slug field in the database.
	FieldSlug = "slug"
	// FieldOrgType holds the string denoting the org_type field in the database.
	FieldOrgType = "org_type"
	// FieldOwnerPrincipalID holds the string denoting the owner_principal_id field in the database.
	FieldOwnerPrincipalID = "owner_principal_id"
	// FieldLogoURL holds the string denoting the logo_url field in the database.
	FieldLogoURL = "logo_url"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldWebsiteURL holds the string denoting the website_url field in the database.
	FieldWebsiteURL = "website_url"
	// FieldSettings holds the string denoting the settings field in the database.
	FieldSettings = "settings"
	// FieldPlan holds the string denoting the plan field in the database.
	FieldPlan = "plan"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// EdgeMemberships holds the string denoting the memberships edge name in mutations.
	EdgeMemberships = "memberships"
	// EdgeAPIKeys holds the string denoting the api_keys edge name in mutations.
	EdgeAPIKeys = "api_keys"
	// EdgeOauthApps holds the string denoting the oauth_apps edge name in mutations.
	EdgeOauthApps = "oauth_apps"
	// EdgeServiceAccounts holds the string denoting the service_accounts edge name in mutations.
	EdgeServiceAccounts = "service_accounts"
	// EdgePrincipals holds the string denoting the principals edge name in mutations.
	EdgePrincipals = "principals"
	// EdgePrincipalMemberships holds the string denoting the principal_memberships edge name in mutations.
	EdgePrincipalMemberships = "principal_memberships"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeInvites holds the string denoting the invites edge name in mutations.
	EdgeInvites = "invites"
	// Table holds the table name of the organization in the database.
	Table = "cf_organizations"
	// MembershipsTable is the table that holds the memberships relation/edge.
	MembershipsTable = "cf_memberships"
	// MembershipsInverseTable is the table name for the Membership entity.
	// It exists in this package in order to avoid circular dependency with the "membership" package.
	MembershipsInverseTable = "cf_memberships"
	// MembershipsColumn is the table column denoting the memberships relation/edge.
	MembershipsColumn = "organization_id"
	// APIKeysTable is the table that holds the api_keys relation/edge.
	APIKeysTable = "cf_api_keys"
	// APIKeysInverseTable is the table name for the APIKey entity.
	// It exists in this package in order to avoid circular dependency with the "apikey" package.
	APIKeysInverseTable = "cf_api_keys"
	// APIKeysColumn is the table column denoting the api_keys relation/edge.
	APIKeysColumn = "organization_api_keys"
	// OauthAppsTable is the table that holds the oauth_apps relation/edge.
	OauthAppsTable = "cf_oauth_apps"
	// OauthAppsInverseTable is the table name for the OAuthApp entity.
	// It exists in this package in order to avoid circular dependency with the "oauthapp" package.
	OauthAppsInverseTable = "cf_oauth_apps"
	// OauthAppsColumn is the table column denoting the oauth_apps relation/edge.
	OauthAppsColumn = "organization_id"
	// ServiceAccountsTable is the table that holds the service_accounts relation/edge.
	ServiceAccountsTable = "cf_service_accounts"
	// ServiceAccountsInverseTable is the table name for the ServiceAccount entity.
	// It exists in this package in order to avoid circular dependency with the "serviceaccount" package.
	ServiceAccountsInverseTable = "cf_service_accounts"
	// ServiceAccountsColumn is the table column denoting the service_accounts relation/edge.
	ServiceAccountsColumn = "organization_id"
	// PrincipalsTable is the table that holds the principals relation/edge.
	PrincipalsTable = "cf_principals"
	// PrincipalsInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	PrincipalsInverseTable = "cf_principals"
	// PrincipalsColumn is the table column denoting the principals relation/edge.
	PrincipalsColumn = "organization_id"
	// PrincipalMembershipsTable is the table that holds the principal_memberships relation/edge.
	PrincipalMembershipsTable = "cf_principal_memberships"
	// PrincipalMembershipsInverseTable is the table name for the PrincipalMembership entity.
	// It exists in this package in order to avoid circular dependency with the "principalmembership" package.
	PrincipalMembershipsInverseTable = "cf_principal_memberships"
	// PrincipalMembershipsColumn is the table column denoting the principal_memberships relation/edge.
	PrincipalMembershipsColumn = "organization_id"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "cf_organizations"
	// OwnerInverseTable is the table name for the Principal entity.
	// It exists in this package in order to avoid circular dependency with the "principal" package.
	OwnerInverseTable = "cf_principals"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_principal_id"
	// InvitesTable is the table that holds the invites relation/edge.
	InvitesTable = "cf_invites"
	// InvitesInverseTable is the table name for the Invite entity.
	// It exists in this package in order to avoid circular dependency with the "invite" package.
	InvitesInverseTable = "cf_invites"
	// InvitesColumn is the table column denoting the invites relation/edge.
	InvitesColumn = "organization_id"
)
View Source
const DefaultOrgType = OrgTypeTeam

OrgTypeTeam is the default value of the OrgType enum.

View Source
const DefaultPlan = PlanFree

PlanFree is the default value of the Plan enum.

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// SlugValidator is a validator for the "slug" field. It is called by the builders before save.
	SlugValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for organization fields.

Functions

func Active

func Active(v bool) predicate.Organization

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Organization

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Organization

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.Organization) predicate.Organization

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Organization

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Organization

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Organization

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Organization

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Organization

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Organization

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Organization

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Organization

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Organization

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description added in v0.2.0

func Description(v string) predicate.Organization

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains added in v0.2.0

func DescriptionContains(v string) predicate.Organization

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold added in v0.2.0

func DescriptionContainsFold(v string) predicate.Organization

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ added in v0.2.0

func DescriptionEQ(v string) predicate.Organization

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold added in v0.2.0

func DescriptionEqualFold(v string) predicate.Organization

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT added in v0.2.0

func DescriptionGT(v string) predicate.Organization

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE added in v0.2.0

func DescriptionGTE(v string) predicate.Organization

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix added in v0.2.0

func DescriptionHasPrefix(v string) predicate.Organization

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix added in v0.2.0

func DescriptionHasSuffix(v string) predicate.Organization

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn added in v0.2.0

func DescriptionIn(vs ...string) predicate.Organization

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil added in v0.2.0

func DescriptionIsNil() predicate.Organization

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT added in v0.2.0

func DescriptionLT(v string) predicate.Organization

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE added in v0.2.0

func DescriptionLTE(v string) predicate.Organization

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ added in v0.2.0

func DescriptionNEQ(v string) predicate.Organization

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn added in v0.2.0

func DescriptionNotIn(vs ...string) predicate.Organization

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil added in v0.2.0

func DescriptionNotNil() predicate.Organization

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasAPIKeys

func HasAPIKeys() predicate.Organization

HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.

func HasAPIKeysWith

func HasAPIKeysWith(preds ...predicate.APIKey) predicate.Organization

HasAPIKeysWith applies the HasEdge predicate on the "api_keys" edge with a given conditions (other predicates).

func HasInvites added in v0.2.0

func HasInvites() predicate.Organization

HasInvites applies the HasEdge predicate on the "invites" edge.

func HasInvitesWith added in v0.2.0

func HasInvitesWith(preds ...predicate.Invite) predicate.Organization

HasInvitesWith applies the HasEdge predicate on the "invites" edge with a given conditions (other predicates).

func HasMemberships

func HasMemberships() predicate.Organization

HasMemberships applies the HasEdge predicate on the "memberships" edge.

func HasMembershipsWith

func HasMembershipsWith(preds ...predicate.Membership) predicate.Organization

HasMembershipsWith applies the HasEdge predicate on the "memberships" edge with a given conditions (other predicates).

func HasOauthApps

func HasOauthApps() predicate.Organization

HasOauthApps applies the HasEdge predicate on the "oauth_apps" edge.

func HasOauthAppsWith

func HasOauthAppsWith(preds ...predicate.OAuthApp) predicate.Organization

HasOauthAppsWith applies the HasEdge predicate on the "oauth_apps" edge with a given conditions (other predicates).

func HasOwner added in v0.2.0

func HasOwner() predicate.Organization

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith added in v0.2.0

func HasOwnerWith(preds ...predicate.Principal) predicate.Organization

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasPrincipalMemberships added in v0.2.0

func HasPrincipalMemberships() predicate.Organization

HasPrincipalMemberships applies the HasEdge predicate on the "principal_memberships" edge.

func HasPrincipalMembershipsWith added in v0.2.0

func HasPrincipalMembershipsWith(preds ...predicate.PrincipalMembership) predicate.Organization

HasPrincipalMembershipsWith applies the HasEdge predicate on the "principal_memberships" edge with a given conditions (other predicates).

func HasPrincipals added in v0.2.0

func HasPrincipals() predicate.Organization

HasPrincipals applies the HasEdge predicate on the "principals" edge.

func HasPrincipalsWith added in v0.2.0

func HasPrincipalsWith(preds ...predicate.Principal) predicate.Organization

HasPrincipalsWith applies the HasEdge predicate on the "principals" edge with a given conditions (other predicates).

func HasServiceAccounts

func HasServiceAccounts() predicate.Organization

HasServiceAccounts applies the HasEdge predicate on the "service_accounts" edge.

func HasServiceAccountsWith

func HasServiceAccountsWith(preds ...predicate.ServiceAccount) predicate.Organization

HasServiceAccountsWith applies the HasEdge predicate on the "service_accounts" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Organization

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Organization

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Organization

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Organization

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Organization

IDNotIn applies the NotIn predicate on the ID field.

func LogoURL

func LogoURL(v string) predicate.Organization

LogoURL applies equality check predicate on the "logo_url" field. It's identical to LogoURLEQ.

func LogoURLContains

func LogoURLContains(v string) predicate.Organization

LogoURLContains applies the Contains predicate on the "logo_url" field.

func LogoURLContainsFold

func LogoURLContainsFold(v string) predicate.Organization

LogoURLContainsFold applies the ContainsFold predicate on the "logo_url" field.

func LogoURLEQ

func LogoURLEQ(v string) predicate.Organization

LogoURLEQ applies the EQ predicate on the "logo_url" field.

func LogoURLEqualFold

func LogoURLEqualFold(v string) predicate.Organization

LogoURLEqualFold applies the EqualFold predicate on the "logo_url" field.

func LogoURLGT

func LogoURLGT(v string) predicate.Organization

LogoURLGT applies the GT predicate on the "logo_url" field.

func LogoURLGTE

func LogoURLGTE(v string) predicate.Organization

LogoURLGTE applies the GTE predicate on the "logo_url" field.

func LogoURLHasPrefix

func LogoURLHasPrefix(v string) predicate.Organization

LogoURLHasPrefix applies the HasPrefix predicate on the "logo_url" field.

func LogoURLHasSuffix

func LogoURLHasSuffix(v string) predicate.Organization

LogoURLHasSuffix applies the HasSuffix predicate on the "logo_url" field.

func LogoURLIn

func LogoURLIn(vs ...string) predicate.Organization

LogoURLIn applies the In predicate on the "logo_url" field.

func LogoURLIsNil

func LogoURLIsNil() predicate.Organization

LogoURLIsNil applies the IsNil predicate on the "logo_url" field.

func LogoURLLT

func LogoURLLT(v string) predicate.Organization

LogoURLLT applies the LT predicate on the "logo_url" field.

func LogoURLLTE

func LogoURLLTE(v string) predicate.Organization

LogoURLLTE applies the LTE predicate on the "logo_url" field.

func LogoURLNEQ

func LogoURLNEQ(v string) predicate.Organization

LogoURLNEQ applies the NEQ predicate on the "logo_url" field.

func LogoURLNotIn

func LogoURLNotIn(vs ...string) predicate.Organization

LogoURLNotIn applies the NotIn predicate on the "logo_url" field.

func LogoURLNotNil

func LogoURLNotNil() predicate.Organization

LogoURLNotNil applies the NotNil predicate on the "logo_url" field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Organization

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Organization

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Organization

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Organization

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Organization

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Organization

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Organization

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Organization

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Organization

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Organization

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Organization

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Organization

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Organization

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Organization) predicate.Organization

Or groups predicates with the OR operator between them.

func OrgTypeEQ added in v0.2.0

func OrgTypeEQ(v OrgType) predicate.Organization

OrgTypeEQ applies the EQ predicate on the "org_type" field.

func OrgTypeIn added in v0.2.0

func OrgTypeIn(vs ...OrgType) predicate.Organization

OrgTypeIn applies the In predicate on the "org_type" field.

func OrgTypeNEQ added in v0.2.0

func OrgTypeNEQ(v OrgType) predicate.Organization

OrgTypeNEQ applies the NEQ predicate on the "org_type" field.

func OrgTypeNotIn added in v0.2.0

func OrgTypeNotIn(vs ...OrgType) predicate.Organization

OrgTypeNotIn applies the NotIn predicate on the "org_type" field.

func OrgTypeValidator added in v0.2.0

func OrgTypeValidator(ot OrgType) error

OrgTypeValidator is a validator for the "org_type" field enum values. It is called by the builders before save.

func OwnerPrincipalID added in v0.2.0

func OwnerPrincipalID(v uuid.UUID) predicate.Organization

OwnerPrincipalID applies equality check predicate on the "owner_principal_id" field. It's identical to OwnerPrincipalIDEQ.

func OwnerPrincipalIDEQ added in v0.2.0

func OwnerPrincipalIDEQ(v uuid.UUID) predicate.Organization

OwnerPrincipalIDEQ applies the EQ predicate on the "owner_principal_id" field.

func OwnerPrincipalIDIn added in v0.2.0

func OwnerPrincipalIDIn(vs ...uuid.UUID) predicate.Organization

OwnerPrincipalIDIn applies the In predicate on the "owner_principal_id" field.

func OwnerPrincipalIDIsNil added in v0.2.0

func OwnerPrincipalIDIsNil() predicate.Organization

OwnerPrincipalIDIsNil applies the IsNil predicate on the "owner_principal_id" field.

func OwnerPrincipalIDNEQ added in v0.2.0

func OwnerPrincipalIDNEQ(v uuid.UUID) predicate.Organization

OwnerPrincipalIDNEQ applies the NEQ predicate on the "owner_principal_id" field.

func OwnerPrincipalIDNotIn added in v0.2.0

func OwnerPrincipalIDNotIn(vs ...uuid.UUID) predicate.Organization

OwnerPrincipalIDNotIn applies the NotIn predicate on the "owner_principal_id" field.

func OwnerPrincipalIDNotNil added in v0.2.0

func OwnerPrincipalIDNotNil() predicate.Organization

OwnerPrincipalIDNotNil applies the NotNil predicate on the "owner_principal_id" field.

func PlanEQ

func PlanEQ(v Plan) predicate.Organization

PlanEQ applies the EQ predicate on the "plan" field.

func PlanIn

func PlanIn(vs ...Plan) predicate.Organization

PlanIn applies the In predicate on the "plan" field.

func PlanNEQ

func PlanNEQ(v Plan) predicate.Organization

PlanNEQ applies the NEQ predicate on the "plan" field.

func PlanNotIn

func PlanNotIn(vs ...Plan) predicate.Organization

PlanNotIn applies the NotIn predicate on the "plan" field.

func PlanValidator

func PlanValidator(pl Plan) error

PlanValidator is a validator for the "plan" field enum values. It is called by the builders before save.

func SettingsIsNil

func SettingsIsNil() predicate.Organization

SettingsIsNil applies the IsNil predicate on the "settings" field.

func SettingsNotNil

func SettingsNotNil() predicate.Organization

SettingsNotNil applies the NotNil predicate on the "settings" field.

func Slug

Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ.

func SlugContains

func SlugContains(v string) predicate.Organization

SlugContains applies the Contains predicate on the "slug" field.

func SlugContainsFold

func SlugContainsFold(v string) predicate.Organization

SlugContainsFold applies the ContainsFold predicate on the "slug" field.

func SlugEQ

func SlugEQ(v string) predicate.Organization

SlugEQ applies the EQ predicate on the "slug" field.

func SlugEqualFold

func SlugEqualFold(v string) predicate.Organization

SlugEqualFold applies the EqualFold predicate on the "slug" field.

func SlugGT

func SlugGT(v string) predicate.Organization

SlugGT applies the GT predicate on the "slug" field.

func SlugGTE

func SlugGTE(v string) predicate.Organization

SlugGTE applies the GTE predicate on the "slug" field.

func SlugHasPrefix

func SlugHasPrefix(v string) predicate.Organization

SlugHasPrefix applies the HasPrefix predicate on the "slug" field.

func SlugHasSuffix

func SlugHasSuffix(v string) predicate.Organization

SlugHasSuffix applies the HasSuffix predicate on the "slug" field.

func SlugIn

func SlugIn(vs ...string) predicate.Organization

SlugIn applies the In predicate on the "slug" field.

func SlugLT

func SlugLT(v string) predicate.Organization

SlugLT applies the LT predicate on the "slug" field.

func SlugLTE

func SlugLTE(v string) predicate.Organization

SlugLTE applies the LTE predicate on the "slug" field.

func SlugNEQ

func SlugNEQ(v string) predicate.Organization

SlugNEQ applies the NEQ predicate on the "slug" field.

func SlugNotIn

func SlugNotIn(vs ...string) predicate.Organization

SlugNotIn applies the NotIn predicate on the "slug" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Organization

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Organization

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Organization

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Organization

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Organization

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Organization

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Organization

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Organization

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Organization

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WebsiteURL added in v0.2.0

func WebsiteURL(v string) predicate.Organization

WebsiteURL applies equality check predicate on the "website_url" field. It's identical to WebsiteURLEQ.

func WebsiteURLContains added in v0.2.0

func WebsiteURLContains(v string) predicate.Organization

WebsiteURLContains applies the Contains predicate on the "website_url" field.

func WebsiteURLContainsFold added in v0.2.0

func WebsiteURLContainsFold(v string) predicate.Organization

WebsiteURLContainsFold applies the ContainsFold predicate on the "website_url" field.

func WebsiteURLEQ added in v0.2.0

func WebsiteURLEQ(v string) predicate.Organization

WebsiteURLEQ applies the EQ predicate on the "website_url" field.

func WebsiteURLEqualFold added in v0.2.0

func WebsiteURLEqualFold(v string) predicate.Organization

WebsiteURLEqualFold applies the EqualFold predicate on the "website_url" field.

func WebsiteURLGT added in v0.2.0

func WebsiteURLGT(v string) predicate.Organization

WebsiteURLGT applies the GT predicate on the "website_url" field.

func WebsiteURLGTE added in v0.2.0

func WebsiteURLGTE(v string) predicate.Organization

WebsiteURLGTE applies the GTE predicate on the "website_url" field.

func WebsiteURLHasPrefix added in v0.2.0

func WebsiteURLHasPrefix(v string) predicate.Organization

WebsiteURLHasPrefix applies the HasPrefix predicate on the "website_url" field.

func WebsiteURLHasSuffix added in v0.2.0

func WebsiteURLHasSuffix(v string) predicate.Organization

WebsiteURLHasSuffix applies the HasSuffix predicate on the "website_url" field.

func WebsiteURLIn added in v0.2.0

func WebsiteURLIn(vs ...string) predicate.Organization

WebsiteURLIn applies the In predicate on the "website_url" field.

func WebsiteURLIsNil added in v0.2.0

func WebsiteURLIsNil() predicate.Organization

WebsiteURLIsNil applies the IsNil predicate on the "website_url" field.

func WebsiteURLLT added in v0.2.0

func WebsiteURLLT(v string) predicate.Organization

WebsiteURLLT applies the LT predicate on the "website_url" field.

func WebsiteURLLTE added in v0.2.0

func WebsiteURLLTE(v string) predicate.Organization

WebsiteURLLTE applies the LTE predicate on the "website_url" field.

func WebsiteURLNEQ added in v0.2.0

func WebsiteURLNEQ(v string) predicate.Organization

WebsiteURLNEQ applies the NEQ predicate on the "website_url" field.

func WebsiteURLNotIn added in v0.2.0

func WebsiteURLNotIn(vs ...string) predicate.Organization

WebsiteURLNotIn applies the NotIn predicate on the "website_url" field.

func WebsiteURLNotNil added in v0.2.0

func WebsiteURLNotNil() predicate.Organization

WebsiteURLNotNil applies the NotNil predicate on the "website_url" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Organization queries.

func ByAPIKeys

func ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAPIKeys orders the results by api_keys terms.

func ByAPIKeysCount

func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption

ByAPIKeysCount orders the results by api_keys count.

func ByActive

func ByActive(opts ...sql.OrderTermOption) OrderOption

ByActive orders the results by the active field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription added in v0.2.0

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInvites added in v0.2.0

func ByInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByInvites orders the results by invites terms.

func ByInvitesCount added in v0.2.0

func ByInvitesCount(opts ...sql.OrderTermOption) OrderOption

ByInvitesCount orders the results by invites count.

func ByLogoURL

func ByLogoURL(opts ...sql.OrderTermOption) OrderOption

ByLogoURL orders the results by the logo_url field.

func ByMemberships

func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMemberships orders the results by memberships terms.

func ByMembershipsCount

func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption

ByMembershipsCount orders the results by memberships count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOauthApps

func ByOauthApps(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOauthApps orders the results by oauth_apps terms.

func ByOauthAppsCount

func ByOauthAppsCount(opts ...sql.OrderTermOption) OrderOption

ByOauthAppsCount orders the results by oauth_apps count.

func ByOrgType added in v0.2.0

func ByOrgType(opts ...sql.OrderTermOption) OrderOption

ByOrgType orders the results by the org_type field.

func ByOwnerField added in v0.2.0

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByOwnerPrincipalID added in v0.2.0

func ByOwnerPrincipalID(opts ...sql.OrderTermOption) OrderOption

ByOwnerPrincipalID orders the results by the owner_principal_id field.

func ByPlan

func ByPlan(opts ...sql.OrderTermOption) OrderOption

ByPlan orders the results by the plan field.

func ByPrincipalMemberships added in v0.2.0

func ByPrincipalMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPrincipalMemberships orders the results by principal_memberships terms.

func ByPrincipalMembershipsCount added in v0.2.0

func ByPrincipalMembershipsCount(opts ...sql.OrderTermOption) OrderOption

ByPrincipalMembershipsCount orders the results by principal_memberships count.

func ByPrincipals added in v0.2.0

func ByPrincipals(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPrincipals orders the results by principals terms.

func ByPrincipalsCount added in v0.2.0

func ByPrincipalsCount(opts ...sql.OrderTermOption) OrderOption

ByPrincipalsCount orders the results by principals count.

func ByServiceAccounts

func ByServiceAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByServiceAccounts orders the results by service_accounts terms.

func ByServiceAccountsCount

func ByServiceAccountsCount(opts ...sql.OrderTermOption) OrderOption

ByServiceAccountsCount orders the results by service_accounts count.

func BySlug

func BySlug(opts ...sql.OrderTermOption) OrderOption

BySlug orders the results by the slug field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByWebsiteURL added in v0.2.0

func ByWebsiteURL(opts ...sql.OrderTermOption) OrderOption

ByWebsiteURL orders the results by the website_url field.

type OrgType added in v0.2.0

type OrgType string

OrgType defines the type for the "org_type" enum field.

const (
	OrgTypePersonal   OrgType = "personal"
	OrgTypeTeam       OrgType = "team"
	OrgTypeEnterprise OrgType = "enterprise"
)

OrgType values.

func (OrgType) String added in v0.2.0

func (ot OrgType) String() string

type Plan

type Plan string

Plan defines the type for the "plan" enum field.

const (
	PlanFree       Plan = "free"
	PlanStarter    Plan = "starter"
	PlanPro        Plan = "pro"
	PlanEnterprise Plan = "enterprise"
)

Plan values.

func (Plan) String

func (pl Plan) String() string

Jump to

Keyboard shortcuts

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