workspacefeaturecontrol

package
v0.0.0-...-65c6c44 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the workspacefeaturecontrol type in the database.
	Label = "workspace_feature_control"
	// 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"
	// FieldCapability holds the string denoting the capability field in the database.
	FieldCapability = "capability"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldRolloutStage holds the string denoting the rollout_stage field in the database.
	FieldRolloutStage = "rollout_stage"
	// FieldReasonCode holds the string denoting the reason_code field in the database.
	FieldReasonCode = "reason_code"
	// EdgeWorkspace holds the string denoting the workspace edge name in mutations.
	EdgeWorkspace = "workspace"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the workspacefeaturecontrol in the database.
	Table = "workspace_feature_controls"
	// WorkspaceTable is the table that holds the workspace relation/edge.
	WorkspaceTable = "workspace_feature_controls"
	// WorkspaceInverseTable is the table name for the RevenueWorkspace entity.
	// It exists in this package in order to avoid circular dependency with the "revenueworkspace" package.
	WorkspaceInverseTable = "revenue_workspaces"
	// WorkspaceColumn is the table column denoting the workspace relation/edge.
	WorkspaceColumn = "revenue_workspace_id"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "workspace_feature_controls"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_workspace_feature_controls"
)

Variables

View Source
var (
	Hooks  [1]ent.Hook
	Policy ent.Policy
	// 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
	// CapabilityValidator is a validator for the "capability" field. It is called by the builders before save.
	CapabilityValidator func(string) error
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// DefaultRolloutStage holds the default value on creation for the "rollout_stage" field.
	DefaultRolloutStage string
	// RolloutStageValidator is a validator for the "rollout_stage" field. It is called by the builders before save.
	RolloutStageValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/Oppulence-Engineering/rowboat/apps/rowboat-api/ent/runtime"

Columns holds all SQL columns for workspacefeaturecontrol fields.

View Source
var ForeignKeys = []string{
	"revenue_workspace_id",
	"user_workspace_feature_controls",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "workspace_feature_controls" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func Capability

Capability applies equality check predicate on the "capability" field. It's identical to CapabilityEQ.

func CapabilityContains

func CapabilityContains(v string) predicate.WorkspaceFeatureControl

CapabilityContains applies the Contains predicate on the "capability" field.

func CapabilityContainsFold

func CapabilityContainsFold(v string) predicate.WorkspaceFeatureControl

CapabilityContainsFold applies the ContainsFold predicate on the "capability" field.

func CapabilityEQ

CapabilityEQ applies the EQ predicate on the "capability" field.

func CapabilityEqualFold

func CapabilityEqualFold(v string) predicate.WorkspaceFeatureControl

CapabilityEqualFold applies the EqualFold predicate on the "capability" field.

func CapabilityGT

CapabilityGT applies the GT predicate on the "capability" field.

func CapabilityGTE

func CapabilityGTE(v string) predicate.WorkspaceFeatureControl

CapabilityGTE applies the GTE predicate on the "capability" field.

func CapabilityHasPrefix

func CapabilityHasPrefix(v string) predicate.WorkspaceFeatureControl

CapabilityHasPrefix applies the HasPrefix predicate on the "capability" field.

func CapabilityHasSuffix

func CapabilityHasSuffix(v string) predicate.WorkspaceFeatureControl

CapabilityHasSuffix applies the HasSuffix predicate on the "capability" field.

func CapabilityIn

func CapabilityIn(vs ...string) predicate.WorkspaceFeatureControl

CapabilityIn applies the In predicate on the "capability" field.

func CapabilityLT

CapabilityLT applies the LT predicate on the "capability" field.

func CapabilityLTE

func CapabilityLTE(v string) predicate.WorkspaceFeatureControl

CapabilityLTE applies the LTE predicate on the "capability" field.

func CapabilityNEQ

func CapabilityNEQ(v string) predicate.WorkspaceFeatureControl

CapabilityNEQ applies the NEQ predicate on the "capability" field.

func CapabilityNotIn

func CapabilityNotIn(vs ...string) predicate.WorkspaceFeatureControl

CapabilityNotIn applies the NotIn predicate on the "capability" field.

func CreatedAt

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

func CreatedAtEQ

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

func CreatedAtGT

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

func CreatedAtGTE

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

func CreatedAtIn

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

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

func CreatedAtLT

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

func CreatedAtLTE

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

func CreatedAtNEQ

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

func CreatedAtNotIn

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

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

func Enabled

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func HasUser

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.WorkspaceFeatureControl

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

func HasWorkspace

func HasWorkspace() predicate.WorkspaceFeatureControl

HasWorkspace applies the HasEdge predicate on the "workspace" edge.

func HasWorkspaceWith

HasWorkspaceWith applies the HasEdge predicate on the "workspace" 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

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ReasonCode

ReasonCode applies equality check predicate on the "reason_code" field. It's identical to ReasonCodeEQ.

func ReasonCodeContains

func ReasonCodeContains(v string) predicate.WorkspaceFeatureControl

ReasonCodeContains applies the Contains predicate on the "reason_code" field.

func ReasonCodeContainsFold

func ReasonCodeContainsFold(v string) predicate.WorkspaceFeatureControl

ReasonCodeContainsFold applies the ContainsFold predicate on the "reason_code" field.

func ReasonCodeEQ

ReasonCodeEQ applies the EQ predicate on the "reason_code" field.

func ReasonCodeEqualFold

func ReasonCodeEqualFold(v string) predicate.WorkspaceFeatureControl

ReasonCodeEqualFold applies the EqualFold predicate on the "reason_code" field.

func ReasonCodeGT

ReasonCodeGT applies the GT predicate on the "reason_code" field.

func ReasonCodeGTE

func ReasonCodeGTE(v string) predicate.WorkspaceFeatureControl

ReasonCodeGTE applies the GTE predicate on the "reason_code" field.

func ReasonCodeHasPrefix

func ReasonCodeHasPrefix(v string) predicate.WorkspaceFeatureControl

ReasonCodeHasPrefix applies the HasPrefix predicate on the "reason_code" field.

func ReasonCodeHasSuffix

func ReasonCodeHasSuffix(v string) predicate.WorkspaceFeatureControl

ReasonCodeHasSuffix applies the HasSuffix predicate on the "reason_code" field.

func ReasonCodeIn

func ReasonCodeIn(vs ...string) predicate.WorkspaceFeatureControl

ReasonCodeIn applies the In predicate on the "reason_code" field.

func ReasonCodeIsNil

func ReasonCodeIsNil() predicate.WorkspaceFeatureControl

ReasonCodeIsNil applies the IsNil predicate on the "reason_code" field.

func ReasonCodeLT

ReasonCodeLT applies the LT predicate on the "reason_code" field.

func ReasonCodeLTE

func ReasonCodeLTE(v string) predicate.WorkspaceFeatureControl

ReasonCodeLTE applies the LTE predicate on the "reason_code" field.

func ReasonCodeNEQ

func ReasonCodeNEQ(v string) predicate.WorkspaceFeatureControl

ReasonCodeNEQ applies the NEQ predicate on the "reason_code" field.

func ReasonCodeNotIn

func ReasonCodeNotIn(vs ...string) predicate.WorkspaceFeatureControl

ReasonCodeNotIn applies the NotIn predicate on the "reason_code" field.

func ReasonCodeNotNil

func ReasonCodeNotNil() predicate.WorkspaceFeatureControl

ReasonCodeNotNil applies the NotNil predicate on the "reason_code" field.

func RolloutStage

RolloutStage applies equality check predicate on the "rollout_stage" field. It's identical to RolloutStageEQ.

func RolloutStageContains

func RolloutStageContains(v string) predicate.WorkspaceFeatureControl

RolloutStageContains applies the Contains predicate on the "rollout_stage" field.

func RolloutStageContainsFold

func RolloutStageContainsFold(v string) predicate.WorkspaceFeatureControl

RolloutStageContainsFold applies the ContainsFold predicate on the "rollout_stage" field.

func RolloutStageEQ

func RolloutStageEQ(v string) predicate.WorkspaceFeatureControl

RolloutStageEQ applies the EQ predicate on the "rollout_stage" field.

func RolloutStageEqualFold

func RolloutStageEqualFold(v string) predicate.WorkspaceFeatureControl

RolloutStageEqualFold applies the EqualFold predicate on the "rollout_stage" field.

func RolloutStageGT

func RolloutStageGT(v string) predicate.WorkspaceFeatureControl

RolloutStageGT applies the GT predicate on the "rollout_stage" field.

func RolloutStageGTE

func RolloutStageGTE(v string) predicate.WorkspaceFeatureControl

RolloutStageGTE applies the GTE predicate on the "rollout_stage" field.

func RolloutStageHasPrefix

func RolloutStageHasPrefix(v string) predicate.WorkspaceFeatureControl

RolloutStageHasPrefix applies the HasPrefix predicate on the "rollout_stage" field.

func RolloutStageHasSuffix

func RolloutStageHasSuffix(v string) predicate.WorkspaceFeatureControl

RolloutStageHasSuffix applies the HasSuffix predicate on the "rollout_stage" field.

func RolloutStageIn

func RolloutStageIn(vs ...string) predicate.WorkspaceFeatureControl

RolloutStageIn applies the In predicate on the "rollout_stage" field.

func RolloutStageLT

func RolloutStageLT(v string) predicate.WorkspaceFeatureControl

RolloutStageLT applies the LT predicate on the "rollout_stage" field.

func RolloutStageLTE

func RolloutStageLTE(v string) predicate.WorkspaceFeatureControl

RolloutStageLTE applies the LTE predicate on the "rollout_stage" field.

func RolloutStageNEQ

func RolloutStageNEQ(v string) predicate.WorkspaceFeatureControl

RolloutStageNEQ applies the NEQ predicate on the "rollout_stage" field.

func RolloutStageNotIn

func RolloutStageNotIn(vs ...string) predicate.WorkspaceFeatureControl

RolloutStageNotIn applies the NotIn predicate on the "rollout_stage" field.

func UpdatedAt

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

func UpdatedAtEQ

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

func UpdatedAtGT

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

func UpdatedAtGTE

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

func UpdatedAtIn

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

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

func UpdatedAtLT

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

func UpdatedAtLTE

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

func UpdatedAtNEQ

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

func UpdatedAtNotIn

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

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).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the WorkspaceFeatureControl queries.

func ByCapability

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

ByCapability orders the results by the capability field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEnabled

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

ByEnabled orders the results by the enabled field.

func ByID

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

ByID orders the results by the id field.

func ByReasonCode

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

ByReasonCode orders the results by the reason_code field.

func ByRolloutStage

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

ByRolloutStage orders the results by the rollout_stage field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserField

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

ByUserField orders the results by user field.

func ByWorkspaceField

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

ByWorkspaceField orders the results by workspace field.

Jump to

Keyboard shortcuts

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