Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tenant) predicate.Tenant
- func ArchivedAt(v time.Time) predicate.Tenant
- func ArchivedAtEQ(v time.Time) predicate.Tenant
- func ArchivedAtGT(v time.Time) predicate.Tenant
- func ArchivedAtGTE(v time.Time) predicate.Tenant
- func ArchivedAtIn(vs ...time.Time) predicate.Tenant
- func ArchivedAtIsNil() predicate.Tenant
- func ArchivedAtLT(v time.Time) predicate.Tenant
- func ArchivedAtLTE(v time.Time) predicate.Tenant
- func ArchivedAtNEQ(v time.Time) predicate.Tenant
- func ArchivedAtNotIn(vs ...time.Time) predicate.Tenant
- func ArchivedAtNotNil() predicate.Tenant
- func Code(v string) predicate.Tenant
- func CodeContains(v string) predicate.Tenant
- func CodeContainsFold(v string) predicate.Tenant
- func CodeEQ(v string) predicate.Tenant
- func CodeEqualFold(v string) predicate.Tenant
- func CodeGT(v string) predicate.Tenant
- func CodeGTE(v string) predicate.Tenant
- func CodeHasPrefix(v string) predicate.Tenant
- func CodeHasSuffix(v string) predicate.Tenant
- func CodeIn(vs ...string) predicate.Tenant
- func CodeLT(v string) predicate.Tenant
- func CodeLTE(v string) predicate.Tenant
- func CodeNEQ(v string) predicate.Tenant
- func CodeNotIn(vs ...string) predicate.Tenant
- func CreatedAt(v time.Time) predicate.Tenant
- func CreatedAtEQ(v time.Time) predicate.Tenant
- func CreatedAtGT(v time.Time) predicate.Tenant
- func CreatedAtGTE(v time.Time) predicate.Tenant
- func CreatedAtIn(vs ...time.Time) predicate.Tenant
- func CreatedAtIsNil() predicate.Tenant
- func CreatedAtLT(v time.Time) predicate.Tenant
- func CreatedAtLTE(v time.Time) predicate.Tenant
- func CreatedAtNEQ(v time.Time) predicate.Tenant
- func CreatedAtNotIn(vs ...time.Time) predicate.Tenant
- func CreatedAtNotNil() predicate.Tenant
- func CreatedByID(v uuid.UUID) predicate.Tenant
- func CreatedByIDEQ(v uuid.UUID) predicate.Tenant
- func CreatedByIDGT(v uuid.UUID) predicate.Tenant
- func CreatedByIDGTE(v uuid.UUID) predicate.Tenant
- func CreatedByIDIn(vs ...uuid.UUID) predicate.Tenant
- func CreatedByIDIsNil() predicate.Tenant
- func CreatedByIDLT(v uuid.UUID) predicate.Tenant
- func CreatedByIDLTE(v uuid.UUID) predicate.Tenant
- func CreatedByIDNEQ(v uuid.UUID) predicate.Tenant
- func CreatedByIDNotIn(vs ...uuid.UUID) predicate.Tenant
- func CreatedByIDNotNil() predicate.Tenant
- func DeletedAt(v time.Time) predicate.Tenant
- func DeletedAtEQ(v time.Time) predicate.Tenant
- func DeletedAtGT(v time.Time) predicate.Tenant
- func DeletedAtGTE(v time.Time) predicate.Tenant
- func DeletedAtIn(vs ...time.Time) predicate.Tenant
- func DeletedAtIsNil() predicate.Tenant
- func DeletedAtLT(v time.Time) predicate.Tenant
- func DeletedAtLTE(v time.Time) predicate.Tenant
- func DeletedAtNEQ(v time.Time) predicate.Tenant
- func DeletedAtNotIn(vs ...time.Time) predicate.Tenant
- func DeletedAtNotNil() predicate.Tenant
- func DeletedByID(v uuid.UUID) predicate.Tenant
- func DeletedByIDEQ(v uuid.UUID) predicate.Tenant
- func DeletedByIDGT(v uuid.UUID) predicate.Tenant
- func DeletedByIDGTE(v uuid.UUID) predicate.Tenant
- func DeletedByIDIn(vs ...uuid.UUID) predicate.Tenant
- func DeletedByIDIsNil() predicate.Tenant
- func DeletedByIDLT(v uuid.UUID) predicate.Tenant
- func DeletedByIDLTE(v uuid.UUID) predicate.Tenant
- func DeletedByIDNEQ(v uuid.UUID) predicate.Tenant
- func DeletedByIDNotIn(vs ...uuid.UUID) predicate.Tenant
- func DeletedByIDNotNil() predicate.Tenant
- func Description(v string) predicate.Tenant
- func DescriptionContains(v string) predicate.Tenant
- func DescriptionContainsFold(v string) predicate.Tenant
- func DescriptionEQ(v string) predicate.Tenant
- func DescriptionEqualFold(v string) predicate.Tenant
- func DescriptionGT(v string) predicate.Tenant
- func DescriptionGTE(v string) predicate.Tenant
- func DescriptionHasPrefix(v string) predicate.Tenant
- func DescriptionHasSuffix(v string) predicate.Tenant
- func DescriptionIn(vs ...string) predicate.Tenant
- func DescriptionIsNil() predicate.Tenant
- func DescriptionLT(v string) predicate.Tenant
- func DescriptionLTE(v string) predicate.Tenant
- func DescriptionNEQ(v string) predicate.Tenant
- func DescriptionNotIn(vs ...string) predicate.Tenant
- func DescriptionNotNil() predicate.Tenant
- func HasChildren() predicate.Tenant
- func HasChildrenWith(preds ...predicate.Tenant) predicate.Tenant
- func HasParent() predicate.Tenant
- func HasParentWith(preds ...predicate.Tenant) predicate.Tenant
- func ID(id uuid.UUID) predicate.Tenant
- func IDEQ(id uuid.UUID) predicate.Tenant
- func IDGT(id uuid.UUID) predicate.Tenant
- func IDGTE(id uuid.UUID) predicate.Tenant
- func IDIn(ids ...uuid.UUID) predicate.Tenant
- func IDLT(id uuid.UUID) predicate.Tenant
- func IDLTE(id uuid.UUID) predicate.Tenant
- func IDNEQ(id uuid.UUID) predicate.Tenant
- func IDNotIn(ids ...uuid.UUID) predicate.Tenant
- func Name(v string) predicate.Tenant
- func NameContains(v string) predicate.Tenant
- func NameContainsFold(v string) predicate.Tenant
- func NameEQ(v string) predicate.Tenant
- func NameEqualFold(v string) predicate.Tenant
- func NameGT(v string) predicate.Tenant
- func NameGTE(v string) predicate.Tenant
- func NameHasPrefix(v string) predicate.Tenant
- func NameHasSuffix(v string) predicate.Tenant
- func NameIn(vs ...string) predicate.Tenant
- func NameLT(v string) predicate.Tenant
- func NameLTE(v string) predicate.Tenant
- func NameNEQ(v string) predicate.Tenant
- func NameNotIn(vs ...string) predicate.Tenant
- func Not(p predicate.Tenant) predicate.Tenant
- func Or(predicates ...predicate.Tenant) predicate.Tenant
- func OwnerID(v uuid.UUID) predicate.Tenant
- func OwnerIDEQ(v uuid.UUID) predicate.Tenant
- func OwnerIDGT(v uuid.UUID) predicate.Tenant
- func OwnerIDGTE(v uuid.UUID) predicate.Tenant
- func OwnerIDIn(vs ...uuid.UUID) predicate.Tenant
- func OwnerIDIsNil() predicate.Tenant
- func OwnerIDLT(v uuid.UUID) predicate.Tenant
- func OwnerIDLTE(v uuid.UUID) predicate.Tenant
- func OwnerIDNEQ(v uuid.UUID) predicate.Tenant
- func OwnerIDNotIn(vs ...uuid.UUID) predicate.Tenant
- func OwnerIDNotNil() predicate.Tenant
- func ParentTenantID(v uuid.UUID) predicate.Tenant
- func ParentTenantIDEQ(v uuid.UUID) predicate.Tenant
- func ParentTenantIDIn(vs ...uuid.UUID) predicate.Tenant
- func ParentTenantIDIsNil() predicate.Tenant
- func ParentTenantIDNEQ(v uuid.UUID) predicate.Tenant
- func ParentTenantIDNotIn(vs ...uuid.UUID) predicate.Tenant
- func ParentTenantIDNotNil() predicate.Tenant
- func PublishedAt(v time.Time) predicate.Tenant
- func PublishedAtEQ(v time.Time) predicate.Tenant
- func PublishedAtGT(v time.Time) predicate.Tenant
- func PublishedAtGTE(v time.Time) predicate.Tenant
- func PublishedAtIn(vs ...time.Time) predicate.Tenant
- func PublishedAtIsNil() predicate.Tenant
- func PublishedAtLT(v time.Time) predicate.Tenant
- func PublishedAtLTE(v time.Time) predicate.Tenant
- func PublishedAtNEQ(v time.Time) predicate.Tenant
- func PublishedAtNotIn(vs ...time.Time) predicate.Tenant
- func PublishedAtNotNil() predicate.Tenant
- func StatusEQ(v Status) predicate.Tenant
- func StatusIn(vs ...Status) predicate.Tenant
- func StatusNEQ(v Status) predicate.Tenant
- func StatusNotIn(vs ...Status) predicate.Tenant
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Tenant
- func UpdatedAtEQ(v time.Time) predicate.Tenant
- func UpdatedAtGT(v time.Time) predicate.Tenant
- func UpdatedAtGTE(v time.Time) predicate.Tenant
- func UpdatedAtIn(vs ...time.Time) predicate.Tenant
- func UpdatedAtIsNil() predicate.Tenant
- func UpdatedAtLT(v time.Time) predicate.Tenant
- func UpdatedAtLTE(v time.Time) predicate.Tenant
- func UpdatedAtNEQ(v time.Time) predicate.Tenant
- func UpdatedAtNotIn(vs ...time.Time) predicate.Tenant
- func UpdatedAtNotNil() predicate.Tenant
- func UpdatedByID(v uuid.UUID) predicate.Tenant
- func UpdatedByIDEQ(v uuid.UUID) predicate.Tenant
- func UpdatedByIDGT(v uuid.UUID) predicate.Tenant
- func UpdatedByIDGTE(v uuid.UUID) predicate.Tenant
- func UpdatedByIDIn(vs ...uuid.UUID) predicate.Tenant
- func UpdatedByIDIsNil() predicate.Tenant
- func UpdatedByIDLT(v uuid.UUID) predicate.Tenant
- func UpdatedByIDLTE(v uuid.UUID) predicate.Tenant
- func UpdatedByIDNEQ(v uuid.UUID) predicate.Tenant
- func UpdatedByIDNotIn(vs ...uuid.UUID) predicate.Tenant
- func UpdatedByIDNotNil() predicate.Tenant
- func ValidColumn(column string) bool
- type OrderOption
- func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
- func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
- func ByCode(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 ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByParentTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedByID(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the tenant type in the database. Label = "tenant" // 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" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldParentTenantID holds the string denoting the parent_tenant_id field in the database. FieldParentTenantID = "parent_tenant_id" // EdgeParent holds the string denoting the parent edge name in mutations. EdgeParent = "parent" // EdgeChildren holds the string denoting the children edge name in mutations. EdgeChildren = "children" // Table holds the table name of the tenant in the database. Table = "tenants" // ParentTable is the table that holds the parent relation/edge. ParentTable = "tenants" // ParentColumn is the table column denoting the parent relation/edge. ParentColumn = "parent_tenant_id" // ChildrenTable is the table that holds the children relation/edge. ChildrenTable = "tenants" // ChildrenColumn is the table column denoting the children relation/edge. ChildrenColumn = "parent_tenant_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 // CodeValidator is a validator for the "code" field. It is called by the builders before save. CodeValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // 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, FieldCode, FieldName, FieldDescription, FieldStatus, FieldOwnerID, FieldParentTenantID, }
Columns holds all SQL columns for tenant fields.
Functions ¶
func ArchivedAt ¶
ArchivedAt applies equality check predicate on the "archived_at" field. It's identical to ArchivedAtEQ.
func ArchivedAtEQ ¶
ArchivedAtEQ applies the EQ predicate on the "archived_at" field.
func ArchivedAtGT ¶
ArchivedAtGT applies the GT predicate on the "archived_at" field.
func ArchivedAtGTE ¶
ArchivedAtGTE applies the GTE predicate on the "archived_at" field.
func ArchivedAtIn ¶
ArchivedAtIn applies the In predicate on the "archived_at" field.
func ArchivedAtIsNil ¶
ArchivedAtIsNil applies the IsNil predicate on the "archived_at" field.
func ArchivedAtLT ¶
ArchivedAtLT applies the LT predicate on the "archived_at" field.
func ArchivedAtLTE ¶
ArchivedAtLTE applies the LTE predicate on the "archived_at" field.
func ArchivedAtNEQ ¶
ArchivedAtNEQ applies the NEQ predicate on the "archived_at" field.
func ArchivedAtNotIn ¶
ArchivedAtNotIn applies the NotIn predicate on the "archived_at" field.
func ArchivedAtNotNil ¶
ArchivedAtNotNil applies the NotNil predicate on the "archived_at" field.
func CodeContains ¶
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEqualFold ¶
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeHasPrefix ¶
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
CodeHasSuffix applies the HasSuffix predicate on the "code" 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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedByID ¶
CreatedByID applies equality check predicate on the "created_by_id" field. It's identical to CreatedByIDEQ.
func CreatedByIDEQ ¶
CreatedByIDEQ applies the EQ predicate on the "created_by_id" field.
func CreatedByIDGT ¶
CreatedByIDGT applies the GT predicate on the "created_by_id" field.
func CreatedByIDGTE ¶
CreatedByIDGTE applies the GTE predicate on the "created_by_id" field.
func CreatedByIDIn ¶
CreatedByIDIn applies the In predicate on the "created_by_id" field.
func CreatedByIDIsNil ¶
CreatedByIDIsNil applies the IsNil predicate on the "created_by_id" field.
func CreatedByIDLT ¶
CreatedByIDLT applies the LT predicate on the "created_by_id" field.
func CreatedByIDLTE ¶
CreatedByIDLTE applies the LTE predicate on the "created_by_id" field.
func CreatedByIDNEQ ¶
CreatedByIDNEQ applies the NEQ predicate on the "created_by_id" field.
func CreatedByIDNotIn ¶
CreatedByIDNotIn applies the NotIn predicate on the "created_by_id" field.
func CreatedByIDNotNil ¶
CreatedByIDNotNil applies the NotNil predicate on the "created_by_id" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedByID ¶
DeletedByID applies equality check predicate on the "deleted_by_id" field. It's identical to DeletedByIDEQ.
func DeletedByIDEQ ¶
DeletedByIDEQ applies the EQ predicate on the "deleted_by_id" field.
func DeletedByIDGT ¶
DeletedByIDGT applies the GT predicate on the "deleted_by_id" field.
func DeletedByIDGTE ¶
DeletedByIDGTE applies the GTE predicate on the "deleted_by_id" field.
func DeletedByIDIn ¶
DeletedByIDIn applies the In predicate on the "deleted_by_id" field.
func DeletedByIDIsNil ¶
DeletedByIDIsNil applies the IsNil predicate on the "deleted_by_id" field.
func DeletedByIDLT ¶
DeletedByIDLT applies the LT predicate on the "deleted_by_id" field.
func DeletedByIDLTE ¶
DeletedByIDLTE applies the LTE predicate on the "deleted_by_id" field.
func DeletedByIDNEQ ¶
DeletedByIDNEQ applies the NEQ predicate on the "deleted_by_id" field.
func DeletedByIDNotIn ¶
DeletedByIDNotIn applies the NotIn predicate on the "deleted_by_id" field.
func DeletedByIDNotNil ¶
DeletedByIDNotNil applies the NotNil predicate on the "deleted_by_id" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasChildren ¶
HasChildren applies the HasEdge predicate on the "children" edge.
func HasChildrenWith ¶
HasChildrenWith applies the HasEdge predicate on the "children" edge with a given conditions (other predicates).
func HasParentWith ¶
HasParentWith applies the HasEdge predicate on the "parent" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDIsNil ¶
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func ParentTenantID ¶
ParentTenantID applies equality check predicate on the "parent_tenant_id" field. It's identical to ParentTenantIDEQ.
func ParentTenantIDEQ ¶
ParentTenantIDEQ applies the EQ predicate on the "parent_tenant_id" field.
func ParentTenantIDIn ¶
ParentTenantIDIn applies the In predicate on the "parent_tenant_id" field.
func ParentTenantIDIsNil ¶
ParentTenantIDIsNil applies the IsNil predicate on the "parent_tenant_id" field.
func ParentTenantIDNEQ ¶
ParentTenantIDNEQ applies the NEQ predicate on the "parent_tenant_id" field.
func ParentTenantIDNotIn ¶
ParentTenantIDNotIn applies the NotIn predicate on the "parent_tenant_id" field.
func ParentTenantIDNotNil ¶
ParentTenantIDNotNil applies the NotNil predicate on the "parent_tenant_id" field.
func PublishedAt ¶
PublishedAt applies equality check predicate on the "published_at" field. It's identical to PublishedAtEQ.
func PublishedAtEQ ¶
PublishedAtEQ applies the EQ predicate on the "published_at" field.
func PublishedAtGT ¶
PublishedAtGT applies the GT predicate on the "published_at" field.
func PublishedAtGTE ¶
PublishedAtGTE applies the GTE predicate on the "published_at" field.
func PublishedAtIn ¶
PublishedAtIn applies the In predicate on the "published_at" field.
func PublishedAtIsNil ¶
PublishedAtIsNil applies the IsNil predicate on the "published_at" field.
func PublishedAtLT ¶
PublishedAtLT applies the LT predicate on the "published_at" field.
func PublishedAtLTE ¶
PublishedAtLTE applies the LTE predicate on the "published_at" field.
func PublishedAtNEQ ¶
PublishedAtNEQ applies the NEQ predicate on the "published_at" field.
func PublishedAtNotIn ¶
PublishedAtNotIn applies the NotIn predicate on the "published_at" field.
func PublishedAtNotNil ¶
PublishedAtNotNil applies the NotNil predicate on the "published_at" field.
func StatusNotIn ¶
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 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedByID ¶
UpdatedByID applies equality check predicate on the "updated_by_id" field. It's identical to UpdatedByIDEQ.
func UpdatedByIDEQ ¶
UpdatedByIDEQ applies the EQ predicate on the "updated_by_id" field.
func UpdatedByIDGT ¶
UpdatedByIDGT applies the GT predicate on the "updated_by_id" field.
func UpdatedByIDGTE ¶
UpdatedByIDGTE applies the GTE predicate on the "updated_by_id" field.
func UpdatedByIDIn ¶
UpdatedByIDIn applies the In predicate on the "updated_by_id" field.
func UpdatedByIDIsNil ¶
UpdatedByIDIsNil applies the IsNil predicate on the "updated_by_id" field.
func UpdatedByIDLT ¶
UpdatedByIDLT applies the LT predicate on the "updated_by_id" field.
func UpdatedByIDLTE ¶
UpdatedByIDLTE applies the LTE predicate on the "updated_by_id" field.
func UpdatedByIDNEQ ¶
UpdatedByIDNEQ applies the NEQ predicate on the "updated_by_id" field.
func UpdatedByIDNotIn ¶
UpdatedByIDNotIn applies the NotIn predicate on the "updated_by_id" field.
func UpdatedByIDNotNil ¶
UpdatedByIDNotNil applies the NotNil predicate on the "updated_by_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 Tenant queries.
func ByArchivedAt ¶
func ByArchivedAt(opts ...sql.OrderTermOption) OrderOption
ByArchivedAt orders the results by the archived_at field.
func ByChildren ¶
func ByChildren(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChildren orders the results by children terms.
func ByChildrenCount ¶
func ByChildrenCount(opts ...sql.OrderTermOption) OrderOption
ByChildrenCount orders the results by children count.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code 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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOwnerID ¶
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByParentField ¶
func ByParentField(field string, opts ...sql.OrderTermOption) OrderOption
ByParentField orders the results by parent field.
func ByParentTenantID ¶
func ByParentTenantID(opts ...sql.OrderTermOption) OrderOption
ByParentTenantID orders the results by the parent_tenant_id field.
func ByPublishedAt ¶
func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
ByPublishedAt orders the results by the published_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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.