Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserRole) predicate.UserRole
- func ExpiresAt(v time.Time) predicate.UserRole
- func ExpiresAtEQ(v time.Time) predicate.UserRole
- func ExpiresAtGT(v time.Time) predicate.UserRole
- func ExpiresAtGTE(v time.Time) predicate.UserRole
- func ExpiresAtIn(vs ...time.Time) predicate.UserRole
- func ExpiresAtIsNil() predicate.UserRole
- func ExpiresAtLT(v time.Time) predicate.UserRole
- func ExpiresAtLTE(v time.Time) predicate.UserRole
- func ExpiresAtNEQ(v time.Time) predicate.UserRole
- func ExpiresAtNotIn(vs ...time.Time) predicate.UserRole
- func ExpiresAtNotNil() predicate.UserRole
- func GrantedAt(v time.Time) predicate.UserRole
- func GrantedAtEQ(v time.Time) predicate.UserRole
- func GrantedAtGT(v time.Time) predicate.UserRole
- func GrantedAtGTE(v time.Time) predicate.UserRole
- func GrantedAtIn(vs ...time.Time) predicate.UserRole
- func GrantedAtLT(v time.Time) predicate.UserRole
- func GrantedAtLTE(v time.Time) predicate.UserRole
- func GrantedAtNEQ(v time.Time) predicate.UserRole
- func GrantedAtNotIn(vs ...time.Time) predicate.UserRole
- func HasRole() predicate.UserRole
- func HasRoleWith(preds ...predicate.Role) predicate.UserRole
- func HasTenant() predicate.UserRole
- func HasTenantWith(preds ...predicate.Tenant) predicate.UserRole
- func HasUser() predicate.UserRole
- func HasUserWith(preds ...predicate.User) predicate.UserRole
- func ID(id int64) predicate.UserRole
- func IDEQ(id int64) predicate.UserRole
- func IDGT(id int64) predicate.UserRole
- func IDGTE(id int64) predicate.UserRole
- func IDIn(ids ...int64) predicate.UserRole
- func IDLT(id int64) predicate.UserRole
- func IDLTE(id int64) predicate.UserRole
- func IDNEQ(id int64) predicate.UserRole
- func IDNotIn(ids ...int64) predicate.UserRole
- func Not(p predicate.UserRole) predicate.UserRole
- func Or(predicates ...predicate.UserRole) predicate.UserRole
- func RoleID(v int64) predicate.UserRole
- func RoleIDEQ(v int64) predicate.UserRole
- func RoleIDIn(vs ...int64) predicate.UserRole
- func RoleIDNEQ(v int64) predicate.UserRole
- func RoleIDNotIn(vs ...int64) predicate.UserRole
- func TenantID(v int64) predicate.UserRole
- func TenantIDEQ(v int64) predicate.UserRole
- func TenantIDIn(vs ...int64) predicate.UserRole
- func TenantIDIsNil() predicate.UserRole
- func TenantIDNEQ(v int64) predicate.UserRole
- func TenantIDNotIn(vs ...int64) predicate.UserRole
- func TenantIDNotNil() predicate.UserRole
- func UserID(v int64) predicate.UserRole
- func UserIDEQ(v int64) predicate.UserRole
- func UserIDIn(vs ...int64) predicate.UserRole
- func UserIDNEQ(v int64) predicate.UserRole
- func UserIDNotIn(vs ...int64) predicate.UserRole
- func ValidColumn(column string) bool
- type OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByGrantedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRoleField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRoleID(opts ...sql.OrderTermOption) OrderOption
- func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(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 userrole type in the database. Label = "user_role" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldGrantedAt holds the string denoting the granted_at field in the database. FieldGrantedAt = "granted_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeRole holds the string denoting the role edge name in mutations. EdgeRole = "role" // EdgeTenant holds the string denoting the tenant edge name in mutations. EdgeTenant = "tenant" // Table holds the table name of the userrole in the database. Table = "user_roles" // UserTable is the table that holds the user relation/edge. UserTable = "user_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" // RoleTable is the table that holds the role relation/edge. RoleTable = "user_roles" // 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" // TenantTable is the table that holds the tenant relation/edge. TenantTable = "user_roles" // TenantInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantInverseTable = "tenants" // TenantColumn is the table column denoting the tenant relation/edge. TenantColumn = "tenant_id" )
Variables ¶
var Columns = []string{ FieldID, FieldUserID, FieldRoleID, FieldTenantID, FieldGrantedAt, FieldExpiresAt, }
Columns holds all SQL columns for userrole fields.
var ( // DefaultGrantedAt holds the default value on creation for the "granted_at" field. DefaultGrantedAt func() time.Time )
Functions ¶
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func GrantedAt ¶
GrantedAt applies equality check predicate on the "granted_at" field. It's identical to GrantedAtEQ.
func GrantedAtEQ ¶
GrantedAtEQ applies the EQ predicate on the "granted_at" field.
func GrantedAtGT ¶
GrantedAtGT applies the GT predicate on the "granted_at" field.
func GrantedAtGTE ¶
GrantedAtGTE applies the GTE predicate on the "granted_at" field.
func GrantedAtIn ¶
GrantedAtIn applies the In predicate on the "granted_at" field.
func GrantedAtLT ¶
GrantedAtLT applies the LT predicate on the "granted_at" field.
func GrantedAtLTE ¶
GrantedAtLTE applies the LTE predicate on the "granted_at" field.
func GrantedAtNEQ ¶
GrantedAtNEQ applies the NEQ predicate on the "granted_at" field.
func GrantedAtNotIn ¶
GrantedAtNotIn applies the NotIn predicate on the "granted_at" field.
func HasRoleWith ¶
HasRoleWith applies the HasEdge predicate on the "role" edge with a given conditions (other predicates).
func HasTenantWith ¶
HasTenantWith applies the HasEdge predicate on the "tenant" 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 TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDIsNil ¶
TenantIDIsNil applies the IsNil predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func TenantIDNotNil ¶
TenantIDNotNil applies the NotNil predicate on the "tenant_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 ¶
type OrderOption ¶
OrderOption defines the ordering options for the UserRole queries.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByGrantedAt ¶
func ByGrantedAt(opts ...sql.OrderTermOption) OrderOption
ByGrantedAt orders the results by the granted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRoleField ¶
func ByRoleField(field string, opts ...sql.OrderTermOption) OrderOption
ByRoleField orders the results by role field.
func ByRoleID ¶
func ByRoleID(opts ...sql.OrderTermOption) OrderOption
ByRoleID orders the results by the role_id field.
func ByTenantField ¶
func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
ByTenantField orders the results by tenant field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_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.