Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TeamGroup) predicate.TeamGroup
- func CreatedAt(v time.Time) predicate.TeamGroup
- func CreatedAtEQ(v time.Time) predicate.TeamGroup
- func CreatedAtGT(v time.Time) predicate.TeamGroup
- func CreatedAtGTE(v time.Time) predicate.TeamGroup
- func CreatedAtIn(vs ...time.Time) predicate.TeamGroup
- func CreatedAtLT(v time.Time) predicate.TeamGroup
- func CreatedAtLTE(v time.Time) predicate.TeamGroup
- func CreatedAtNEQ(v time.Time) predicate.TeamGroup
- func CreatedAtNotIn(vs ...time.Time) predicate.TeamGroup
- func DeletedAt(v time.Time) predicate.TeamGroup
- func DeletedAtEQ(v time.Time) predicate.TeamGroup
- func DeletedAtGT(v time.Time) predicate.TeamGroup
- func DeletedAtGTE(v time.Time) predicate.TeamGroup
- func DeletedAtIn(vs ...time.Time) predicate.TeamGroup
- func DeletedAtIsNil() predicate.TeamGroup
- func DeletedAtLT(v time.Time) predicate.TeamGroup
- func DeletedAtLTE(v time.Time) predicate.TeamGroup
- func DeletedAtNEQ(v time.Time) predicate.TeamGroup
- func DeletedAtNotIn(vs ...time.Time) predicate.TeamGroup
- func DeletedAtNotNil() predicate.TeamGroup
- func HasHosts() predicate.TeamGroup
- func HasHostsWith(preds ...predicate.Host) predicate.TeamGroup
- func HasImages() predicate.TeamGroup
- func HasImagesWith(preds ...predicate.Image) predicate.TeamGroup
- func HasMembers() predicate.TeamGroup
- func HasMembersWith(preds ...predicate.User) predicate.TeamGroup
- func HasModels() predicate.TeamGroup
- func HasModelsWith(preds ...predicate.Model) predicate.TeamGroup
- func HasTeam() predicate.TeamGroup
- func HasTeamGroupHosts() predicate.TeamGroup
- func HasTeamGroupHostsWith(preds ...predicate.TeamGroupHost) predicate.TeamGroup
- func HasTeamGroupImages() predicate.TeamGroup
- func HasTeamGroupImagesWith(preds ...predicate.TeamGroupImage) predicate.TeamGroup
- func HasTeamGroupMembers() predicate.TeamGroup
- func HasTeamGroupMembersWith(preds ...predicate.TeamGroupMember) predicate.TeamGroup
- func HasTeamGroupModels() predicate.TeamGroup
- func HasTeamGroupModelsWith(preds ...predicate.TeamGroupModel) predicate.TeamGroup
- func HasTeamWith(preds ...predicate.Team) predicate.TeamGroup
- func ID(id uuid.UUID) predicate.TeamGroup
- func IDEQ(id uuid.UUID) predicate.TeamGroup
- func IDGT(id uuid.UUID) predicate.TeamGroup
- func IDGTE(id uuid.UUID) predicate.TeamGroup
- func IDIn(ids ...uuid.UUID) predicate.TeamGroup
- func IDLT(id uuid.UUID) predicate.TeamGroup
- func IDLTE(id uuid.UUID) predicate.TeamGroup
- func IDNEQ(id uuid.UUID) predicate.TeamGroup
- func IDNotIn(ids ...uuid.UUID) predicate.TeamGroup
- func Name(v string) predicate.TeamGroup
- func NameContains(v string) predicate.TeamGroup
- func NameContainsFold(v string) predicate.TeamGroup
- func NameEQ(v string) predicate.TeamGroup
- func NameEqualFold(v string) predicate.TeamGroup
- func NameGT(v string) predicate.TeamGroup
- func NameGTE(v string) predicate.TeamGroup
- func NameHasPrefix(v string) predicate.TeamGroup
- func NameHasSuffix(v string) predicate.TeamGroup
- func NameIn(vs ...string) predicate.TeamGroup
- func NameLT(v string) predicate.TeamGroup
- func NameLTE(v string) predicate.TeamGroup
- func NameNEQ(v string) predicate.TeamGroup
- func NameNotIn(vs ...string) predicate.TeamGroup
- func Not(p predicate.TeamGroup) predicate.TeamGroup
- func Or(predicates ...predicate.TeamGroup) predicate.TeamGroup
- func TeamID(v uuid.UUID) predicate.TeamGroup
- func TeamIDEQ(v uuid.UUID) predicate.TeamGroup
- func TeamIDIn(vs ...uuid.UUID) predicate.TeamGroup
- func TeamIDNEQ(v uuid.UUID) predicate.TeamGroup
- func TeamIDNotIn(vs ...uuid.UUID) predicate.TeamGroup
- func UpdatedAt(v time.Time) predicate.TeamGroup
- func UpdatedAtEQ(v time.Time) predicate.TeamGroup
- func UpdatedAtGT(v time.Time) predicate.TeamGroup
- func UpdatedAtGTE(v time.Time) predicate.TeamGroup
- func UpdatedAtIn(vs ...time.Time) predicate.TeamGroup
- func UpdatedAtLT(v time.Time) predicate.TeamGroup
- func UpdatedAtLTE(v time.Time) predicate.TeamGroup
- func UpdatedAtNEQ(v time.Time) predicate.TeamGroup
- func UpdatedAtNotIn(vs ...time.Time) predicate.TeamGroup
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByHostsCount(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 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 ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupHosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupHostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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"
var Columns = []string{ FieldID, FieldDeletedAt, FieldTeamID, FieldName, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for teamgroup 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 HasHostsWith ¶
HasHostsWith applies the HasEdge predicate on the "hosts" 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 HasTeamGroupHosts ¶
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 ¶
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 ¶
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 ¶
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 ¶
HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).
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 TeamID ¶
TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.
func TeamIDNotIn ¶
TeamIDNotIn applies the NotIn predicate on the "team_id" 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 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.