Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TeamModel) predicate.TeamModel
- func CreatedAt(v time.Time) predicate.TeamModel
- func CreatedAtEQ(v time.Time) predicate.TeamModel
- func CreatedAtGT(v time.Time) predicate.TeamModel
- func CreatedAtGTE(v time.Time) predicate.TeamModel
- func CreatedAtIn(vs ...time.Time) predicate.TeamModel
- func CreatedAtLT(v time.Time) predicate.TeamModel
- func CreatedAtLTE(v time.Time) predicate.TeamModel
- func CreatedAtNEQ(v time.Time) predicate.TeamModel
- func CreatedAtNotIn(vs ...time.Time) predicate.TeamModel
- func HasModel() predicate.TeamModel
- func HasModelWith(preds ...predicate.Model) predicate.TeamModel
- func HasTeam() predicate.TeamModel
- func HasTeamWith(preds ...predicate.Team) predicate.TeamModel
- func ID(id uuid.UUID) predicate.TeamModel
- func IDEQ(id uuid.UUID) predicate.TeamModel
- func IDGT(id uuid.UUID) predicate.TeamModel
- func IDGTE(id uuid.UUID) predicate.TeamModel
- func IDIn(ids ...uuid.UUID) predicate.TeamModel
- func IDLT(id uuid.UUID) predicate.TeamModel
- func IDLTE(id uuid.UUID) predicate.TeamModel
- func IDNEQ(id uuid.UUID) predicate.TeamModel
- func IDNotIn(ids ...uuid.UUID) predicate.TeamModel
- func ModelID(v uuid.UUID) predicate.TeamModel
- func ModelIDEQ(v uuid.UUID) predicate.TeamModel
- func ModelIDIn(vs ...uuid.UUID) predicate.TeamModel
- func ModelIDNEQ(v uuid.UUID) predicate.TeamModel
- func ModelIDNotIn(vs ...uuid.UUID) predicate.TeamModel
- func Not(p predicate.TeamModel) predicate.TeamModel
- func Or(predicates ...predicate.TeamModel) predicate.TeamModel
- func TeamID(v uuid.UUID) predicate.TeamModel
- func TeamIDEQ(v uuid.UUID) predicate.TeamModel
- func TeamIDIn(vs ...uuid.UUID) predicate.TeamModel
- func TeamIDNEQ(v uuid.UUID) predicate.TeamModel
- func TeamIDNotIn(vs ...uuid.UUID) predicate.TeamModel
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByModelID(opts ...sql.OrderTermOption) OrderOption
- func ByTeamField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTeamID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the teammodel type in the database. Label = "team_model" // 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" // FieldModelID holds the string denoting the model_id field in the database. FieldModelID = "model_id" // 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" // EdgeModel holds the string denoting the model edge name in mutations. EdgeModel = "model" // Table holds the table name of the teammodel in the database. Table = "team_models" // TeamTable is the table that holds the team relation/edge. TeamTable = "team_models" // 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" // ModelTable is the table that holds the model relation/edge. ModelTable = "team_models" // ModelInverseTable is the table name for the Model entity. // It exists in this package in order to avoid circular dependency with the "model" package. ModelInverseTable = "models" // ModelColumn is the table column denoting the model relation/edge. ModelColumn = "model_id" )
Variables ¶
var Columns = []string{ FieldID, FieldTeamID, FieldModelID, FieldCreatedAt, }
Columns holds all SQL columns for teammodel fields.
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
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 HasModelWith ¶
HasModelWith applies the HasEdge predicate on the "model" 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 ModelID ¶
ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.
func ModelIDNEQ ¶
ModelIDNEQ applies the NEQ predicate on the "model_id" field.
func ModelIDNotIn ¶
ModelIDNotIn applies the NotIn predicate on the "model_id" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the TeamModel 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 ByModelField ¶
func ByModelField(field string, opts ...sql.OrderTermOption) OrderOption
ByModelField orders the results by model field.
func ByModelID ¶
func ByModelID(opts ...sql.OrderTermOption) OrderOption
ByModelID orders the results by the model_id 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.