Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Team) predicate.Team
- func CreatedTime(v time.Time) predicate.Team
- func CreatedTimeEQ(v time.Time) predicate.Team
- func CreatedTimeGT(v time.Time) predicate.Team
- func CreatedTimeGTE(v time.Time) predicate.Team
- func CreatedTimeIn(vs ...time.Time) predicate.Team
- func CreatedTimeLT(v time.Time) predicate.Team
- func CreatedTimeLTE(v time.Time) predicate.Team
- func CreatedTimeNEQ(v time.Time) predicate.Team
- func CreatedTimeNotIn(vs ...time.Time) predicate.Team
- func Description(v string) predicate.Team
- func DescriptionContains(v string) predicate.Team
- func DescriptionContainsFold(v string) predicate.Team
- func DescriptionEQ(v string) predicate.Team
- func DescriptionEqualFold(v string) predicate.Team
- func DescriptionGT(v string) predicate.Team
- func DescriptionGTE(v string) predicate.Team
- func DescriptionHasPrefix(v string) predicate.Team
- func DescriptionHasSuffix(v string) predicate.Team
- func DescriptionIn(vs ...string) predicate.Team
- func DescriptionLT(v string) predicate.Team
- func DescriptionLTE(v string) predicate.Team
- func DescriptionNEQ(v string) predicate.Team
- func DescriptionNotIn(vs ...string) predicate.Team
- func HasAdmins() predicate.Team
- func HasAdminsWith(preds ...predicate.User) predicate.Team
- func HasAnnouncements() predicate.Team
- func HasAnnouncementsWith(preds ...predicate.Announcement) predicate.Team
- func HasCreator() predicate.Team
- func HasCreatorWith(preds ...predicate.User) predicate.Team
- func HasMembers() predicate.Team
- func HasMembersWith(preds ...predicate.User) predicate.Team
- func ID(id int64) predicate.Team
- func IDEQ(id int64) predicate.Team
- func IDGT(id int64) predicate.Team
- func IDGTE(id int64) predicate.Team
- func IDIn(ids ...int64) predicate.Team
- func IDLT(id int64) predicate.Team
- func IDLTE(id int64) predicate.Team
- func IDNEQ(id int64) predicate.Team
- func IDNotIn(ids ...int64) 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 Private(v bool) predicate.Team
- func PrivateEQ(v bool) predicate.Team
- func PrivateNEQ(v bool) predicate.Team
- func ValidColumn(column string) bool
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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldCreatedTime holds the string denoting the created_time field in the database. FieldCreatedTime = "created_time" // FieldPrivate holds the string denoting the private field in the database. FieldPrivate = "private" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // EdgeAnnouncements holds the string denoting the announcements edge name in mutations. EdgeAnnouncements = "announcements" // EdgeCreator holds the string denoting the creator edge name in mutations. EdgeCreator = "creator" // EdgeAdmins holds the string denoting the admins edge name in mutations. EdgeAdmins = "admins" // Table holds the table name of the team in the database. Table = "teams" // 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" // AnnouncementsTable is the table that holds the announcements relation/edge. AnnouncementsTable = "announcements" // AnnouncementsInverseTable is the table name for the Announcement entity. // It exists in this package in order to avoid circular dependency with the "announcement" package. AnnouncementsInverseTable = "announcements" // AnnouncementsColumn is the table column denoting the announcements relation/edge. AnnouncementsColumn = "announcement_team" // CreatorTable is the table that holds the creator relation/edge. CreatorTable = "teams" // CreatorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatorInverseTable = "users" // CreatorColumn is the table column denoting the creator relation/edge. CreatorColumn = "team_creator" // AdminsTable is the table that holds the admins relation/edge. The primary key declared below. AdminsTable = "team_admins" // AdminsInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. AdminsInverseTable = "users" )
Variables ¶
var ( // MembersPrimaryKey and MembersColumn2 are the table columns denoting the // primary key for the members relation (M2M). MembersPrimaryKey = []string{"team_id", "user_id"} // AdminsPrimaryKey and AdminsColumn2 are the table columns denoting the // primary key for the admins relation (M2M). AdminsPrimaryKey = []string{"team_id", "user_id"} )
var ( // DefaultCreatedTime holds the default value on creation for the "created_time" field. DefaultCreatedTime time.Time // DefaultPrivate holds the default value on creation for the "private" field. DefaultPrivate bool )
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldCreatedTime, FieldPrivate, }
Columns holds all SQL columns for team fields.
var ForeignKeys = []string{
"team_creator",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "teams" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedTime ¶
CreatedTime applies equality check predicate on the "created_time" field. It's identical to CreatedTimeEQ.
func CreatedTimeEQ ¶
CreatedTimeEQ applies the EQ predicate on the "created_time" field.
func CreatedTimeGT ¶
CreatedTimeGT applies the GT predicate on the "created_time" field.
func CreatedTimeGTE ¶
CreatedTimeGTE applies the GTE predicate on the "created_time" field.
func CreatedTimeIn ¶
CreatedTimeIn applies the In predicate on the "created_time" field.
func CreatedTimeLT ¶
CreatedTimeLT applies the LT predicate on the "created_time" field.
func CreatedTimeLTE ¶
CreatedTimeLTE applies the LTE predicate on the "created_time" field.
func CreatedTimeNEQ ¶
CreatedTimeNEQ applies the NEQ predicate on the "created_time" field.
func CreatedTimeNotIn ¶
CreatedTimeNotIn applies the NotIn predicate on the "created_time" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func HasAdminsWith ¶
HasAdminsWith applies the HasEdge predicate on the "admins" edge with a given conditions (other predicates).
func HasAnnouncements ¶
HasAnnouncements applies the HasEdge predicate on the "announcements" edge.
func HasAnnouncementsWith ¶
func HasAnnouncementsWith(preds ...predicate.Announcement) predicate.Team
HasAnnouncementsWith applies the HasEdge predicate on the "announcements" edge with a given conditions (other predicates).
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" 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 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 Private ¶
Private applies equality check predicate on the "private" field. It's identical to PrivateEQ.
func PrivateNEQ ¶
PrivateNEQ applies the NEQ predicate on the "private" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.