Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserRoles) predicate.UserRoles
- func CreatedAt(v time.Time) predicate.UserRoles
- func CreatedAtEQ(v time.Time) predicate.UserRoles
- func CreatedAtGT(v time.Time) predicate.UserRoles
- func CreatedAtGTE(v time.Time) predicate.UserRoles
- func CreatedAtIn(vs ...time.Time) predicate.UserRoles
- func CreatedAtLT(v time.Time) predicate.UserRoles
- func CreatedAtLTE(v time.Time) predicate.UserRoles
- func CreatedAtNEQ(v time.Time) predicate.UserRoles
- func CreatedAtNotIn(vs ...time.Time) predicate.UserRoles
- func CreatedBy(v int64) predicate.UserRoles
- func CreatedByEQ(v int64) predicate.UserRoles
- func CreatedByGT(v int64) predicate.UserRoles
- func CreatedByGTE(v int64) predicate.UserRoles
- func CreatedByIn(vs ...int64) predicate.UserRoles
- func CreatedByIsNil() predicate.UserRoles
- func CreatedByLT(v int64) predicate.UserRoles
- func CreatedByLTE(v int64) predicate.UserRoles
- func CreatedByNEQ(v int64) predicate.UserRoles
- func CreatedByNotIn(vs ...int64) predicate.UserRoles
- func CreatedByNotNil() predicate.UserRoles
- func HasLionRoles() predicate.UserRoles
- func HasLionRolesWith(preds ...predicate.Roles) predicate.UserRoles
- func HasLionUsers() predicate.UserRoles
- func HasLionUsersWith(preds ...predicate.Users) predicate.UserRoles
- func ID(id int) predicate.UserRoles
- func IDEQ(id int) predicate.UserRoles
- func IDGT(id int) predicate.UserRoles
- func IDGTE(id int) predicate.UserRoles
- func IDIn(ids ...int) predicate.UserRoles
- func IDLT(id int) predicate.UserRoles
- func IDLTE(id int) predicate.UserRoles
- func IDNEQ(id int) predicate.UserRoles
- func IDNotIn(ids ...int) predicate.UserRoles
- func Not(p predicate.UserRoles) predicate.UserRoles
- func Or(predicates ...predicate.UserRoles) predicate.UserRoles
- func RoleID(v int) predicate.UserRoles
- func RoleIDEQ(v int) predicate.UserRoles
- func RoleIDIn(vs ...int) predicate.UserRoles
- func RoleIDNEQ(v int) predicate.UserRoles
- func RoleIDNotIn(vs ...int) predicate.UserRoles
- func UpdatedAt(v time.Time) predicate.UserRoles
- func UpdatedAtEQ(v time.Time) predicate.UserRoles
- func UpdatedAtGT(v time.Time) predicate.UserRoles
- func UpdatedAtGTE(v time.Time) predicate.UserRoles
- func UpdatedAtIn(vs ...time.Time) predicate.UserRoles
- func UpdatedAtLT(v time.Time) predicate.UserRoles
- func UpdatedAtLTE(v time.Time) predicate.UserRoles
- func UpdatedAtNEQ(v time.Time) predicate.UserRoles
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserRoles
- func UpdatedBy(v int64) predicate.UserRoles
- func UpdatedByEQ(v int64) predicate.UserRoles
- func UpdatedByGT(v int64) predicate.UserRoles
- func UpdatedByGTE(v int64) predicate.UserRoles
- func UpdatedByIn(vs ...int64) predicate.UserRoles
- func UpdatedByIsNil() predicate.UserRoles
- func UpdatedByLT(v int64) predicate.UserRoles
- func UpdatedByLTE(v int64) predicate.UserRoles
- func UpdatedByNEQ(v int64) predicate.UserRoles
- func UpdatedByNotIn(vs ...int64) predicate.UserRoles
- func UpdatedByNotNil() predicate.UserRoles
- func UserID(v int) predicate.UserRoles
- func UserIDEQ(v int) predicate.UserRoles
- func UserIDIn(vs ...int) predicate.UserRoles
- func UserIDNEQ(v int) predicate.UserRoles
- func UserIDNotIn(vs ...int) predicate.UserRoles
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLionRolesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByLionUsersField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRoleID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the userroles type in the database. Label = "user_roles" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRoleID holds the string denoting the role_id field in the database. FieldRoleID = "role_id" // EdgeLionUsers holds the string denoting the lion_users edge name in mutations. EdgeLionUsers = "lion_users" // EdgeLionRoles holds the string denoting the lion_roles edge name in mutations. EdgeLionRoles = "lion_roles" // Table holds the table name of the userroles in the database. Table = "lion_user_roles" // LionUsersTable is the table that holds the lion_users relation/edge. LionUsersTable = "lion_user_roles" // LionUsersInverseTable is the table name for the Users entity. // It exists in this package in order to avoid circular dependency with the "users" package. LionUsersInverseTable = "lion_users" // LionUsersColumn is the table column denoting the lion_users relation/edge. LionUsersColumn = "user_id" // LionRolesTable is the table that holds the lion_roles relation/edge. LionRolesTable = "lion_user_roles" // LionRolesInverseTable is the table name for the Roles entity. // It exists in this package in order to avoid circular dependency with the "roles" package. LionRolesInverseTable = "lion_roles" // LionRolesColumn is the table column denoting the lion_roles relation/edge. LionRolesColumn = "role_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 // UserIDValidator is a validator for the "user_id" field. It is called by the builders before save. UserIDValidator func(int) error // RoleIDValidator is a validator for the "role_id" field. It is called by the builders before save. RoleIDValidator func(int) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldUserID, FieldRoleID, }
Columns holds all SQL columns for userroles fields.
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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func HasLionRoles ¶
HasLionRoles applies the HasEdge predicate on the "lion_roles" edge.
func HasLionRolesWith ¶
HasLionRolesWith applies the HasEdge predicate on the "lion_roles" edge with a given conditions (other predicates).
func HasLionUsers ¶
HasLionUsers applies the HasEdge predicate on the "lion_users" edge.
func HasLionUsersWith ¶
HasLionUsersWith applies the HasEdge predicate on the "lion_users" 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 UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the UserRoles queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLionRolesField ¶
func ByLionRolesField(field string, opts ...sql.OrderTermOption) OrderOption
ByLionRolesField orders the results by lion_roles field.
func ByLionUsersField ¶
func ByLionUsersField(field string, opts ...sql.OrderTermOption) OrderOption
ByLionUsersField orders the results by lion_users field.
func ByRoleID ¶
func ByRoleID(opts ...sql.OrderTermOption) OrderOption
ByRoleID orders the results by the role_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.