Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Tenant) predicate.Tenant
- func BillingDetailsIsNil() predicate.Tenant
- func BillingDetailsNotNil() 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 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 ID(id string) predicate.Tenant
- func IDContainsFold(id string) predicate.Tenant
- func IDEQ(id string) predicate.Tenant
- func IDEqualFold(id string) predicate.Tenant
- func IDGT(id string) predicate.Tenant
- func IDGTE(id string) predicate.Tenant
- func IDIn(ids ...string) predicate.Tenant
- func IDLT(id string) predicate.Tenant
- func IDLTE(id string) predicate.Tenant
- func IDNEQ(id string) predicate.Tenant
- func IDNotIn(ids ...string) predicate.Tenant
- func MetadataIsNil() predicate.Tenant
- func MetadataNotNil() 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 Status(v string) predicate.Tenant
- func StatusContains(v string) predicate.Tenant
- func StatusContainsFold(v string) predicate.Tenant
- func StatusEQ(v string) predicate.Tenant
- func StatusEqualFold(v string) predicate.Tenant
- func StatusGT(v string) predicate.Tenant
- func StatusGTE(v string) predicate.Tenant
- func StatusHasPrefix(v string) predicate.Tenant
- func StatusHasSuffix(v string) predicate.Tenant
- func StatusIn(vs ...string) predicate.Tenant
- func StatusLT(v string) predicate.Tenant
- func StatusLTE(v string) predicate.Tenant
- func StatusNEQ(v string) predicate.Tenant
- func StatusNotIn(vs ...string) predicate.Tenant
- 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 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 ValidColumn(column string) bool
- type OrderOption
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" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // FieldBillingDetails holds the string denoting the billing_details field in the database. FieldBillingDetails = "billing_details" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // Table holds the table name of the tenant in the database. Table = "tenants" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // 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 // DefaultBillingDetails holds the default value on creation for the "billing_details" field. DefaultBillingDetails schema.TenantBillingDetails )
var Columns = []string{ FieldID, FieldName, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldBillingDetails, FieldMetadata, }
Columns holds all SQL columns for tenant fields.
Functions ¶
func BillingDetailsIsNil ¶ added in v1.0.0
BillingDetailsIsNil applies the IsNil predicate on the "billing_details" field.
func BillingDetailsNotNil ¶ added in v1.0.0
BillingDetailsNotNil applies the NotNil predicate on the "billing_details" 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 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 IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MetadataIsNil ¶ added in v1.0.20
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶ added in v1.0.20
MetadataNotNil applies the NotNil predicate on the "metadata" field.
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 Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" 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 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 ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at 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 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.