Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.RoleUser) predicate.RoleUser
- func CreatedAt(v time.Time) predicate.RoleUser
- func CreatedAtEQ(v time.Time) predicate.RoleUser
- func CreatedAtGT(v time.Time) predicate.RoleUser
- func CreatedAtGTE(v time.Time) predicate.RoleUser
- func CreatedAtIn(vs ...time.Time) predicate.RoleUser
- func CreatedAtLT(v time.Time) predicate.RoleUser
- func CreatedAtLTE(v time.Time) predicate.RoleUser
- func CreatedAtNEQ(v time.Time) predicate.RoleUser
- func CreatedAtNotIn(vs ...time.Time) predicate.RoleUser
- func HasRole() predicate.RoleUser
- func HasRoleWith(preds ...predicate.Role) predicate.RoleUser
- func HasUser() predicate.RoleUser
- func HasUserWith(preds ...predicate.User) predicate.RoleUser
- func Not(p predicate.RoleUser) predicate.RoleUser
- func Or(predicates ...predicate.RoleUser) predicate.RoleUser
- func RoleID(v int) predicate.RoleUser
- func RoleIDEQ(v int) predicate.RoleUser
- func RoleIDIn(vs ...int) predicate.RoleUser
- func RoleIDNEQ(v int) predicate.RoleUser
- func RoleIDNotIn(vs ...int) predicate.RoleUser
- func UserID(v int) predicate.RoleUser
- func UserIDEQ(v int) predicate.RoleUser
- func UserIDIn(vs ...int) predicate.RoleUser
- func UserIDNEQ(v int) predicate.RoleUser
- func UserIDNotIn(vs ...int) predicate.RoleUser
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the roleuser type in the database. Label = "role_user" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldRoleID holds the string denoting the role_id field in the database. FieldRoleID = "role_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // EdgeRole holds the string denoting the role edge name in mutations. EdgeRole = "role" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // RoleFieldID holds the string denoting the ID field of the Role. RoleFieldID = "id" // UserFieldID holds the string denoting the ID field of the User. UserFieldID = "id" // Table holds the table name of the roleuser in the database. Table = "role_users" // RoleTable is the table that holds the role relation/edge. RoleTable = "role_users" // RoleInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RoleInverseTable = "roles" // RoleColumn is the table column denoting the role relation/edge. RoleColumn = "role_id" // UserTable is the table that holds the user relation/edge. UserTable = "role_users" // 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{ FieldCreatedAt, FieldRoleID, FieldUserID, }
Columns holds all SQL columns for roleuser 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 HasRoleWith ¶
HasRoleWith applies the HasEdge predicate on the "role" 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 RoleID ¶
RoleID applies equality check predicate on the "role_id" field. It's identical to RoleIDEQ.
func RoleIDNotIn ¶
RoleIDNotIn applies the NotIn predicate on the "role_id" field.
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 ¶
This section is empty.