Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TeamMember) predicate.TeamMember
- func CreatedAt(v time.Time) predicate.TeamMember
- func CreatedAtEQ(v time.Time) predicate.TeamMember
- func CreatedAtGT(v time.Time) predicate.TeamMember
- func CreatedAtGTE(v time.Time) predicate.TeamMember
- func CreatedAtIn(vs ...time.Time) predicate.TeamMember
- func CreatedAtLT(v time.Time) predicate.TeamMember
- func CreatedAtLTE(v time.Time) predicate.TeamMember
- func CreatedAtNEQ(v time.Time) predicate.TeamMember
- func CreatedAtNotIn(vs ...time.Time) predicate.TeamMember
- func HasTeam() predicate.TeamMember
- func HasTeamWith(preds ...predicate.Team) predicate.TeamMember
- func HasUser() predicate.TeamMember
- func HasUserWith(preds ...predicate.User) predicate.TeamMember
- func ID(id uuid.UUID) predicate.TeamMember
- func IDEQ(id uuid.UUID) predicate.TeamMember
- func IDGT(id uuid.UUID) predicate.TeamMember
- func IDGTE(id uuid.UUID) predicate.TeamMember
- func IDIn(ids ...uuid.UUID) predicate.TeamMember
- func IDLT(id uuid.UUID) predicate.TeamMember
- func IDLTE(id uuid.UUID) predicate.TeamMember
- func IDNEQ(id uuid.UUID) predicate.TeamMember
- func IDNotIn(ids ...uuid.UUID) predicate.TeamMember
- func Not(p predicate.TeamMember) predicate.TeamMember
- func Or(predicates ...predicate.TeamMember) predicate.TeamMember
- func Role(v consts.TeamMemberRole) predicate.TeamMember
- func RoleContains(v consts.TeamMemberRole) predicate.TeamMember
- func RoleContainsFold(v consts.TeamMemberRole) predicate.TeamMember
- func RoleEQ(v consts.TeamMemberRole) predicate.TeamMember
- func RoleEqualFold(v consts.TeamMemberRole) predicate.TeamMember
- func RoleGT(v consts.TeamMemberRole) predicate.TeamMember
- func RoleGTE(v consts.TeamMemberRole) predicate.TeamMember
- func RoleHasPrefix(v consts.TeamMemberRole) predicate.TeamMember
- func RoleHasSuffix(v consts.TeamMemberRole) predicate.TeamMember
- func RoleIn(vs ...consts.TeamMemberRole) predicate.TeamMember
- func RoleLT(v consts.TeamMemberRole) predicate.TeamMember
- func RoleLTE(v consts.TeamMemberRole) predicate.TeamMember
- func RoleNEQ(v consts.TeamMemberRole) predicate.TeamMember
- func RoleNotIn(vs ...consts.TeamMemberRole) predicate.TeamMember
- func TeamID(v uuid.UUID) predicate.TeamMember
- func TeamIDEQ(v uuid.UUID) predicate.TeamMember
- func TeamIDIn(vs ...uuid.UUID) predicate.TeamMember
- func TeamIDNEQ(v uuid.UUID) predicate.TeamMember
- func TeamIDNotIn(vs ...uuid.UUID) predicate.TeamMember
- func UserID(v uuid.UUID) predicate.TeamMember
- func UserIDEQ(v uuid.UUID) predicate.TeamMember
- func UserIDIn(vs ...uuid.UUID) predicate.TeamMember
- func UserIDNEQ(v uuid.UUID) predicate.TeamMember
- func UserIDNotIn(vs ...uuid.UUID) predicate.TeamMember
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTeamID(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the teammember type in the database. Label = "team_member" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTeamID holds the string denoting the team_id field in the database. FieldTeamID = "team_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeTeam holds the string denoting the team edge name in mutations. EdgeTeam = "team" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the teammember in the database. Table = "team_members" // TeamTable is the table that holds the team relation/edge. TeamTable = "team_members" // 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" // UserTable is the table that holds the user relation/edge. UserTable = "team_members" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldTeamID, FieldUserID, FieldRole, FieldCreatedAt, }
Columns holds all SQL columns for teammember fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Functions ¶
func And ¶
func And(predicates ...predicate.TeamMember) predicate.TeamMember
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.TeamMember
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.TeamMember
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.TeamMember
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.TeamMember
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.TeamMember
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.TeamMember
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.TeamMember
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.TeamMember
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.TeamMember
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasTeam ¶
func HasTeam() predicate.TeamMember
HasTeam applies the HasEdge predicate on the "team" edge.
func HasTeamWith ¶
func HasTeamWith(preds ...predicate.Team) predicate.TeamMember
HasTeamWith applies the HasEdge predicate on the "team" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.TeamMember
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.TeamMember
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TeamMember
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TeamMember
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TeamMember
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.TeamMember
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.TeamMember
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TeamMember
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TeamMember
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.TeamMember
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.TeamMember) predicate.TeamMember
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TeamMember) predicate.TeamMember
Or groups predicates with the OR operator between them.
func Role ¶
func Role(v consts.TeamMemberRole) predicate.TeamMember
Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
func RoleContains ¶
func RoleContains(v consts.TeamMemberRole) predicate.TeamMember
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
func RoleContainsFold(v consts.TeamMemberRole) predicate.TeamMember
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEQ ¶
func RoleEQ(v consts.TeamMemberRole) predicate.TeamMember
RoleEQ applies the EQ predicate on the "role" field.
func RoleEqualFold ¶
func RoleEqualFold(v consts.TeamMemberRole) predicate.TeamMember
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleGT ¶
func RoleGT(v consts.TeamMemberRole) predicate.TeamMember
RoleGT applies the GT predicate on the "role" field.
func RoleGTE ¶
func RoleGTE(v consts.TeamMemberRole) predicate.TeamMember
RoleGTE applies the GTE predicate on the "role" field.
func RoleHasPrefix ¶
func RoleHasPrefix(v consts.TeamMemberRole) predicate.TeamMember
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
func RoleHasSuffix(v consts.TeamMemberRole) predicate.TeamMember
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...consts.TeamMemberRole) predicate.TeamMember
RoleIn applies the In predicate on the "role" field.
func RoleLT ¶
func RoleLT(v consts.TeamMemberRole) predicate.TeamMember
RoleLT applies the LT predicate on the "role" field.
func RoleLTE ¶
func RoleLTE(v consts.TeamMemberRole) predicate.TeamMember
RoleLTE applies the LTE predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v consts.TeamMemberRole) predicate.TeamMember
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...consts.TeamMemberRole) predicate.TeamMember
RoleNotIn applies the NotIn predicate on the "role" field.
func TeamID ¶
func TeamID(v uuid.UUID) predicate.TeamMember
TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.
func TeamIDEQ ¶
func TeamIDEQ(v uuid.UUID) predicate.TeamMember
TeamIDEQ applies the EQ predicate on the "team_id" field.
func TeamIDIn ¶
func TeamIDIn(vs ...uuid.UUID) predicate.TeamMember
TeamIDIn applies the In predicate on the "team_id" field.
func TeamIDNEQ ¶
func TeamIDNEQ(v uuid.UUID) predicate.TeamMember
TeamIDNEQ applies the NEQ predicate on the "team_id" field.
func TeamIDNotIn ¶
func TeamIDNotIn(vs ...uuid.UUID) predicate.TeamMember
TeamIDNotIn applies the NotIn predicate on the "team_id" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.TeamMember
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.TeamMember
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.TeamMember
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.TeamMember
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.TeamMember
UserIDNotIn applies the NotIn predicate on the "user_id" 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 TeamMember queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByTeamField ¶
func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
ByTeamField orders the results by team field.
func ByTeamID ¶
func ByTeamID(opts ...sql.OrderTermOption) OrderOption
ByTeamID orders the results by the team_id field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.