team

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 team type in the database.
	Label = "team"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldMemberLimit holds the string denoting the member_limit field in the database.
	FieldMemberLimit = "member_limit"
	// 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"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeMembers holds the string denoting the members edge name in mutations.
	EdgeMembers = "members"
	// 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"
	// EdgeTeamMembers holds the string denoting the team_members edge name in mutations.
	EdgeTeamMembers = "team_members"
	// EdgeTeamModels holds the string denoting the team_models edge name in mutations.
	EdgeTeamModels = "team_models"
	// EdgeTeamImages holds the string denoting the team_images edge name in mutations.
	EdgeTeamImages = "team_images"
	// Table holds the table name of the team in the database.
	Table = "teams"
	// GroupsTable is the table that holds the groups relation/edge.
	GroupsTable = "team_groups"
	// GroupsInverseTable is the table name for the TeamGroup entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroup" package.
	GroupsInverseTable = "team_groups"
	// GroupsColumn is the table column denoting the groups relation/edge.
	GroupsColumn = "team_id"
	// MembersTable is the table that holds the members relation/edge. The primary key declared below.
	MembersTable = "team_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"
	// ModelsTable is the table that holds the models relation/edge. The primary key declared below.
	ModelsTable = "team_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_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"
	// TeamMembersTable is the table that holds the team_members relation/edge.
	TeamMembersTable = "team_members"
	// TeamMembersInverseTable is the table name for the TeamMember entity.
	// It exists in this package in order to avoid circular dependency with the "teammember" package.
	TeamMembersInverseTable = "team_members"
	// TeamMembersColumn is the table column denoting the team_members relation/edge.
	TeamMembersColumn = "team_id"
	// TeamModelsTable is the table that holds the team_models relation/edge.
	TeamModelsTable = "team_models"
	// TeamModelsInverseTable is the table name for the TeamModel entity.
	// It exists in this package in order to avoid circular dependency with the "teammodel" package.
	TeamModelsInverseTable = "team_models"
	// TeamModelsColumn is the table column denoting the team_models relation/edge.
	TeamModelsColumn = "team_id"
	// TeamImagesTable is the table that holds the team_images relation/edge.
	TeamImagesTable = "team_images"
	// TeamImagesInverseTable is the table name for the TeamImage entity.
	// It exists in this package in order to avoid circular dependency with the "teamimage" package.
	TeamImagesInverseTable = "team_images"
	// TeamImagesColumn is the table column denoting the team_images relation/edge.
	TeamImagesColumn = "team_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", "team_id"}
	// ModelsPrimaryKey and ModelsColumn2 are the table columns denoting the
	// primary key for the models relation (M2M).
	ModelsPrimaryKey = []string{"team_id", "model_id"}
	// ImagesPrimaryKey and ImagesColumn2 are the table columns denoting the
	// primary key for the images relation (M2M).
	ImagesPrimaryKey = []string{"team_id", "image_id"}
)
View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator 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
)

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 team fields.

Functions

func And

func And(predicates ...predicate.Team) predicate.Team

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Team

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Team

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Team

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Team

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Team

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Team

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Team

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Team

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Team

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Team

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Team

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Team

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Team

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Team

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Team

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Team

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

func HasGroups

func HasGroups() predicate.Team

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

func HasGroupsWith

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

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

func HasImages

func HasImages() predicate.Team

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

func HasImagesWith

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

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

func HasMembers

func HasMembers() predicate.Team

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

func HasMembersWith

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

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

func HasModels

func HasModels() predicate.Team

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

func HasModelsWith

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

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

func HasTeamImages

func HasTeamImages() predicate.Team

HasTeamImages applies the HasEdge predicate on the "team_images" edge.

func HasTeamImagesWith

func HasTeamImagesWith(preds ...predicate.TeamImage) predicate.Team

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

func HasTeamMembers

func HasTeamMembers() predicate.Team

HasTeamMembers applies the HasEdge predicate on the "team_members" edge.

func HasTeamMembersWith

func HasTeamMembersWith(preds ...predicate.TeamMember) predicate.Team

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

func HasTeamModels

func HasTeamModels() predicate.Team

HasTeamModels applies the HasEdge predicate on the "team_models" edge.

func HasTeamModelsWith

func HasTeamModelsWith(preds ...predicate.TeamModel) predicate.Team

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

func ID

func ID(id uuid.UUID) predicate.Team

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Team

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Team

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Team

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Team

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Team

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Team

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MemberLimit

func MemberLimit(v int) predicate.Team

MemberLimit applies equality check predicate on the "member_limit" field. It's identical to MemberLimitEQ.

func MemberLimitEQ

func MemberLimitEQ(v int) predicate.Team

MemberLimitEQ applies the EQ predicate on the "member_limit" field.

func MemberLimitGT

func MemberLimitGT(v int) predicate.Team

MemberLimitGT applies the GT predicate on the "member_limit" field.

func MemberLimitGTE

func MemberLimitGTE(v int) predicate.Team

MemberLimitGTE applies the GTE predicate on the "member_limit" field.

func MemberLimitIn

func MemberLimitIn(vs ...int) predicate.Team

MemberLimitIn applies the In predicate on the "member_limit" field.

func MemberLimitLT

func MemberLimitLT(v int) predicate.Team

MemberLimitLT applies the LT predicate on the "member_limit" field.

func MemberLimitLTE

func MemberLimitLTE(v int) predicate.Team

MemberLimitLTE applies the LTE predicate on the "member_limit" field.

func MemberLimitNEQ

func MemberLimitNEQ(v int) predicate.Team

MemberLimitNEQ applies the NEQ predicate on the "member_limit" field.

func MemberLimitNotIn

func MemberLimitNotIn(vs ...int) predicate.Team

MemberLimitNotIn applies the NotIn predicate on the "member_limit" field.

func Name

func Name(v string) predicate.Team

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

func NameContains

func NameContains(v string) predicate.Team

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

func NameContainsFold

func NameContainsFold(v string) predicate.Team

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

func NameEQ

func NameEQ(v string) predicate.Team

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

func NameEqualFold

func NameEqualFold(v string) predicate.Team

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

func NameGT

func NameGT(v string) predicate.Team

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

func NameGTE

func NameGTE(v string) predicate.Team

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Team

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Team

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Team

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

func NameLTE

func NameLTE(v string) predicate.Team

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

func NameNEQ

func NameNEQ(v string) predicate.Team

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Team

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Team

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Team

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Team

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Team

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Team

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Team

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

func UpdatedAtNotIn

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

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 Team 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 ByGroups

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

ByGroups orders the results by groups terms.

func ByGroupsCount

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

ByGroupsCount orders the results by groups 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 ByMemberLimit

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

ByMemberLimit orders the results by the member_limit field.

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 ByTeamImages

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

ByTeamImages orders the results by team_images terms.

func ByTeamImagesCount

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

ByTeamImagesCount orders the results by team_images count.

func ByTeamMembers

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

ByTeamMembers orders the results by team_members terms.

func ByTeamMembersCount

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

ByTeamMembersCount orders the results by team_members count.

func ByTeamModels

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

ByTeamModels orders the results by team_models terms.

func ByTeamModelsCount

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

ByTeamModelsCount orders the results by team_models count.

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