workspace

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the workspace type in the database.
	Label = "workspace"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldPlan holds the string denoting the plan field in the database.
	FieldPlan = "plan"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// 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"

	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeWorkspaceRoles holds the string denoting the workspace_roles edge name in mutations.
	EdgeWorkspaceRoles = "workspace_roles"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"

	// Table holds the table name of the workspace in the database.
	Table = "workspacesx"
	// OwnerTable is the table the holds the owner relation/edge.
	OwnerTable = "workspacesx"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "usersx"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_workspace"
	// WorkspaceRolesTable is the table the holds the workspace_roles relation/edge.
	WorkspaceRolesTable = "workspacerolesx"
	// WorkspaceRolesInverseTable is the table name for the WorkspaceRole entity.
	// It exists in this package in order to avoid circular dependency with the "workspacerole" package.
	WorkspaceRolesInverseTable = "workspacerolesx"
	// WorkspaceRolesColumn is the table column denoting the workspace_roles relation/edge.
	WorkspaceRolesColumn = "workspace_workspace_roles"
	// GroupsTable is the table the holds the groups relation/edge.
	GroupsTable = "groupsx"
	// GroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	GroupsInverseTable = "groupsx"
	// GroupsColumn is the table column denoting the groups relation/edge.
	GroupsColumn = "workspace_groups"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// PlanValidator is a validator for the "plan" field. It is called by the builders before save.
	PlanValidator func(string) error
	// DescriptionValidator is a validator for the "description" field. It is called by the builders before save.
	DescriptionValidator func(string) error
	// 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
	// DefaultID holds the default value on creation for the id field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for workspace fields.

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

ForeignKeys holds the SQL foreign-keys that are owned by the Workspace type.

Functions

func And

func And(predicates ...predicate.Workspace) predicate.Workspace

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Workspace

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Workspace

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Workspace

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Workspace

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Workspace

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Workspace

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Workspace

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

func CreatedAtNotIn

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

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

func Description

func Description(v string) predicate.Workspace

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

func DescriptionContains

func DescriptionContains(v string) predicate.Workspace

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Workspace

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Workspace

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Workspace

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

func DescriptionGT

func DescriptionGT(v string) predicate.Workspace

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Workspace

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Workspace

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Workspace

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Workspace

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

func DescriptionLT

func DescriptionLT(v string) predicate.Workspace

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Workspace

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Workspace

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Workspace

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

func HasGroups

func HasGroups() predicate.Workspace

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.Group) predicate.Workspace

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

func HasOwner

func HasOwner() predicate.Workspace

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

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Workspace

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

func HasWorkspaceRoles

func HasWorkspaceRoles() predicate.Workspace

HasWorkspaceRoles applies the HasEdge predicate on the "workspace_roles" edge.

func HasWorkspaceRolesWith

func HasWorkspaceRolesWith(preds ...predicate.WorkspaceRole) predicate.Workspace

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

func ID

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Workspace

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Workspace

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Workspace

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Workspace

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Workspace

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Workspace

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MetadataIsNil

func MetadataIsNil() predicate.Workspace

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Workspace

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Name

func Name(v string) predicate.Workspace

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

func NameContains

func NameContains(v string) predicate.Workspace

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

func NameContainsFold

func NameContainsFold(v string) predicate.Workspace

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

func NameEQ

func NameEQ(v string) predicate.Workspace

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

func NameEqualFold

func NameEqualFold(v string) predicate.Workspace

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

func NameGT

func NameGT(v string) predicate.Workspace

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

func NameGTE

func NameGTE(v string) predicate.Workspace

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Workspace

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Workspace

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Workspace

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

func NameLTE

func NameLTE(v string) predicate.Workspace

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

func NameNEQ

func NameNEQ(v string) predicate.Workspace

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

func NameNotIn

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

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

Or groups list of predicates with the OR operator between them.

func Plan

func Plan(v string) predicate.Workspace

Plan applies equality check predicate on the "plan" field. It's identical to PlanEQ.

func PlanContains

func PlanContains(v string) predicate.Workspace

PlanContains applies the Contains predicate on the "plan" field.

func PlanContainsFold

func PlanContainsFold(v string) predicate.Workspace

PlanContainsFold applies the ContainsFold predicate on the "plan" field.

func PlanEQ

func PlanEQ(v string) predicate.Workspace

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

func PlanEqualFold

func PlanEqualFold(v string) predicate.Workspace

PlanEqualFold applies the EqualFold predicate on the "plan" field.

func PlanGT

func PlanGT(v string) predicate.Workspace

PlanGT applies the GT predicate on the "plan" field.

func PlanGTE

func PlanGTE(v string) predicate.Workspace

PlanGTE applies the GTE predicate on the "plan" field.

func PlanHasPrefix

func PlanHasPrefix(v string) predicate.Workspace

PlanHasPrefix applies the HasPrefix predicate on the "plan" field.

func PlanHasSuffix

func PlanHasSuffix(v string) predicate.Workspace

PlanHasSuffix applies the HasSuffix predicate on the "plan" field.

func PlanIn

func PlanIn(vs ...string) predicate.Workspace

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

func PlanLT

func PlanLT(v string) predicate.Workspace

PlanLT applies the LT predicate on the "plan" field.

func PlanLTE

func PlanLTE(v string) predicate.Workspace

PlanLTE applies the LTE predicate on the "plan" field.

func PlanNEQ

func PlanNEQ(v string) predicate.Workspace

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

func PlanNotIn

func PlanNotIn(vs ...string) predicate.Workspace

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Workspace

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Workspace

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Workspace

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Workspace

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Workspace

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Workspace

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Workspace

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

func UpdatedAtNotIn

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

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

This section is empty.

Jump to

Keyboard shortcuts

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