Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgUserPreference) predicate.OrgUserPreference
- func ClientPreferencesIsNil() predicate.OrgUserPreference
- func ClientPreferencesNotNil() predicate.OrgUserPreference
- func CreatedAt(v time.Time) predicate.OrgUserPreference
- func CreatedAtEQ(v time.Time) predicate.OrgUserPreference
- func CreatedAtGT(v time.Time) predicate.OrgUserPreference
- func CreatedAtGTE(v time.Time) predicate.OrgUserPreference
- func CreatedAtIn(vs ...time.Time) predicate.OrgUserPreference
- func CreatedAtLT(v time.Time) predicate.OrgUserPreference
- func CreatedAtLTE(v time.Time) predicate.OrgUserPreference
- func CreatedAtNEQ(v time.Time) predicate.OrgUserPreference
- func CreatedAtNotIn(vs ...time.Time) predicate.OrgUserPreference
- func CreatedBy(v int) predicate.OrgUserPreference
- func CreatedByEQ(v int) predicate.OrgUserPreference
- func CreatedByGT(v int) predicate.OrgUserPreference
- func CreatedByGTE(v int) predicate.OrgUserPreference
- func CreatedByIn(vs ...int) predicate.OrgUserPreference
- func CreatedByLT(v int) predicate.OrgUserPreference
- func CreatedByLTE(v int) predicate.OrgUserPreference
- func CreatedByNEQ(v int) predicate.OrgUserPreference
- func CreatedByNotIn(vs ...int) predicate.OrgUserPreference
- func HasOrg() predicate.OrgUserPreference
- func HasOrgWith(preds ...predicate.Org) predicate.OrgUserPreference
- func HasUser() predicate.OrgUserPreference
- func HasUserWith(preds ...predicate.User) predicate.OrgUserPreference
- func ID(id int) predicate.OrgUserPreference
- func IDEQ(id int) predicate.OrgUserPreference
- func IDGT(id int) predicate.OrgUserPreference
- func IDGTE(id int) predicate.OrgUserPreference
- func IDIn(ids ...int) predicate.OrgUserPreference
- func IDLT(id int) predicate.OrgUserPreference
- func IDLTE(id int) predicate.OrgUserPreference
- func IDNEQ(id int) predicate.OrgUserPreference
- func IDNotIn(ids ...int) predicate.OrgUserPreference
- func MenuFavoriteIsNil() predicate.OrgUserPreference
- func MenuFavoriteNotNil() predicate.OrgUserPreference
- func MenuRecentIsNil() predicate.OrgUserPreference
- func MenuRecentNotNil() predicate.OrgUserPreference
- func Not(p predicate.OrgUserPreference) predicate.OrgUserPreference
- func Or(predicates ...predicate.OrgUserPreference) predicate.OrgUserPreference
- func OrgID(v int) predicate.OrgUserPreference
- func OrgIDEQ(v int) predicate.OrgUserPreference
- func OrgIDIn(vs ...int) predicate.OrgUserPreference
- func OrgIDNEQ(v int) predicate.OrgUserPreference
- func OrgIDNotIn(vs ...int) predicate.OrgUserPreference
- func UpdatedAt(v time.Time) predicate.OrgUserPreference
- func UpdatedAtEQ(v time.Time) predicate.OrgUserPreference
- func UpdatedAtGT(v time.Time) predicate.OrgUserPreference
- func UpdatedAtGTE(v time.Time) predicate.OrgUserPreference
- func UpdatedAtIn(vs ...time.Time) predicate.OrgUserPreference
- func UpdatedAtIsNil() predicate.OrgUserPreference
- func UpdatedAtLT(v time.Time) predicate.OrgUserPreference
- func UpdatedAtLTE(v time.Time) predicate.OrgUserPreference
- func UpdatedAtNEQ(v time.Time) predicate.OrgUserPreference
- func UpdatedAtNotIn(vs ...time.Time) predicate.OrgUserPreference
- func UpdatedAtNotNil() predicate.OrgUserPreference
- func UpdatedBy(v int) predicate.OrgUserPreference
- func UpdatedByEQ(v int) predicate.OrgUserPreference
- func UpdatedByGT(v int) predicate.OrgUserPreference
- func UpdatedByGTE(v int) predicate.OrgUserPreference
- func UpdatedByIn(vs ...int) predicate.OrgUserPreference
- func UpdatedByIsNil() predicate.OrgUserPreference
- func UpdatedByLT(v int) predicate.OrgUserPreference
- func UpdatedByLTE(v int) predicate.OrgUserPreference
- func UpdatedByNEQ(v int) predicate.OrgUserPreference
- func UpdatedByNotIn(vs ...int) predicate.OrgUserPreference
- func UpdatedByNotNil() predicate.OrgUserPreference
- func UserID(v int) predicate.OrgUserPreference
- func UserIDEQ(v int) predicate.OrgUserPreference
- func UserIDIn(vs ...int) predicate.OrgUserPreference
- func UserIDNEQ(v int) predicate.OrgUserPreference
- func UserIDNotIn(vs ...int) predicate.OrgUserPreference
- 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 ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(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 orguserpreference type in the database. Label = "org_user_preference" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldOrgID holds the string denoting the org_id field in the database. FieldOrgID = "org_id" // FieldMenuFavorite holds the string denoting the menu_favorite field in the database. FieldMenuFavorite = "menu_favorite" // FieldMenuRecent holds the string denoting the menu_recent field in the database. FieldMenuRecent = "menu_recent" // FieldClientPreferences holds the string denoting the client_preferences field in the database. FieldClientPreferences = "client_preferences" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeOrg holds the string denoting the org edge name in mutations. EdgeOrg = "org" // Table holds the table name of the orguserpreference in the database. Table = "org_user_preference" // UserTable is the table that holds the user relation/edge. UserTable = "org_user_preference" // 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 = "user" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // OrgTable is the table that holds the org relation/edge. OrgTable = "org_user_preference" // OrgInverseTable is the table name for the Org entity. // It exists in this package in order to avoid circular dependency with the "org" package. OrgInverseTable = "org" // OrgColumn is the table column denoting the org relation/edge. OrgColumn = "org_id" )
Variables ¶
var ( Hooks [2]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/woocoos/knockout/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldUserID, FieldOrgID, FieldMenuFavorite, FieldMenuRecent, FieldClientPreferences, }
Columns holds all SQL columns for orguserpreference fields.
Functions ¶
func And ¶
func And(predicates ...predicate.OrgUserPreference) predicate.OrgUserPreference
And groups predicates with the AND operator between them.
func ClientPreferencesIsNil ¶
func ClientPreferencesIsNil() predicate.OrgUserPreference
ClientPreferencesIsNil applies the IsNil predicate on the "client_preferences" field.
func ClientPreferencesNotNil ¶
func ClientPreferencesNotNil() predicate.OrgUserPreference
ClientPreferencesNotNil applies the NotNil predicate on the "client_preferences" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.OrgUserPreference
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.OrgUserPreference
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.OrgUserPreference
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.OrgUserPreference
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.OrgUserPreference
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.OrgUserPreference
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.OrgUserPreference
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.OrgUserPreference
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.OrgUserPreference
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v int) predicate.OrgUserPreference
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
func CreatedByEQ(v int) predicate.OrgUserPreference
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v int) predicate.OrgUserPreference
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v int) predicate.OrgUserPreference
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...int) predicate.OrgUserPreference
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v int) predicate.OrgUserPreference
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v int) predicate.OrgUserPreference
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v int) predicate.OrgUserPreference
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...int) predicate.OrgUserPreference
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasOrg ¶
func HasOrg() predicate.OrgUserPreference
HasOrg applies the HasEdge predicate on the "org" edge.
func HasOrgWith ¶
func HasOrgWith(preds ...predicate.Org) predicate.OrgUserPreference
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.OrgUserPreference
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.OrgUserPreference
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.OrgUserPreference
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.OrgUserPreference
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.OrgUserPreference
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.OrgUserPreference
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.OrgUserPreference
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.OrgUserPreference
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.OrgUserPreference
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.OrgUserPreference
IDNotIn applies the NotIn predicate on the ID field.
func MenuFavoriteIsNil ¶
func MenuFavoriteIsNil() predicate.OrgUserPreference
MenuFavoriteIsNil applies the IsNil predicate on the "menu_favorite" field.
func MenuFavoriteNotNil ¶
func MenuFavoriteNotNil() predicate.OrgUserPreference
MenuFavoriteNotNil applies the NotNil predicate on the "menu_favorite" field.
func MenuRecentIsNil ¶
func MenuRecentIsNil() predicate.OrgUserPreference
MenuRecentIsNil applies the IsNil predicate on the "menu_recent" field.
func MenuRecentNotNil ¶
func MenuRecentNotNil() predicate.OrgUserPreference
MenuRecentNotNil applies the NotNil predicate on the "menu_recent" field.
func Not ¶
func Not(p predicate.OrgUserPreference) predicate.OrgUserPreference
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.OrgUserPreference) predicate.OrgUserPreference
Or groups predicates with the OR operator between them.
func OrgID ¶
func OrgID(v int) predicate.OrgUserPreference
OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.
func OrgIDEQ ¶
func OrgIDEQ(v int) predicate.OrgUserPreference
OrgIDEQ applies the EQ predicate on the "org_id" field.
func OrgIDIn ¶
func OrgIDIn(vs ...int) predicate.OrgUserPreference
OrgIDIn applies the In predicate on the "org_id" field.
func OrgIDNEQ ¶
func OrgIDNEQ(v int) predicate.OrgUserPreference
OrgIDNEQ applies the NEQ predicate on the "org_id" field.
func OrgIDNotIn ¶
func OrgIDNotIn(vs ...int) predicate.OrgUserPreference
OrgIDNotIn applies the NotIn predicate on the "org_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.OrgUserPreference
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.OrgUserPreference
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.OrgUserPreference
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.OrgUserPreference
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.OrgUserPreference
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.OrgUserPreference
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.OrgUserPreference
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.OrgUserPreference
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.OrgUserPreference
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.OrgUserPreference
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.OrgUserPreference
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v int) predicate.OrgUserPreference
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
func UpdatedByEQ(v int) predicate.OrgUserPreference
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v int) predicate.OrgUserPreference
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v int) predicate.OrgUserPreference
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...int) predicate.OrgUserPreference
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.OrgUserPreference
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v int) predicate.OrgUserPreference
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v int) predicate.OrgUserPreference
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v int) predicate.OrgUserPreference
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...int) predicate.OrgUserPreference
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.OrgUserPreference
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func UserID ¶
func UserID(v int) predicate.OrgUserPreference
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.OrgUserPreference
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.OrgUserPreference
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.OrgUserPreference
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.OrgUserPreference
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 OrgUserPreference 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 ByOrgField ¶
func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrgField orders the results by org field.
func ByOrgID ¶
func ByOrgID(opts ...sql.OrderTermOption) OrderOption
ByOrgID orders the results by the org_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 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.