Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.TenantUser) predicate.TenantUser
- func ArchivedAt(v time.Time) predicate.TenantUser
- func ArchivedAtEQ(v time.Time) predicate.TenantUser
- func ArchivedAtGT(v time.Time) predicate.TenantUser
- func ArchivedAtGTE(v time.Time) predicate.TenantUser
- func ArchivedAtIn(vs ...time.Time) predicate.TenantUser
- func ArchivedAtIsNil() predicate.TenantUser
- func ArchivedAtLT(v time.Time) predicate.TenantUser
- func ArchivedAtLTE(v time.Time) predicate.TenantUser
- func ArchivedAtNEQ(v time.Time) predicate.TenantUser
- func ArchivedAtNotIn(vs ...time.Time) predicate.TenantUser
- func ArchivedAtNotNil() predicate.TenantUser
- func CreatedAt(v time.Time) predicate.TenantUser
- func CreatedAtEQ(v time.Time) predicate.TenantUser
- func CreatedAtGT(v time.Time) predicate.TenantUser
- func CreatedAtGTE(v time.Time) predicate.TenantUser
- func CreatedAtIn(vs ...time.Time) predicate.TenantUser
- func CreatedAtIsNil() predicate.TenantUser
- func CreatedAtLT(v time.Time) predicate.TenantUser
- func CreatedAtLTE(v time.Time) predicate.TenantUser
- func CreatedAtNEQ(v time.Time) predicate.TenantUser
- func CreatedAtNotIn(vs ...time.Time) predicate.TenantUser
- func CreatedAtNotNil() predicate.TenantUser
- func CreatedByID(v uuid.UUID) predicate.TenantUser
- func CreatedByIDEQ(v uuid.UUID) predicate.TenantUser
- func CreatedByIDGT(v uuid.UUID) predicate.TenantUser
- func CreatedByIDGTE(v uuid.UUID) predicate.TenantUser
- func CreatedByIDIn(vs ...uuid.UUID) predicate.TenantUser
- func CreatedByIDIsNil() predicate.TenantUser
- func CreatedByIDLT(v uuid.UUID) predicate.TenantUser
- func CreatedByIDLTE(v uuid.UUID) predicate.TenantUser
- func CreatedByIDNEQ(v uuid.UUID) predicate.TenantUser
- func CreatedByIDNotIn(vs ...uuid.UUID) predicate.TenantUser
- func CreatedByIDNotNil() predicate.TenantUser
- func DeletedAt(v time.Time) predicate.TenantUser
- func DeletedAtEQ(v time.Time) predicate.TenantUser
- func DeletedAtGT(v time.Time) predicate.TenantUser
- func DeletedAtGTE(v time.Time) predicate.TenantUser
- func DeletedAtIn(vs ...time.Time) predicate.TenantUser
- func DeletedAtIsNil() predicate.TenantUser
- func DeletedAtLT(v time.Time) predicate.TenantUser
- func DeletedAtLTE(v time.Time) predicate.TenantUser
- func DeletedAtNEQ(v time.Time) predicate.TenantUser
- func DeletedAtNotIn(vs ...time.Time) predicate.TenantUser
- func DeletedAtNotNil() predicate.TenantUser
- func DeletedByID(v uuid.UUID) predicate.TenantUser
- func DeletedByIDEQ(v uuid.UUID) predicate.TenantUser
- func DeletedByIDGT(v uuid.UUID) predicate.TenantUser
- func DeletedByIDGTE(v uuid.UUID) predicate.TenantUser
- func DeletedByIDIn(vs ...uuid.UUID) predicate.TenantUser
- func DeletedByIDIsNil() predicate.TenantUser
- func DeletedByIDLT(v uuid.UUID) predicate.TenantUser
- func DeletedByIDLTE(v uuid.UUID) predicate.TenantUser
- func DeletedByIDNEQ(v uuid.UUID) predicate.TenantUser
- func DeletedByIDNotIn(vs ...uuid.UUID) predicate.TenantUser
- func DeletedByIDNotNil() predicate.TenantUser
- func HasUser() predicate.TenantUser
- func HasUserWith(preds ...predicate.User) predicate.TenantUser
- func ID(id uuid.UUID) predicate.TenantUser
- func IDEQ(id uuid.UUID) predicate.TenantUser
- func IDGT(id uuid.UUID) predicate.TenantUser
- func IDGTE(id uuid.UUID) predicate.TenantUser
- func IDIn(ids ...uuid.UUID) predicate.TenantUser
- func IDLT(id uuid.UUID) predicate.TenantUser
- func IDLTE(id uuid.UUID) predicate.TenantUser
- func IDNEQ(id uuid.UUID) predicate.TenantUser
- func IDNotIn(ids ...uuid.UUID) predicate.TenantUser
- func IsDefault(v bool) predicate.TenantUser
- func IsDefaultEQ(v bool) predicate.TenantUser
- func IsDefaultNEQ(v bool) predicate.TenantUser
- func Not(p predicate.TenantUser) predicate.TenantUser
- func Or(predicates ...predicate.TenantUser) predicate.TenantUser
- func PublishedAt(v time.Time) predicate.TenantUser
- func PublishedAtEQ(v time.Time) predicate.TenantUser
- func PublishedAtGT(v time.Time) predicate.TenantUser
- func PublishedAtGTE(v time.Time) predicate.TenantUser
- func PublishedAtIn(vs ...time.Time) predicate.TenantUser
- func PublishedAtIsNil() predicate.TenantUser
- func PublishedAtLT(v time.Time) predicate.TenantUser
- func PublishedAtLTE(v time.Time) predicate.TenantUser
- func PublishedAtNEQ(v time.Time) predicate.TenantUser
- func PublishedAtNotIn(vs ...time.Time) predicate.TenantUser
- func PublishedAtNotNil() predicate.TenantUser
- func Role(v string) predicate.TenantUser
- func RoleContains(v string) predicate.TenantUser
- func RoleContainsFold(v string) predicate.TenantUser
- func RoleEQ(v string) predicate.TenantUser
- func RoleEqualFold(v string) predicate.TenantUser
- func RoleGT(v string) predicate.TenantUser
- func RoleGTE(v string) predicate.TenantUser
- func RoleHasPrefix(v string) predicate.TenantUser
- func RoleHasSuffix(v string) predicate.TenantUser
- func RoleIn(vs ...string) predicate.TenantUser
- func RoleIsNil() predicate.TenantUser
- func RoleLT(v string) predicate.TenantUser
- func RoleLTE(v string) predicate.TenantUser
- func RoleNEQ(v string) predicate.TenantUser
- func RoleNotIn(vs ...string) predicate.TenantUser
- func RoleNotNil() predicate.TenantUser
- func StatusEQ(v Status) predicate.TenantUser
- func StatusIn(vs ...Status) predicate.TenantUser
- func StatusNEQ(v Status) predicate.TenantUser
- func StatusNotIn(vs ...Status) predicate.TenantUser
- func StatusValidator(s Status) error
- func TenantID(v uuid.UUID) predicate.TenantUser
- func TenantIDEQ(v uuid.UUID) predicate.TenantUser
- func TenantIDGT(v uuid.UUID) predicate.TenantUser
- func TenantIDGTE(v uuid.UUID) predicate.TenantUser
- func TenantIDIn(vs ...uuid.UUID) predicate.TenantUser
- func TenantIDLT(v uuid.UUID) predicate.TenantUser
- func TenantIDLTE(v uuid.UUID) predicate.TenantUser
- func TenantIDNEQ(v uuid.UUID) predicate.TenantUser
- func TenantIDNotIn(vs ...uuid.UUID) predicate.TenantUser
- func UpdatedAt(v time.Time) predicate.TenantUser
- func UpdatedAtEQ(v time.Time) predicate.TenantUser
- func UpdatedAtGT(v time.Time) predicate.TenantUser
- func UpdatedAtGTE(v time.Time) predicate.TenantUser
- func UpdatedAtIn(vs ...time.Time) predicate.TenantUser
- func UpdatedAtIsNil() predicate.TenantUser
- func UpdatedAtLT(v time.Time) predicate.TenantUser
- func UpdatedAtLTE(v time.Time) predicate.TenantUser
- func UpdatedAtNEQ(v time.Time) predicate.TenantUser
- func UpdatedAtNotIn(vs ...time.Time) predicate.TenantUser
- func UpdatedAtNotNil() predicate.TenantUser
- func UpdatedByID(v uuid.UUID) predicate.TenantUser
- func UpdatedByIDEQ(v uuid.UUID) predicate.TenantUser
- func UpdatedByIDGT(v uuid.UUID) predicate.TenantUser
- func UpdatedByIDGTE(v uuid.UUID) predicate.TenantUser
- func UpdatedByIDIn(vs ...uuid.UUID) predicate.TenantUser
- func UpdatedByIDIsNil() predicate.TenantUser
- func UpdatedByIDLT(v uuid.UUID) predicate.TenantUser
- func UpdatedByIDLTE(v uuid.UUID) predicate.TenantUser
- func UpdatedByIDNEQ(v uuid.UUID) predicate.TenantUser
- func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.TenantUser
- func UpdatedByIDNotNil() predicate.TenantUser
- func UserID(v uuid.UUID) predicate.TenantUser
- func UserIDEQ(v uuid.UUID) predicate.TenantUser
- func UserIDIn(vs ...uuid.UUID) predicate.TenantUser
- func UserIDNEQ(v uuid.UUID) predicate.TenantUser
- func UserIDNotIn(vs ...uuid.UUID) predicate.TenantUser
- func ValidColumn(column string) bool
- type OrderOption
- func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedByID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the tenantuser type in the database. Label = "tenant_user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedByID holds the string denoting the created_by_id field in the database. FieldCreatedByID = "created_by_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedByID holds the string denoting the updated_by_id field in the database. FieldUpdatedByID = "updated_by_id" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedByID holds the string denoting the deleted_by_id field in the database. FieldDeletedByID = "deleted_by_id" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldPublishedAt holds the string denoting the published_at field in the database. FieldPublishedAt = "published_at" // FieldArchivedAt holds the string denoting the archived_at field in the database. FieldArchivedAt = "archived_at" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the tenantuser in the database. Table = "tenant_users" // UserTable is the table that holds the user relation/edge. UserTable = "tenant_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" )
const DefaultStatus = StatusActive
StatusActive is the default value of the Status enum.
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 // DefaultIsDefault holds the default value on creation for the "is_default" field. DefaultIsDefault bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedByID, FieldCreatedAt, FieldUpdatedByID, FieldUpdatedAt, FieldDeletedByID, FieldDeletedAt, FieldPublishedAt, FieldArchivedAt, FieldTenantID, FieldUserID, FieldRole, FieldStatus, FieldIsDefault, }
Columns holds all SQL columns for tenantuser fields.
Functions ¶
func And ¶
func And(predicates ...predicate.TenantUser) predicate.TenantUser
And groups predicates with the AND operator between them.
func ArchivedAt ¶
func ArchivedAt(v time.Time) predicate.TenantUser
ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.
func ArchivedAtEQ ¶
func ArchivedAtEQ(v time.Time) predicate.TenantUser
ArchivedAtEQ applies the EQ predicate on the "archived_at" field.
func ArchivedAtGT ¶
func ArchivedAtGT(v time.Time) predicate.TenantUser
ArchivedAtGT applies the GT predicate on the "archived_at" field.
func ArchivedAtGTE ¶
func ArchivedAtGTE(v time.Time) predicate.TenantUser
ArchivedAtGTE applies the GTE predicate on the "archived_at" field.
func ArchivedAtIn ¶
func ArchivedAtIn(vs ...time.Time) predicate.TenantUser
ArchivedAtIn applies the In predicate on the "archived_at" field.
func ArchivedAtIsNil ¶
func ArchivedAtIsNil() predicate.TenantUser
ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.
func ArchivedAtLT ¶
func ArchivedAtLT(v time.Time) predicate.TenantUser
ArchivedAtLT applies the LT predicate on the "archived_at" field.
func ArchivedAtLTE ¶
func ArchivedAtLTE(v time.Time) predicate.TenantUser
ArchivedAtLTE applies the LTE predicate on the "archived_at" field.
func ArchivedAtNEQ ¶
func ArchivedAtNEQ(v time.Time) predicate.TenantUser
ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.
func ArchivedAtNotIn ¶
func ArchivedAtNotIn(vs ...time.Time) predicate.TenantUser
ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.
func ArchivedAtNotNil ¶
func ArchivedAtNotNil() predicate.TenantUser
ArchivedAtNotNil applies the NotNil predicate on the "archived_at" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.TenantUser
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.TenantUser
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.TenantUser
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.TenantUser
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.TenantUser
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.TenantUser
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.TenantUser
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.TenantUser
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.TenantUser
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.TenantUser
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.TenantUser
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedByID ¶
func CreatedByID(v uuid.UUID) predicate.TenantUser
CreatedByID applies equality check predicate on the "created_by_id" field. It's identical to CreatedByIDEQ.
func CreatedByIDEQ ¶
func CreatedByIDEQ(v uuid.UUID) predicate.TenantUser
CreatedByIDEQ applies the EQ predicate on the "created_by_id" field.
func CreatedByIDGT ¶
func CreatedByIDGT(v uuid.UUID) predicate.TenantUser
CreatedByIDGT applies the GT predicate on the "created_by_id" field.
func CreatedByIDGTE ¶
func CreatedByIDGTE(v uuid.UUID) predicate.TenantUser
CreatedByIDGTE applies the GTE predicate on the "created_by_id" field.
func CreatedByIDIn ¶
func CreatedByIDIn(vs ...uuid.UUID) predicate.TenantUser
CreatedByIDIn applies the In predicate on the "created_by_id" field.
func CreatedByIDIsNil ¶
func CreatedByIDIsNil() predicate.TenantUser
CreatedByIDIsNil applies the IsNil predicate on the "created_by_id" field.
func CreatedByIDLT ¶
func CreatedByIDLT(v uuid.UUID) predicate.TenantUser
CreatedByIDLT applies the LT predicate on the "created_by_id" field.
func CreatedByIDLTE ¶
func CreatedByIDLTE(v uuid.UUID) predicate.TenantUser
CreatedByIDLTE applies the LTE predicate on the "created_by_id" field.
func CreatedByIDNEQ ¶
func CreatedByIDNEQ(v uuid.UUID) predicate.TenantUser
CreatedByIDNEQ applies the NEQ predicate on the "created_by_id" field.
func CreatedByIDNotIn ¶
func CreatedByIDNotIn(vs ...uuid.UUID) predicate.TenantUser
CreatedByIDNotIn applies the NotIn predicate on the "created_by_id" field.
func CreatedByIDNotNil ¶
func CreatedByIDNotNil() predicate.TenantUser
CreatedByIDNotNil applies the NotNil predicate on the "created_by_id" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.TenantUser
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.TenantUser
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.TenantUser
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.TenantUser
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.TenantUser
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.TenantUser
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.TenantUser
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.TenantUser
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.TenantUser
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.TenantUser
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.TenantUser
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedByID ¶
func DeletedByID(v uuid.UUID) predicate.TenantUser
DeletedByID applies equality check predicate on the "deleted_by_id" field. It's identical to DeletedByIDEQ.
func DeletedByIDEQ ¶
func DeletedByIDEQ(v uuid.UUID) predicate.TenantUser
DeletedByIDEQ applies the EQ predicate on the "deleted_by_id" field.
func DeletedByIDGT ¶
func DeletedByIDGT(v uuid.UUID) predicate.TenantUser
DeletedByIDGT applies the GT predicate on the "deleted_by_id" field.
func DeletedByIDGTE ¶
func DeletedByIDGTE(v uuid.UUID) predicate.TenantUser
DeletedByIDGTE applies the GTE predicate on the "deleted_by_id" field.
func DeletedByIDIn ¶
func DeletedByIDIn(vs ...uuid.UUID) predicate.TenantUser
DeletedByIDIn applies the In predicate on the "deleted_by_id" field.
func DeletedByIDIsNil ¶
func DeletedByIDIsNil() predicate.TenantUser
DeletedByIDIsNil applies the IsNil predicate on the "deleted_by_id" field.
func DeletedByIDLT ¶
func DeletedByIDLT(v uuid.UUID) predicate.TenantUser
DeletedByIDLT applies the LT predicate on the "deleted_by_id" field.
func DeletedByIDLTE ¶
func DeletedByIDLTE(v uuid.UUID) predicate.TenantUser
DeletedByIDLTE applies the LTE predicate on the "deleted_by_id" field.
func DeletedByIDNEQ ¶
func DeletedByIDNEQ(v uuid.UUID) predicate.TenantUser
DeletedByIDNEQ applies the NEQ predicate on the "deleted_by_id" field.
func DeletedByIDNotIn ¶
func DeletedByIDNotIn(vs ...uuid.UUID) predicate.TenantUser
DeletedByIDNotIn applies the NotIn predicate on the "deleted_by_id" field.
func DeletedByIDNotNil ¶
func DeletedByIDNotNil() predicate.TenantUser
DeletedByIDNotNil applies the NotNil predicate on the "deleted_by_id" field.
func HasUser ¶
func HasUser() predicate.TenantUser
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.TenantUser
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.TenantUser
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.TenantUser
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.TenantUser
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.TenantUser
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.TenantUser
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.TenantUser
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.TenantUser
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.TenantUser
IDNotIn applies the NotIn predicate on the ID field.
func IsDefault ¶
func IsDefault(v bool) predicate.TenantUser
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
func IsDefaultEQ(v bool) predicate.TenantUser
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultNEQ ¶
func IsDefaultNEQ(v bool) predicate.TenantUser
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func Not ¶
func Not(p predicate.TenantUser) predicate.TenantUser
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.TenantUser) predicate.TenantUser
Or groups predicates with the OR operator between them.
func PublishedAt ¶
func PublishedAt(v time.Time) predicate.TenantUser
PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.
func PublishedAtEQ ¶
func PublishedAtEQ(v time.Time) predicate.TenantUser
PublishedAtEQ applies the EQ predicate on the "published_at" field.
func PublishedAtGT ¶
func PublishedAtGT(v time.Time) predicate.TenantUser
PublishedAtGT applies the GT predicate on the "published_at" field.
func PublishedAtGTE ¶
func PublishedAtGTE(v time.Time) predicate.TenantUser
PublishedAtGTE applies the GTE predicate on the "published_at" field.
func PublishedAtIn ¶
func PublishedAtIn(vs ...time.Time) predicate.TenantUser
PublishedAtIn applies the In predicate on the "published_at" field.
func PublishedAtIsNil ¶
func PublishedAtIsNil() predicate.TenantUser
PublishedAtIsNil applies the IsNil predicate on the "published_at" field.
func PublishedAtLT ¶
func PublishedAtLT(v time.Time) predicate.TenantUser
PublishedAtLT applies the LT predicate on the "published_at" field.
func PublishedAtLTE ¶
func PublishedAtLTE(v time.Time) predicate.TenantUser
PublishedAtLTE applies the LTE predicate on the "published_at" field.
func PublishedAtNEQ ¶
func PublishedAtNEQ(v time.Time) predicate.TenantUser
PublishedAtNEQ applies the NEQ predicate on the "published_at" field.
func PublishedAtNotIn ¶
func PublishedAtNotIn(vs ...time.Time) predicate.TenantUser
PublishedAtNotIn applies the NotIn predicate on the "published_at" field.
func PublishedAtNotNil ¶
func PublishedAtNotNil() predicate.TenantUser
PublishedAtNotNil applies the NotNil predicate on the "published_at" field.
func Role ¶
func Role(v string) predicate.TenantUser
Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
func RoleContains ¶
func RoleContains(v string) predicate.TenantUser
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
func RoleContainsFold(v string) predicate.TenantUser
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEQ ¶
func RoleEQ(v string) predicate.TenantUser
RoleEQ applies the EQ predicate on the "role" field.
func RoleEqualFold ¶
func RoleEqualFold(v string) predicate.TenantUser
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleGT ¶
func RoleGT(v string) predicate.TenantUser
RoleGT applies the GT predicate on the "role" field.
func RoleGTE ¶
func RoleGTE(v string) predicate.TenantUser
RoleGTE applies the GTE predicate on the "role" field.
func RoleHasPrefix ¶
func RoleHasPrefix(v string) predicate.TenantUser
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
func RoleHasSuffix(v string) predicate.TenantUser
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...string) predicate.TenantUser
RoleIn applies the In predicate on the "role" field.
func RoleIsNil ¶
func RoleIsNil() predicate.TenantUser
RoleIsNil applies the IsNil predicate on the "role" field.
func RoleLT ¶
func RoleLT(v string) predicate.TenantUser
RoleLT applies the LT predicate on the "role" field.
func RoleLTE ¶
func RoleLTE(v string) predicate.TenantUser
RoleLTE applies the LTE predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v string) predicate.TenantUser
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...string) predicate.TenantUser
RoleNotIn applies the NotIn predicate on the "role" field.
func RoleNotNil ¶
func RoleNotNil() predicate.TenantUser
RoleNotNil applies the NotNil predicate on the "role" field.
func StatusEQ ¶
func StatusEQ(v Status) predicate.TenantUser
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...Status) predicate.TenantUser
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v Status) predicate.TenantUser
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...Status) predicate.TenantUser
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TenantID ¶
func TenantID(v uuid.UUID) predicate.TenantUser
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDEQ ¶
func TenantIDEQ(v uuid.UUID) predicate.TenantUser
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDGT ¶
func TenantIDGT(v uuid.UUID) predicate.TenantUser
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
func TenantIDGTE(v uuid.UUID) predicate.TenantUser
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDIn ¶
func TenantIDIn(vs ...uuid.UUID) predicate.TenantUser
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
func TenantIDLT(v uuid.UUID) predicate.TenantUser
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
func TenantIDLTE(v uuid.UUID) predicate.TenantUser
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
func TenantIDNEQ(v uuid.UUID) predicate.TenantUser
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
func TenantIDNotIn(vs ...uuid.UUID) predicate.TenantUser
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.TenantUser
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.TenantUser
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.TenantUser
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.TenantUser
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.TenantUser
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.TenantUser
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.TenantUser
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.TenantUser
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.TenantUser
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.TenantUser
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.TenantUser
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedByID ¶
func UpdatedByID(v uuid.UUID) predicate.TenantUser
UpdatedByID applies equality check predicate on the "updated_by_id" field. It's identical to UpdatedByIDEQ.
func UpdatedByIDEQ ¶
func UpdatedByIDEQ(v uuid.UUID) predicate.TenantUser
UpdatedByIDEQ applies the EQ predicate on the "updated_by_id" field.
func UpdatedByIDGT ¶
func UpdatedByIDGT(v uuid.UUID) predicate.TenantUser
UpdatedByIDGT applies the GT predicate on the "updated_by_id" field.
func UpdatedByIDGTE ¶
func UpdatedByIDGTE(v uuid.UUID) predicate.TenantUser
UpdatedByIDGTE applies the GTE predicate on the "updated_by_id" field.
func UpdatedByIDIn ¶
func UpdatedByIDIn(vs ...uuid.UUID) predicate.TenantUser
UpdatedByIDIn applies the In predicate on the "updated_by_id" field.
func UpdatedByIDIsNil ¶
func UpdatedByIDIsNil() predicate.TenantUser
UpdatedByIDIsNil applies the IsNil predicate on the "updated_by_id" field.
func UpdatedByIDLT ¶
func UpdatedByIDLT(v uuid.UUID) predicate.TenantUser
UpdatedByIDLT applies the LT predicate on the "updated_by_id" field.
func UpdatedByIDLTE ¶
func UpdatedByIDLTE(v uuid.UUID) predicate.TenantUser
UpdatedByIDLTE applies the LTE predicate on the "updated_by_id" field.
func UpdatedByIDNEQ ¶
func UpdatedByIDNEQ(v uuid.UUID) predicate.TenantUser
UpdatedByIDNEQ applies the NEQ predicate on the "updated_by_id" field.
func UpdatedByIDNotIn ¶
func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.TenantUser
UpdatedByIDNotIn applies the NotIn predicate on the "updated_by_id" field.
func UpdatedByIDNotNil ¶
func UpdatedByIDNotNil() predicate.TenantUser
UpdatedByIDNotNil applies the NotNil predicate on the "updated_by_id" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.TenantUser
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.TenantUser
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.TenantUser
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.TenantUser
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.TenantUser
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 TenantUser queries.
func ByArchivedAt ¶
func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
ByArchivedAt orders the results by the archived_at field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedByID ¶
func ByCreatedByID(opts ...sql.OrderTermOption) OrderOption
ByCreatedByID orders the results by the created_by_id field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedByID ¶
func ByDeletedByID(opts ...sql.OrderTermOption) OrderOption
ByDeletedByID orders the results by the deleted_by_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsDefault ¶
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
ByIsDefault orders the results by the is_default field.
func ByPublishedAt ¶
func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
ByPublishedAt orders the results by the published_at field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedByID ¶
func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
ByUpdatedByID orders the results by the updated_by_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.