groups

package
v0.3.9-beta.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the groups type in the database.
	Label = "groups"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldGroupType holds the string denoting the group_type field in the database.
	FieldGroupType = "group_type"
	// FieldGroupStatus holds the string denoting the group_status field in the database.
	FieldGroupStatus = "group_status"
	// FieldSortOrder holds the string denoting the sort_order field in the database.
	FieldSortOrder = "sort_order"
	// FieldParentID holds the string denoting the parent_id field in the database.
	FieldParentID = "parent_id"
	// FieldMaxMembers holds the string denoting the max_members field in the database.
	FieldMaxMembers = "max_members"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// FieldExternalID holds the string denoting the external_id field in the database.
	FieldExternalID = "external_id"
	// FieldDepartmentID holds the string denoting the department_id field in the database.
	FieldDepartmentID = "department_id"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// EdgeLionGroups holds the string denoting the lion_groups edge name in mutations.
	EdgeLionGroups = "lion_groups"
	// EdgeLionUserGroups holds the string denoting the lion_user_groups edge name in mutations.
	EdgeLionUserGroups = "lion_user_groups"
	// EdgeLionDepartments holds the string denoting the lion_departments edge name in mutations.
	EdgeLionDepartments = "lion_departments"
	// Table holds the table name of the groups in the database.
	Table = "lion_groups"
	// LionGroupsTable is the table that holds the lion_groups relation/edge.
	LionGroupsTable = "lion_group_roles"
	// LionGroupsInverseTable is the table name for the GroupRoles entity.
	// It exists in this package in order to avoid circular dependency with the "grouproles" package.
	LionGroupsInverseTable = "lion_group_roles"
	// LionGroupsColumn is the table column denoting the lion_groups relation/edge.
	LionGroupsColumn = "group_id"
	// LionUserGroupsTable is the table that holds the lion_user_groups relation/edge.
	LionUserGroupsTable = "lion_user_groups"
	// LionUserGroupsInverseTable is the table name for the UserGroups entity.
	// It exists in this package in order to avoid circular dependency with the "usergroups" package.
	LionUserGroupsInverseTable = "lion_user_groups"
	// LionUserGroupsColumn is the table column denoting the lion_user_groups relation/edge.
	LionUserGroupsColumn = "group_id"
	// LionDepartmentsTable is the table that holds the lion_departments relation/edge.
	LionDepartmentsTable = "lion_groups"
	// LionDepartmentsInverseTable is the table name for the Departments entity.
	// It exists in this package in order to avoid circular dependency with the "departments" package.
	LionDepartmentsInverseTable = "lion_departments"
	// LionDepartmentsColumn is the table column denoting the lion_departments relation/edge.
	LionDepartmentsColumn = "department_id"
)

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
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy int64
	// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
	DefaultUpdatedBy int64
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultGroupType holds the default value on creation for the "group_type" field.
	DefaultGroupType int
	// DefaultGroupStatus holds the default value on creation for the "group_status" field.
	DefaultGroupStatus int
	// DefaultSortOrder holds the default value on creation for the "sort_order" field.
	DefaultSortOrder int
	// DefaultParentID holds the default value on creation for the "parent_id" field.
	DefaultParentID int
	// DefaultMaxMembers holds the default value on creation for the "max_members" field.
	DefaultMaxMembers int
	// DefaultMetadata holds the default value on creation for the "metadata" field.
	DefaultMetadata map[string]string
	// DefaultExternalID holds the default value on creation for the "external_id" field.
	DefaultExternalID string
	// DefaultDepartmentID holds the default value on creation for the "department_id" field.
	DefaultDepartmentID int
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
)

Columns holds all SQL columns for groups fields.

Functions

func And

func And(predicates ...predicate.Groups) predicate.Groups

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Groups

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Groups

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Groups

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Groups

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Groups

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Groups

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Groups

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int64) predicate.Groups

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.Groups

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.Groups

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.Groups

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.Groups

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Groups

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.Groups

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.Groups

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.Groups

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.Groups

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Groups

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Groups

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Groups

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Groups

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Groups

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Groups

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Groups

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Groups

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Groups

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Groups

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Groups

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Groups

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DepartmentID

func DepartmentID(v int) predicate.Groups

DepartmentID applies equality check predicate on the "department_id" field. It's identical to DepartmentIDEQ.

func DepartmentIDEQ

func DepartmentIDEQ(v int) predicate.Groups

DepartmentIDEQ applies the EQ predicate on the "department_id" field.

func DepartmentIDIn

func DepartmentIDIn(vs ...int) predicate.Groups

DepartmentIDIn applies the In predicate on the "department_id" field.

func DepartmentIDNEQ

func DepartmentIDNEQ(v int) predicate.Groups

DepartmentIDNEQ applies the NEQ predicate on the "department_id" field.

func DepartmentIDNotIn

func DepartmentIDNotIn(vs ...int) predicate.Groups

DepartmentIDNotIn applies the NotIn predicate on the "department_id" field.

func Description

func Description(v string) predicate.Groups

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

func DescriptionContains

func DescriptionContains(v string) predicate.Groups

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Groups

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Groups

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Groups

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

func DescriptionGT

func DescriptionGT(v string) predicate.Groups

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Groups

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Groups

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Groups

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Groups

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Groups

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Groups

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

func DescriptionNotIn

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

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

func ExternalID

func ExternalID(v string) predicate.Groups

ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.

func ExternalIDContains

func ExternalIDContains(v string) predicate.Groups

ExternalIDContains applies the Contains predicate on the "external_id" field.

func ExternalIDContainsFold

func ExternalIDContainsFold(v string) predicate.Groups

ExternalIDContainsFold applies the ContainsFold predicate on the "external_id" field.

func ExternalIDEQ

func ExternalIDEQ(v string) predicate.Groups

ExternalIDEQ applies the EQ predicate on the "external_id" field.

func ExternalIDEqualFold

func ExternalIDEqualFold(v string) predicate.Groups

ExternalIDEqualFold applies the EqualFold predicate on the "external_id" field.

func ExternalIDGT

func ExternalIDGT(v string) predicate.Groups

ExternalIDGT applies the GT predicate on the "external_id" field.

func ExternalIDGTE

func ExternalIDGTE(v string) predicate.Groups

ExternalIDGTE applies the GTE predicate on the "external_id" field.

func ExternalIDHasPrefix

func ExternalIDHasPrefix(v string) predicate.Groups

ExternalIDHasPrefix applies the HasPrefix predicate on the "external_id" field.

func ExternalIDHasSuffix

func ExternalIDHasSuffix(v string) predicate.Groups

ExternalIDHasSuffix applies the HasSuffix predicate on the "external_id" field.

func ExternalIDIn

func ExternalIDIn(vs ...string) predicate.Groups

ExternalIDIn applies the In predicate on the "external_id" field.

func ExternalIDLT

func ExternalIDLT(v string) predicate.Groups

ExternalIDLT applies the LT predicate on the "external_id" field.

func ExternalIDLTE

func ExternalIDLTE(v string) predicate.Groups

ExternalIDLTE applies the LTE predicate on the "external_id" field.

func ExternalIDNEQ

func ExternalIDNEQ(v string) predicate.Groups

ExternalIDNEQ applies the NEQ predicate on the "external_id" field.

func ExternalIDNotIn

func ExternalIDNotIn(vs ...string) predicate.Groups

ExternalIDNotIn applies the NotIn predicate on the "external_id" field.

func GroupStatus

func GroupStatus(v int) predicate.Groups

GroupStatus applies equality check predicate on the "group_status" field. It's identical to GroupStatusEQ.

func GroupStatusEQ

func GroupStatusEQ(v int) predicate.Groups

GroupStatusEQ applies the EQ predicate on the "group_status" field.

func GroupStatusGT

func GroupStatusGT(v int) predicate.Groups

GroupStatusGT applies the GT predicate on the "group_status" field.

func GroupStatusGTE

func GroupStatusGTE(v int) predicate.Groups

GroupStatusGTE applies the GTE predicate on the "group_status" field.

func GroupStatusIn

func GroupStatusIn(vs ...int) predicate.Groups

GroupStatusIn applies the In predicate on the "group_status" field.

func GroupStatusLT

func GroupStatusLT(v int) predicate.Groups

GroupStatusLT applies the LT predicate on the "group_status" field.

func GroupStatusLTE

func GroupStatusLTE(v int) predicate.Groups

GroupStatusLTE applies the LTE predicate on the "group_status" field.

func GroupStatusNEQ

func GroupStatusNEQ(v int) predicate.Groups

GroupStatusNEQ applies the NEQ predicate on the "group_status" field.

func GroupStatusNotIn

func GroupStatusNotIn(vs ...int) predicate.Groups

GroupStatusNotIn applies the NotIn predicate on the "group_status" field.

func GroupType

func GroupType(v int) predicate.Groups

GroupType applies equality check predicate on the "group_type" field. It's identical to GroupTypeEQ.

func GroupTypeEQ

func GroupTypeEQ(v int) predicate.Groups

GroupTypeEQ applies the EQ predicate on the "group_type" field.

func GroupTypeGT

func GroupTypeGT(v int) predicate.Groups

GroupTypeGT applies the GT predicate on the "group_type" field.

func GroupTypeGTE

func GroupTypeGTE(v int) predicate.Groups

GroupTypeGTE applies the GTE predicate on the "group_type" field.

func GroupTypeIn

func GroupTypeIn(vs ...int) predicate.Groups

GroupTypeIn applies the In predicate on the "group_type" field.

func GroupTypeLT

func GroupTypeLT(v int) predicate.Groups

GroupTypeLT applies the LT predicate on the "group_type" field.

func GroupTypeLTE

func GroupTypeLTE(v int) predicate.Groups

GroupTypeLTE applies the LTE predicate on the "group_type" field.

func GroupTypeNEQ

func GroupTypeNEQ(v int) predicate.Groups

GroupTypeNEQ applies the NEQ predicate on the "group_type" field.

func GroupTypeNotIn

func GroupTypeNotIn(vs ...int) predicate.Groups

GroupTypeNotIn applies the NotIn predicate on the "group_type" field.

func HasLionDepartments

func HasLionDepartments() predicate.Groups

HasLionDepartments applies the HasEdge predicate on the "lion_departments" edge.

func HasLionDepartmentsWith

func HasLionDepartmentsWith(preds ...predicate.Departments) predicate.Groups

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

func HasLionGroups

func HasLionGroups() predicate.Groups

HasLionGroups applies the HasEdge predicate on the "lion_groups" edge.

func HasLionGroupsWith

func HasLionGroupsWith(preds ...predicate.GroupRoles) predicate.Groups

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

func HasLionUserGroups

func HasLionUserGroups() predicate.Groups

HasLionUserGroups applies the HasEdge predicate on the "lion_user_groups" edge.

func HasLionUserGroupsWith

func HasLionUserGroupsWith(preds ...predicate.UserGroups) predicate.Groups

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

func ID

func ID(id int) predicate.Groups

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Groups

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Groups

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Groups

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Groups

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Groups

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Groups

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MaxMembers

func MaxMembers(v int) predicate.Groups

MaxMembers applies equality check predicate on the "max_members" field. It's identical to MaxMembersEQ.

func MaxMembersEQ

func MaxMembersEQ(v int) predicate.Groups

MaxMembersEQ applies the EQ predicate on the "max_members" field.

func MaxMembersGT

func MaxMembersGT(v int) predicate.Groups

MaxMembersGT applies the GT predicate on the "max_members" field.

func MaxMembersGTE

func MaxMembersGTE(v int) predicate.Groups

MaxMembersGTE applies the GTE predicate on the "max_members" field.

func MaxMembersIn

func MaxMembersIn(vs ...int) predicate.Groups

MaxMembersIn applies the In predicate on the "max_members" field.

func MaxMembersLT

func MaxMembersLT(v int) predicate.Groups

MaxMembersLT applies the LT predicate on the "max_members" field.

func MaxMembersLTE

func MaxMembersLTE(v int) predicate.Groups

MaxMembersLTE applies the LTE predicate on the "max_members" field.

func MaxMembersNEQ

func MaxMembersNEQ(v int) predicate.Groups

MaxMembersNEQ applies the NEQ predicate on the "max_members" field.

func MaxMembersNotIn

func MaxMembersNotIn(vs ...int) predicate.Groups

MaxMembersNotIn applies the NotIn predicate on the "max_members" field.

func Name

func Name(v string) predicate.Groups

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

func NameContains

func NameContains(v string) predicate.Groups

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

func NameContainsFold

func NameContainsFold(v string) predicate.Groups

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

func NameEQ

func NameEQ(v string) predicate.Groups

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

func NameEqualFold

func NameEqualFold(v string) predicate.Groups

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

func NameGT

func NameGT(v string) predicate.Groups

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

func NameGTE

func NameGTE(v string) predicate.Groups

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Groups

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Groups

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Groups

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

func NameLTE

func NameLTE(v string) predicate.Groups

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

func NameNEQ

func NameNEQ(v string) predicate.Groups

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func ParentID

func ParentID(v int) predicate.Groups

ParentID applies equality check predicate on the "parent_id" field. It's identical to ParentIDEQ.

func ParentIDEQ

func ParentIDEQ(v int) predicate.Groups

ParentIDEQ applies the EQ predicate on the "parent_id" field.

func ParentIDGT

func ParentIDGT(v int) predicate.Groups

ParentIDGT applies the GT predicate on the "parent_id" field.

func ParentIDGTE

func ParentIDGTE(v int) predicate.Groups

ParentIDGTE applies the GTE predicate on the "parent_id" field.

func ParentIDIn

func ParentIDIn(vs ...int) predicate.Groups

ParentIDIn applies the In predicate on the "parent_id" field.

func ParentIDLT

func ParentIDLT(v int) predicate.Groups

ParentIDLT applies the LT predicate on the "parent_id" field.

func ParentIDLTE

func ParentIDLTE(v int) predicate.Groups

ParentIDLTE applies the LTE predicate on the "parent_id" field.

func ParentIDNEQ

func ParentIDNEQ(v int) predicate.Groups

ParentIDNEQ applies the NEQ predicate on the "parent_id" field.

func ParentIDNotIn

func ParentIDNotIn(vs ...int) predicate.Groups

ParentIDNotIn applies the NotIn predicate on the "parent_id" field.

func SortOrder

func SortOrder(v int) predicate.Groups

SortOrder applies equality check predicate on the "sort_order" field. It's identical to SortOrderEQ.

func SortOrderEQ

func SortOrderEQ(v int) predicate.Groups

SortOrderEQ applies the EQ predicate on the "sort_order" field.

func SortOrderGT

func SortOrderGT(v int) predicate.Groups

SortOrderGT applies the GT predicate on the "sort_order" field.

func SortOrderGTE

func SortOrderGTE(v int) predicate.Groups

SortOrderGTE applies the GTE predicate on the "sort_order" field.

func SortOrderIn

func SortOrderIn(vs ...int) predicate.Groups

SortOrderIn applies the In predicate on the "sort_order" field.

func SortOrderLT

func SortOrderLT(v int) predicate.Groups

SortOrderLT applies the LT predicate on the "sort_order" field.

func SortOrderLTE

func SortOrderLTE(v int) predicate.Groups

SortOrderLTE applies the LTE predicate on the "sort_order" field.

func SortOrderNEQ

func SortOrderNEQ(v int) predicate.Groups

SortOrderNEQ applies the NEQ predicate on the "sort_order" field.

func SortOrderNotIn

func SortOrderNotIn(vs ...int) predicate.Groups

SortOrderNotIn applies the NotIn predicate on the "sort_order" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Groups

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Groups

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Groups

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Groups

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Groups

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Groups

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Groups

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

func UpdatedAtNotIn

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

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

func UpdatedBy

func UpdatedBy(v int64) predicate.Groups

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.Groups

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.Groups

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.Groups

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.Groups

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Groups

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.Groups

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.Groups

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.Groups

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.Groups

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Groups

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 Groups queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDepartmentID

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

ByDepartmentID orders the results by the department_id field.

func ByDescription

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

ByDescription orders the results by the description field.

func ByExternalID

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

ByExternalID orders the results by the external_id field.

func ByGroupStatus

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

ByGroupStatus orders the results by the group_status field.

func ByGroupType

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

ByGroupType orders the results by the group_type field.

func ByID

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

ByID orders the results by the id field.

func ByLionDepartmentsField

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

ByLionDepartmentsField orders the results by lion_departments field.

func ByLionGroups

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

ByLionGroups orders the results by lion_groups terms.

func ByLionGroupsCount

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

ByLionGroupsCount orders the results by lion_groups count.

func ByLionUserGroups

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

ByLionUserGroups orders the results by lion_user_groups terms.

func ByLionUserGroupsCount

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

ByLionUserGroupsCount orders the results by lion_user_groups count.

func ByMaxMembers

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

ByMaxMembers orders the results by the max_members field.

func ByName

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

ByName orders the results by the name field.

func ByParentID

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

ByParentID orders the results by the parent_id field.

func BySortOrder

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

BySortOrder orders the results by the sort_order field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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