Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Team) predicate.Team
- func CreatedAt(v time.Time) predicate.Team
- func CreatedAtEQ(v time.Time) predicate.Team
- func CreatedAtGT(v time.Time) predicate.Team
- func CreatedAtGTE(v time.Time) predicate.Team
- func CreatedAtIn(vs ...time.Time) predicate.Team
- func CreatedAtLT(v time.Time) predicate.Team
- func CreatedAtLTE(v time.Time) predicate.Team
- func CreatedAtNEQ(v time.Time) predicate.Team
- func CreatedAtNotIn(vs ...time.Time) predicate.Team
- func DeletedAt(v time.Time) predicate.Team
- func DeletedAtEQ(v time.Time) predicate.Team
- func DeletedAtGT(v time.Time) predicate.Team
- func DeletedAtGTE(v time.Time) predicate.Team
- func DeletedAtIn(vs ...time.Time) predicate.Team
- func DeletedAtIsNil() predicate.Team
- func DeletedAtLT(v time.Time) predicate.Team
- func DeletedAtLTE(v time.Time) predicate.Team
- func DeletedAtNEQ(v time.Time) predicate.Team
- func DeletedAtNotIn(vs ...time.Time) predicate.Team
- func DeletedAtNotNil() predicate.Team
- func HasGroups() predicate.Team
- func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Team
- func HasImages() predicate.Team
- func HasImagesWith(preds ...predicate.Image) predicate.Team
- func HasMembers() predicate.Team
- func HasMembersWith(preds ...predicate.User) predicate.Team
- func HasModels() predicate.Team
- func HasModelsWith(preds ...predicate.Model) predicate.Team
- func HasTeamImages() predicate.Team
- func HasTeamImagesWith(preds ...predicate.TeamImage) predicate.Team
- func HasTeamMembers() predicate.Team
- func HasTeamMembersWith(preds ...predicate.TeamMember) predicate.Team
- func HasTeamModels() predicate.Team
- func HasTeamModelsWith(preds ...predicate.TeamModel) predicate.Team
- func ID(id uuid.UUID) predicate.Team
- func IDEQ(id uuid.UUID) predicate.Team
- func IDGT(id uuid.UUID) predicate.Team
- func IDGTE(id uuid.UUID) predicate.Team
- func IDIn(ids ...uuid.UUID) predicate.Team
- func IDLT(id uuid.UUID) predicate.Team
- func IDLTE(id uuid.UUID) predicate.Team
- func IDNEQ(id uuid.UUID) predicate.Team
- func IDNotIn(ids ...uuid.UUID) predicate.Team
- func MemberLimit(v int) predicate.Team
- func MemberLimitEQ(v int) predicate.Team
- func MemberLimitGT(v int) predicate.Team
- func MemberLimitGTE(v int) predicate.Team
- func MemberLimitIn(vs ...int) predicate.Team
- func MemberLimitLT(v int) predicate.Team
- func MemberLimitLTE(v int) predicate.Team
- func MemberLimitNEQ(v int) predicate.Team
- func MemberLimitNotIn(vs ...int) predicate.Team
- func Name(v string) predicate.Team
- func NameContains(v string) predicate.Team
- func NameContainsFold(v string) predicate.Team
- func NameEQ(v string) predicate.Team
- func NameEqualFold(v string) predicate.Team
- func NameGT(v string) predicate.Team
- func NameGTE(v string) predicate.Team
- func NameHasPrefix(v string) predicate.Team
- func NameHasSuffix(v string) predicate.Team
- func NameIn(vs ...string) predicate.Team
- func NameLT(v string) predicate.Team
- func NameLTE(v string) predicate.Team
- func NameNEQ(v string) predicate.Team
- func NameNotIn(vs ...string) predicate.Team
- func Not(p predicate.Team) predicate.Team
- func Or(predicates ...predicate.Team) predicate.Team
- func UpdatedAt(v time.Time) predicate.Team
- func UpdatedAtEQ(v time.Time) predicate.Team
- func UpdatedAtGT(v time.Time) predicate.Team
- func UpdatedAtGTE(v time.Time) predicate.Team
- func UpdatedAtIn(vs ...time.Time) predicate.Team
- func UpdatedAtLT(v time.Time) predicate.Team
- func UpdatedAtLTE(v time.Time) predicate.Team
- func UpdatedAtNEQ(v time.Time) predicate.Team
- func UpdatedAtNotIn(vs ...time.Time) predicate.Team
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByMemberLimit(opts ...sql.OrderTermOption) OrderOption
- func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByTeamImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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"
var Columns = []string{ FieldID, FieldDeletedAt, FieldName, FieldMemberLimit, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for team fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasImagesWith ¶
HasImagesWith applies the HasEdge predicate on the "images" edge with a given conditions (other predicates).
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).
func HasModelsWith ¶
HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).
func HasTeamImages ¶
HasTeamImages applies the HasEdge predicate on the "team_images" edge.
func HasTeamImagesWith ¶
HasTeamImagesWith applies the HasEdge predicate on the "team_images" edge with a given conditions (other predicates).
func HasTeamMembers ¶
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 ¶
HasTeamModels applies the HasEdge predicate on the "team_models" edge.
func HasTeamModelsWith ¶
HasTeamModelsWith applies the HasEdge predicate on the "team_models" edge with a given conditions (other predicates).
func MemberLimit ¶
MemberLimit applies equality check predicate on the "member_limit" field. It's identical to MemberLimitEQ.
func MemberLimitEQ ¶
MemberLimitEQ applies the EQ predicate on the "member_limit" field.
func MemberLimitGT ¶
MemberLimitGT applies the GT predicate on the "member_limit" field.
func MemberLimitGTE ¶
MemberLimitGTE applies the GTE predicate on the "member_limit" field.
func MemberLimitIn ¶
MemberLimitIn applies the In predicate on the "member_limit" field.
func MemberLimitLT ¶
MemberLimitLT applies the LT predicate on the "member_limit" field.
func MemberLimitLTE ¶
MemberLimitLTE applies the LTE predicate on the "member_limit" field.
func MemberLimitNEQ ¶
MemberLimitNEQ applies the NEQ predicate on the "member_limit" field.
func MemberLimitNotIn ¶
MemberLimitNotIn applies the NotIn predicate on the "member_limit" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.