Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uuid.UUID) predicate.AgentRole
- func AgentIDEQ(v uuid.UUID) predicate.AgentRole
- func AgentIDIn(vs ...uuid.UUID) predicate.AgentRole
- func AgentIDNEQ(v uuid.UUID) predicate.AgentRole
- func AgentIDNotIn(vs ...uuid.UUID) predicate.AgentRole
- func And(predicates ...predicate.AgentRole) predicate.AgentRole
- func CreatedAt(v time.Time) predicate.AgentRole
- func CreatedAtEQ(v time.Time) predicate.AgentRole
- func CreatedAtGT(v time.Time) predicate.AgentRole
- func CreatedAtGTE(v time.Time) predicate.AgentRole
- func CreatedAtIn(vs ...time.Time) predicate.AgentRole
- func CreatedAtLT(v time.Time) predicate.AgentRole
- func CreatedAtLTE(v time.Time) predicate.AgentRole
- func CreatedAtNEQ(v time.Time) predicate.AgentRole
- func CreatedAtNotIn(vs ...time.Time) predicate.AgentRole
- func HasAgent() predicate.AgentRole
- func HasAgentWith(preds ...predicate.Agent) predicate.AgentRole
- func HasUser() predicate.AgentRole
- func HasUserWith(preds ...predicate.User) predicate.AgentRole
- func ID(id uuid.UUID) predicate.AgentRole
- func IDEQ(id uuid.UUID) predicate.AgentRole
- func IDGT(id uuid.UUID) predicate.AgentRole
- func IDGTE(id uuid.UUID) predicate.AgentRole
- func IDIn(ids ...uuid.UUID) predicate.AgentRole
- func IDLT(id uuid.UUID) predicate.AgentRole
- func IDLTE(id uuid.UUID) predicate.AgentRole
- func IDNEQ(id uuid.UUID) predicate.AgentRole
- func IDNotIn(ids ...uuid.UUID) predicate.AgentRole
- func Not(p predicate.AgentRole) predicate.AgentRole
- func Or(predicates ...predicate.AgentRole) predicate.AgentRole
- func RoleEQ(v Role) predicate.AgentRole
- func RoleIn(vs ...Role) predicate.AgentRole
- func RoleNEQ(v Role) predicate.AgentRole
- func RoleNotIn(vs ...Role) predicate.AgentRole
- func RoleValidator(r Role) error
- func UserID(v uuid.UUID) predicate.AgentRole
- func UserIDEQ(v uuid.UUID) predicate.AgentRole
- func UserIDIn(vs ...uuid.UUID) predicate.AgentRole
- func UserIDNEQ(v uuid.UUID) predicate.AgentRole
- func UserIDNotIn(vs ...uuid.UUID) predicate.AgentRole
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- type Role
Constants ¶
const ( // Label holds the string label denoting the agentrole type in the database. Label = "agent_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_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" // EdgeAgent holds the string denoting the agent edge name in mutations. EdgeAgent = "agent" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the agentrole in the database. Table = "agent_roles" // AgentTable is the table that holds the agent relation/edge. AgentTable = "agent_roles" // AgentInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. AgentInverseTable = "agents" // AgentColumn is the table column denoting the agent relation/edge. AgentColumn = "agent_id" // UserTable is the table that holds the user relation/edge. UserTable = "agent_roles" // 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 ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldAgentID, FieldUserID, FieldRole, FieldCreatedAt, }
Columns holds all SQL columns for agentrole fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
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 HasAgentWith ¶
HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
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 AgentRole queries.
func ByAgentField ¶
func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
ByAgentField orders the results by agent field.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
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 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.