teamgroup

package
v0.0.0-...-481d40d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the teamgroup type in the database.
	Label = "team_group"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldTeamID holds the string denoting the team_id field in the database.
	FieldTeamID = "team_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// 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"
	// EdgeMembers holds the string denoting the members edge name in mutations.
	EdgeMembers = "members"
	// EdgeTeam holds the string denoting the team edge name in mutations.
	EdgeTeam = "team"
	// EdgeModels holds the string denoting the models edge name in mutations.
	EdgeModels = "models"
	// EdgeImages holds the string denoting the images edge name in mutations.
	EdgeImages = "images"
	// EdgeHosts holds the string denoting the hosts edge name in mutations.
	EdgeHosts = "hosts"
	// EdgeTeamGroupMembers holds the string denoting the team_group_members edge name in mutations.
	EdgeTeamGroupMembers = "team_group_members"
	// EdgeTeamGroupModels holds the string denoting the team_group_models edge name in mutations.
	EdgeTeamGroupModels = "team_group_models"
	// EdgeTeamGroupImages holds the string denoting the team_group_images edge name in mutations.
	EdgeTeamGroupImages = "team_group_images"
	// EdgeTeamGroupHosts holds the string denoting the team_group_hosts edge name in mutations.
	EdgeTeamGroupHosts = "team_group_hosts"
	// Table holds the table name of the teamgroup in the database.
	Table = "team_groups"
	// MembersTable is the table that holds the members relation/edge. The primary key declared below.
	MembersTable = "team_group_members"
	// MembersInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	MembersInverseTable = "users"
	// TeamTable is the table that holds the team relation/edge.
	TeamTable = "team_groups"
	// TeamInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamInverseTable = "teams"
	// TeamColumn is the table column denoting the team relation/edge.
	TeamColumn = "team_id"
	// ModelsTable is the table that holds the models relation/edge. The primary key declared below.
	ModelsTable = "team_group_models"
	// ModelsInverseTable is the table name for the Model entity.
	// It exists in this package in order to avoid circular dependency with the "model" package.
	ModelsInverseTable = "models"
	// ImagesTable is the table that holds the images relation/edge. The primary key declared below.
	ImagesTable = "team_group_images"
	// ImagesInverseTable is the table name for the Image entity.
	// It exists in this package in order to avoid circular dependency with the "image" package.
	ImagesInverseTable = "images"
	// HostsTable is the table that holds the hosts relation/edge. The primary key declared below.
	HostsTable = "team_group_hosts"
	// HostsInverseTable is the table name for the Host entity.
	// It exists in this package in order to avoid circular dependency with the "host" package.
	HostsInverseTable = "hosts"
	// TeamGroupMembersTable is the table that holds the team_group_members relation/edge.
	TeamGroupMembersTable = "team_group_members"
	// TeamGroupMembersInverseTable is the table name for the TeamGroupMember entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroupmember" package.
	TeamGroupMembersInverseTable = "team_group_members"
	// TeamGroupMembersColumn is the table column denoting the team_group_members relation/edge.
	TeamGroupMembersColumn = "group_id"
	// TeamGroupModelsTable is the table that holds the team_group_models relation/edge.
	TeamGroupModelsTable = "team_group_models"
	// TeamGroupModelsInverseTable is the table name for the TeamGroupModel entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroupmodel" package.
	TeamGroupModelsInverseTable = "team_group_models"
	// TeamGroupModelsColumn is the table column denoting the team_group_models relation/edge.
	TeamGroupModelsColumn = "group_id"
	// TeamGroupImagesTable is the table that holds the team_group_images relation/edge.
	TeamGroupImagesTable = "team_group_images"
	// TeamGroupImagesInverseTable is the table name for the TeamGroupImage entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroupimage" package.
	TeamGroupImagesInverseTable = "team_group_images"
	// TeamGroupImagesColumn is the table column denoting the team_group_images relation/edge.
	TeamGroupImagesColumn = "group_id"
	// TeamGroupHostsTable is the table that holds the team_group_hosts relation/edge.
	TeamGroupHostsTable = "team_group_hosts"
	// TeamGroupHostsInverseTable is the table name for the TeamGroupHost entity.
	// It exists in this package in order to avoid circular dependency with the "teamgrouphost" package.
	TeamGroupHostsInverseTable = "team_group_hosts"
	// TeamGroupHostsColumn is the table column denoting the team_group_hosts relation/edge.
	TeamGroupHostsColumn = "group_id"
)

Variables

View Source
var (
	// MembersPrimaryKey and MembersColumn2 are the table columns denoting the
	// primary key for the members relation (M2M).
	MembersPrimaryKey = []string{"user_id", "group_id"}
	// ModelsPrimaryKey and ModelsColumn2 are the table columns denoting the
	// primary key for the models relation (M2M).
	ModelsPrimaryKey = []string{"group_id", "model_id"}
	// ImagesPrimaryKey and ImagesColumn2 are the table columns denoting the
	// primary key for the images relation (M2M).
	ImagesPrimaryKey = []string{"group_id", "image_id"}
	// HostsPrimaryKey and HostsColumn2 are the table columns denoting the
	// primary key for the hosts relation (M2M).
	HostsPrimaryKey = []string{"group_id", "host_id"}
)
View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
)

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/chaitin/MonkeyCode/backend/db/runtime"

Columns holds all SQL columns for teamgroup fields.

Functions

func And

func And(predicates ...predicate.TeamGroup) predicate.TeamGroup

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.TeamGroup

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.TeamGroup

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.TeamGroup

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.TeamGroup

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.TeamGroup

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.TeamGroup

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.TeamGroup

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.TeamGroup

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.TeamGroup

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.TeamGroup

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.TeamGroup

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.TeamGroup

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.TeamGroup

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.TeamGroup

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.TeamGroup

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.TeamGroup

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

func HasHosts

func HasHosts() predicate.TeamGroup

HasHosts applies the HasEdge predicate on the "hosts" edge.

func HasHostsWith

func HasHostsWith(preds ...predicate.Host) predicate.TeamGroup

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

func HasImages

func HasImages() predicate.TeamGroup

HasImages applies the HasEdge predicate on the "images" edge.

func HasImagesWith

func HasImagesWith(preds ...predicate.Image) predicate.TeamGroup

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

func HasMembers

func HasMembers() predicate.TeamGroup

HasMembers applies the HasEdge predicate on the "members" edge.

func HasMembersWith

func HasMembersWith(preds ...predicate.User) predicate.TeamGroup

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

func HasModels

func HasModels() predicate.TeamGroup

HasModels applies the HasEdge predicate on the "models" edge.

func HasModelsWith

func HasModelsWith(preds ...predicate.Model) predicate.TeamGroup

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

func HasTeam

func HasTeam() predicate.TeamGroup

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamGroupHosts

func HasTeamGroupHosts() predicate.TeamGroup

HasTeamGroupHosts applies the HasEdge predicate on the "team_group_hosts" edge.

func HasTeamGroupHostsWith

func HasTeamGroupHostsWith(preds ...predicate.TeamGroupHost) predicate.TeamGroup

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

func HasTeamGroupImages

func HasTeamGroupImages() predicate.TeamGroup

HasTeamGroupImages applies the HasEdge predicate on the "team_group_images" edge.

func HasTeamGroupImagesWith

func HasTeamGroupImagesWith(preds ...predicate.TeamGroupImage) predicate.TeamGroup

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

func HasTeamGroupMembers

func HasTeamGroupMembers() predicate.TeamGroup

HasTeamGroupMembers applies the HasEdge predicate on the "team_group_members" edge.

func HasTeamGroupMembersWith

func HasTeamGroupMembersWith(preds ...predicate.TeamGroupMember) predicate.TeamGroup

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

func HasTeamGroupModels

func HasTeamGroupModels() predicate.TeamGroup

HasTeamGroupModels applies the HasEdge predicate on the "team_group_models" edge.

func HasTeamGroupModelsWith

func HasTeamGroupModelsWith(preds ...predicate.TeamGroupModel) predicate.TeamGroup

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

func HasTeamWith

func HasTeamWith(preds ...predicate.Team) predicate.TeamGroup

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.TeamGroup

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.TeamGroup

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.TeamGroup

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.TeamGroup

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.TeamGroup

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.TeamGroup

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.TeamGroup

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

func NameContains

func NameContains(v string) predicate.TeamGroup

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

func NameContainsFold

func NameContainsFold(v string) predicate.TeamGroup

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

func NameEQ

func NameEQ(v string) predicate.TeamGroup

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

func NameEqualFold

func NameEqualFold(v string) predicate.TeamGroup

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

func NameGT

func NameGT(v string) predicate.TeamGroup

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

func NameGTE

func NameGTE(v string) predicate.TeamGroup

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.TeamGroup

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.TeamGroup

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.TeamGroup

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

func NameLTE

func NameLTE(v string) predicate.TeamGroup

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

func NameNEQ

func NameNEQ(v string) predicate.TeamGroup

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func TeamID

func TeamID(v uuid.UUID) predicate.TeamGroup

TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.

func TeamIDEQ

func TeamIDEQ(v uuid.UUID) predicate.TeamGroup

TeamIDEQ applies the EQ predicate on the "team_id" field.

func TeamIDIn

func TeamIDIn(vs ...uuid.UUID) predicate.TeamGroup

TeamIDIn applies the In predicate on the "team_id" field.

func TeamIDNEQ

func TeamIDNEQ(v uuid.UUID) predicate.TeamGroup

TeamIDNEQ applies the NEQ predicate on the "team_id" field.

func TeamIDNotIn

func TeamIDNotIn(vs ...uuid.UUID) predicate.TeamGroup

TeamIDNotIn applies the NotIn predicate on the "team_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.TeamGroup

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.TeamGroup

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.TeamGroup

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.TeamGroup

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.TeamGroup

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.TeamGroup

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.TeamGroup

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

func UpdatedAtNotIn

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

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 TeamGroup queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByHosts

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

ByHosts orders the results by hosts terms.

func ByHostsCount

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

ByHostsCount orders the results by hosts count.

func ByID

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

ByID orders the results by the id field.

func ByImages

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

ByImages orders the results by images terms.

func ByImagesCount

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

ByImagesCount orders the results by images count.

func ByMembers

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

ByMembers orders the results by members terms.

func ByMembersCount

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

ByMembersCount orders the results by members count.

func ByModels

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

ByModels orders the results by models terms.

func ByModelsCount

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

ByModelsCount orders the results by models count.

func ByName

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

ByName orders the results by the name field.

func ByTeamField

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

ByTeamField orders the results by team field.

func ByTeamGroupHosts

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

ByTeamGroupHosts orders the results by team_group_hosts terms.

func ByTeamGroupHostsCount

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

ByTeamGroupHostsCount orders the results by team_group_hosts count.

func ByTeamGroupImages

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

ByTeamGroupImages orders the results by team_group_images terms.

func ByTeamGroupImagesCount

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

ByTeamGroupImagesCount orders the results by team_group_images count.

func ByTeamGroupMembers

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

ByTeamGroupMembers orders the results by team_group_members terms.

func ByTeamGroupMembersCount

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

ByTeamGroupMembersCount orders the results by team_group_members count.

func ByTeamGroupModels

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

ByTeamGroupModels orders the results by team_group_models terms.

func ByTeamGroupModelsCount

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

ByTeamGroupModelsCount orders the results by team_group_models count.

func ByTeamID

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

ByTeamID orders the results by the team_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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