userlevel

package
v0.0.0-...-7d6f566 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the userlevel type in the database.
	Label = "user_level"
	// FieldID holds the string denoting the id field in the database.
	FieldID        = "id"         // FieldCreatedAt holds the string denoting the created_at vertex property in the database.
	FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at vertex property in the database.
	FieldUpdatedAt = "updated_at" // FieldCode holds the string denoting the code vertex property in the database.
	FieldCode      = "code"       // FieldWorkspace holds the string denoting the workspace vertex property in the database.
	FieldWorkspace = "workspace"

	// EdgeDeveloper holds the string denoting the developer edge name in mutations.
	EdgeDeveloper = "developer"
	// EdgeLevel holds the string denoting the level edge name in mutations.
	EdgeLevel = "level"

	// Table holds the table name of the userlevel in the database.
	Table = "user_levels"
	// DeveloperTable is the table the holds the developer relation/edge.
	DeveloperTable = "user_levels"
	// DeveloperInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	DeveloperInverseTable = "users"
	// DeveloperColumn is the table column denoting the developer relation/edge.
	DeveloperColumn = "user_level_developer"
	// LevelTable is the table the holds the level relation/edge.
	LevelTable = "user_levels"
	// LevelInverseTable is the table name for the Level entity.
	// It exists in this package in order to avoid circular dependency with the "level" package.
	LevelInverseTable = "levels"
	// LevelColumn is the table column denoting the level relation/edge.
	LevelColumn = "user_level_level"
)

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
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// WorkspaceValidator is a validator for the "workspace" field. It is called by the builders before save.
	WorkspaceValidator func(string) error
)

Columns holds all SQL columns for userlevel fields.

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

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

Functions

func And

func And(predicates ...predicate.UserLevel) predicate.UserLevel

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

func Code

func Code(v string) predicate.UserLevel

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.UserLevel

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.UserLevel

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.UserLevel

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.UserLevel

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.UserLevel

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.UserLevel

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.UserLevel

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.UserLevel

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.UserLevel

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.UserLevel

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.UserLevel

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.UserLevel

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.UserLevel

CodeNotIn applies the NotIn predicate on the "code" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserLevel

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserLevel

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserLevel

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserLevel

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserLevel

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserLevel

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserLevel

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

func CreatedAtNotIn

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

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

func HasDeveloper

func HasDeveloper() predicate.UserLevel

HasDeveloper applies the HasEdge predicate on the "developer" edge.

func HasDeveloperWith

func HasDeveloperWith(preds ...predicate.User) predicate.UserLevel

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

func HasLevel

func HasLevel() predicate.UserLevel

HasLevel applies the HasEdge predicate on the "level" edge.

func HasLevelWith

func HasLevelWith(preds ...predicate.Level) predicate.UserLevel

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

func ID

func ID(id int) predicate.UserLevel

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.UserLevel

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.UserLevel

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.UserLevel

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.UserLevel

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.UserLevel

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.UserLevel

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserLevel

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.UserLevel

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserLevel) predicate.UserLevel

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UserLevel

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UserLevel

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UserLevel

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UserLevel

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UserLevel

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UserLevel

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UserLevel

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

func UpdatedAtNotIn

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

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

func Workspace

func Workspace(v string) predicate.UserLevel

Workspace applies equality check predicate on the "workspace" field. It's identical to WorkspaceEQ.

func WorkspaceContains

func WorkspaceContains(v string) predicate.UserLevel

WorkspaceContains applies the Contains predicate on the "workspace" field.

func WorkspaceContainsFold

func WorkspaceContainsFold(v string) predicate.UserLevel

WorkspaceContainsFold applies the ContainsFold predicate on the "workspace" field.

func WorkspaceEQ

func WorkspaceEQ(v string) predicate.UserLevel

WorkspaceEQ applies the EQ predicate on the "workspace" field.

func WorkspaceEqualFold

func WorkspaceEqualFold(v string) predicate.UserLevel

WorkspaceEqualFold applies the EqualFold predicate on the "workspace" field.

func WorkspaceGT

func WorkspaceGT(v string) predicate.UserLevel

WorkspaceGT applies the GT predicate on the "workspace" field.

func WorkspaceGTE

func WorkspaceGTE(v string) predicate.UserLevel

WorkspaceGTE applies the GTE predicate on the "workspace" field.

func WorkspaceHasPrefix

func WorkspaceHasPrefix(v string) predicate.UserLevel

WorkspaceHasPrefix applies the HasPrefix predicate on the "workspace" field.

func WorkspaceHasSuffix

func WorkspaceHasSuffix(v string) predicate.UserLevel

WorkspaceHasSuffix applies the HasSuffix predicate on the "workspace" field.

func WorkspaceIn

func WorkspaceIn(vs ...string) predicate.UserLevel

WorkspaceIn applies the In predicate on the "workspace" field.

func WorkspaceLT

func WorkspaceLT(v string) predicate.UserLevel

WorkspaceLT applies the LT predicate on the "workspace" field.

func WorkspaceLTE

func WorkspaceLTE(v string) predicate.UserLevel

WorkspaceLTE applies the LTE predicate on the "workspace" field.

func WorkspaceNEQ

func WorkspaceNEQ(v string) predicate.UserLevel

WorkspaceNEQ applies the NEQ predicate on the "workspace" field.

func WorkspaceNotIn

func WorkspaceNotIn(vs ...string) predicate.UserLevel

WorkspaceNotIn applies the NotIn predicate on the "workspace" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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