Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.MsgInternalTo) predicate.MsgInternalTo
- func CreatedAt(v time.Time) predicate.MsgInternalTo
- func CreatedAtEQ(v time.Time) predicate.MsgInternalTo
- func CreatedAtGT(v time.Time) predicate.MsgInternalTo
- func CreatedAtGTE(v time.Time) predicate.MsgInternalTo
- func CreatedAtIn(vs ...time.Time) predicate.MsgInternalTo
- func CreatedAtLT(v time.Time) predicate.MsgInternalTo
- func CreatedAtLTE(v time.Time) predicate.MsgInternalTo
- func CreatedAtNEQ(v time.Time) predicate.MsgInternalTo
- func CreatedAtNotIn(vs ...time.Time) predicate.MsgInternalTo
- func DeleteAt(v time.Time) predicate.MsgInternalTo
- func DeleteAtEQ(v time.Time) predicate.MsgInternalTo
- func DeleteAtGT(v time.Time) predicate.MsgInternalTo
- func DeleteAtGTE(v time.Time) predicate.MsgInternalTo
- func DeleteAtIn(vs ...time.Time) predicate.MsgInternalTo
- func DeleteAtIsNil() predicate.MsgInternalTo
- func DeleteAtLT(v time.Time) predicate.MsgInternalTo
- func DeleteAtLTE(v time.Time) predicate.MsgInternalTo
- func DeleteAtNEQ(v time.Time) predicate.MsgInternalTo
- func DeleteAtNotIn(vs ...time.Time) predicate.MsgInternalTo
- func DeleteAtNotNil() predicate.MsgInternalTo
- func HasMsgInternal() predicate.MsgInternalTo
- func HasMsgInternalWith(preds ...predicate.MsgInternal) predicate.MsgInternalTo
- func HasUser() predicate.MsgInternalTo
- func HasUserWith(preds ...predicate.User) predicate.MsgInternalTo
- func ID(id int) predicate.MsgInternalTo
- func IDEQ(id int) predicate.MsgInternalTo
- func IDGT(id int) predicate.MsgInternalTo
- func IDGTE(id int) predicate.MsgInternalTo
- func IDIn(ids ...int) predicate.MsgInternalTo
- func IDLT(id int) predicate.MsgInternalTo
- func IDLTE(id int) predicate.MsgInternalTo
- func IDNEQ(id int) predicate.MsgInternalTo
- func IDNotIn(ids ...int) predicate.MsgInternalTo
- func MsgInternalID(v int) predicate.MsgInternalTo
- func MsgInternalIDEQ(v int) predicate.MsgInternalTo
- func MsgInternalIDIn(vs ...int) predicate.MsgInternalTo
- func MsgInternalIDNEQ(v int) predicate.MsgInternalTo
- func MsgInternalIDNotIn(vs ...int) predicate.MsgInternalTo
- func Not(p predicate.MsgInternalTo) predicate.MsgInternalTo
- func Or(predicates ...predicate.MsgInternalTo) predicate.MsgInternalTo
- func ReadAt(v time.Time) predicate.MsgInternalTo
- func ReadAtEQ(v time.Time) predicate.MsgInternalTo
- func ReadAtGT(v time.Time) predicate.MsgInternalTo
- func ReadAtGTE(v time.Time) predicate.MsgInternalTo
- func ReadAtIn(vs ...time.Time) predicate.MsgInternalTo
- func ReadAtIsNil() predicate.MsgInternalTo
- func ReadAtLT(v time.Time) predicate.MsgInternalTo
- func ReadAtLTE(v time.Time) predicate.MsgInternalTo
- func ReadAtNEQ(v time.Time) predicate.MsgInternalTo
- func ReadAtNotIn(vs ...time.Time) predicate.MsgInternalTo
- func ReadAtNotNil() predicate.MsgInternalTo
- func TenantID(v int) predicate.MsgInternalTo
- func TenantIDEQ(v int) predicate.MsgInternalTo
- func TenantIDGT(v int) predicate.MsgInternalTo
- func TenantIDGTE(v int) predicate.MsgInternalTo
- func TenantIDIn(vs ...int) predicate.MsgInternalTo
- func TenantIDLT(v int) predicate.MsgInternalTo
- func TenantIDLTE(v int) predicate.MsgInternalTo
- func TenantIDNEQ(v int) predicate.MsgInternalTo
- func TenantIDNotIn(vs ...int) predicate.MsgInternalTo
- func UserID(v int) predicate.MsgInternalTo
- func UserIDEQ(v int) predicate.MsgInternalTo
- func UserIDIn(vs ...int) predicate.MsgInternalTo
- func UserIDNEQ(v int) predicate.MsgInternalTo
- func UserIDNotIn(vs ...int) predicate.MsgInternalTo
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeleteAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMsgInternalField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMsgInternalID(opts ...sql.OrderTermOption) OrderOption
- func ByReadAt(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 msginternalto type in the database. Label = "msg_internal_to" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldMsgInternalID holds the string denoting the msg_internal_id field in the database. FieldMsgInternalID = "msg_internal_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldReadAt holds the string denoting the read_at field in the database. FieldReadAt = "read_at" // FieldDeleteAt holds the string denoting the delete_at field in the database. FieldDeleteAt = "delete_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeMsgInternal holds the string denoting the msg_internal edge name in mutations. EdgeMsgInternal = "msg_internal" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the msginternalto in the database. Table = "msg_internal_to" // MsgInternalTable is the table that holds the msg_internal relation/edge. MsgInternalTable = "msg_internal_to" // MsgInternalInverseTable is the table name for the MsgInternal entity. // It exists in this package in order to avoid circular dependency with the "msginternal" package. MsgInternalInverseTable = "msg_internal" // MsgInternalColumn is the table column denoting the msg_internal relation/edge. MsgInternalColumn = "msg_internal_id" // UserTable is the table that holds the user relation/edge. UserTable = "msg_internal_to" // 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" )
Variables ¶
var ( Hooks [2]ent.Hook Interceptors [1]ent.Interceptor // 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/msgcenter/ent/runtime"
var Columns = []string{ FieldID, FieldTenantID, FieldMsgInternalID, FieldUserID, FieldReadAt, FieldDeleteAt, FieldCreatedAt, }
Columns holds all SQL columns for msginternalto fields.
Functions ¶
func And ¶
func And(predicates ...predicate.MsgInternalTo) predicate.MsgInternalTo
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.MsgInternalTo
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.MsgInternalTo
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.MsgInternalTo
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.MsgInternalTo
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.MsgInternalTo
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.MsgInternalTo
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.MsgInternalTo
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.MsgInternalTo
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.MsgInternalTo
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeleteAt ¶
func DeleteAt(v time.Time) predicate.MsgInternalTo
DeleteAt applies equality check predicate on the "delete_at" field. It's identical to DeleteAtEQ.
func DeleteAtEQ ¶
func DeleteAtEQ(v time.Time) predicate.MsgInternalTo
DeleteAtEQ applies the EQ predicate on the "delete_at" field.
func DeleteAtGT ¶
func DeleteAtGT(v time.Time) predicate.MsgInternalTo
DeleteAtGT applies the GT predicate on the "delete_at" field.
func DeleteAtGTE ¶
func DeleteAtGTE(v time.Time) predicate.MsgInternalTo
DeleteAtGTE applies the GTE predicate on the "delete_at" field.
func DeleteAtIn ¶
func DeleteAtIn(vs ...time.Time) predicate.MsgInternalTo
DeleteAtIn applies the In predicate on the "delete_at" field.
func DeleteAtIsNil ¶
func DeleteAtIsNil() predicate.MsgInternalTo
DeleteAtIsNil applies the IsNil predicate on the "delete_at" field.
func DeleteAtLT ¶
func DeleteAtLT(v time.Time) predicate.MsgInternalTo
DeleteAtLT applies the LT predicate on the "delete_at" field.
func DeleteAtLTE ¶
func DeleteAtLTE(v time.Time) predicate.MsgInternalTo
DeleteAtLTE applies the LTE predicate on the "delete_at" field.
func DeleteAtNEQ ¶
func DeleteAtNEQ(v time.Time) predicate.MsgInternalTo
DeleteAtNEQ applies the NEQ predicate on the "delete_at" field.
func DeleteAtNotIn ¶
func DeleteAtNotIn(vs ...time.Time) predicate.MsgInternalTo
DeleteAtNotIn applies the NotIn predicate on the "delete_at" field.
func DeleteAtNotNil ¶
func DeleteAtNotNil() predicate.MsgInternalTo
DeleteAtNotNil applies the NotNil predicate on the "delete_at" field.
func HasMsgInternal ¶
func HasMsgInternal() predicate.MsgInternalTo
HasMsgInternal applies the HasEdge predicate on the "msg_internal" edge.
func HasMsgInternalWith ¶
func HasMsgInternalWith(preds ...predicate.MsgInternal) predicate.MsgInternalTo
HasMsgInternalWith applies the HasEdge predicate on the "msg_internal" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.MsgInternalTo
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.MsgInternalTo
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.MsgInternalTo
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.MsgInternalTo
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.MsgInternalTo
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.MsgInternalTo
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.MsgInternalTo
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.MsgInternalTo
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.MsgInternalTo
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.MsgInternalTo
IDNotIn applies the NotIn predicate on the ID field.
func MsgInternalID ¶
func MsgInternalID(v int) predicate.MsgInternalTo
MsgInternalID applies equality check predicate on the "msg_internal_id" field. It's identical to MsgInternalIDEQ.
func MsgInternalIDEQ ¶
func MsgInternalIDEQ(v int) predicate.MsgInternalTo
MsgInternalIDEQ applies the EQ predicate on the "msg_internal_id" field.
func MsgInternalIDIn ¶
func MsgInternalIDIn(vs ...int) predicate.MsgInternalTo
MsgInternalIDIn applies the In predicate on the "msg_internal_id" field.
func MsgInternalIDNEQ ¶
func MsgInternalIDNEQ(v int) predicate.MsgInternalTo
MsgInternalIDNEQ applies the NEQ predicate on the "msg_internal_id" field.
func MsgInternalIDNotIn ¶
func MsgInternalIDNotIn(vs ...int) predicate.MsgInternalTo
MsgInternalIDNotIn applies the NotIn predicate on the "msg_internal_id" field.
func Not ¶
func Not(p predicate.MsgInternalTo) predicate.MsgInternalTo
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.MsgInternalTo) predicate.MsgInternalTo
Or groups predicates with the OR operator between them.
func ReadAt ¶
func ReadAt(v time.Time) predicate.MsgInternalTo
ReadAt applies equality check predicate on the "read_at" field. It's identical to ReadAtEQ.
func ReadAtEQ ¶
func ReadAtEQ(v time.Time) predicate.MsgInternalTo
ReadAtEQ applies the EQ predicate on the "read_at" field.
func ReadAtGT ¶
func ReadAtGT(v time.Time) predicate.MsgInternalTo
ReadAtGT applies the GT predicate on the "read_at" field.
func ReadAtGTE ¶
func ReadAtGTE(v time.Time) predicate.MsgInternalTo
ReadAtGTE applies the GTE predicate on the "read_at" field.
func ReadAtIn ¶
func ReadAtIn(vs ...time.Time) predicate.MsgInternalTo
ReadAtIn applies the In predicate on the "read_at" field.
func ReadAtIsNil ¶
func ReadAtIsNil() predicate.MsgInternalTo
ReadAtIsNil applies the IsNil predicate on the "read_at" field.
func ReadAtLT ¶
func ReadAtLT(v time.Time) predicate.MsgInternalTo
ReadAtLT applies the LT predicate on the "read_at" field.
func ReadAtLTE ¶
func ReadAtLTE(v time.Time) predicate.MsgInternalTo
ReadAtLTE applies the LTE predicate on the "read_at" field.
func ReadAtNEQ ¶
func ReadAtNEQ(v time.Time) predicate.MsgInternalTo
ReadAtNEQ applies the NEQ predicate on the "read_at" field.
func ReadAtNotIn ¶
func ReadAtNotIn(vs ...time.Time) predicate.MsgInternalTo
ReadAtNotIn applies the NotIn predicate on the "read_at" field.
func ReadAtNotNil ¶
func ReadAtNotNil() predicate.MsgInternalTo
ReadAtNotNil applies the NotNil predicate on the "read_at" field.
func TenantID ¶
func TenantID(v int) predicate.MsgInternalTo
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDEQ ¶
func TenantIDEQ(v int) predicate.MsgInternalTo
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDGT ¶
func TenantIDGT(v int) predicate.MsgInternalTo
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
func TenantIDGTE(v int) predicate.MsgInternalTo
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDIn ¶
func TenantIDIn(vs ...int) predicate.MsgInternalTo
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
func TenantIDLT(v int) predicate.MsgInternalTo
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
func TenantIDLTE(v int) predicate.MsgInternalTo
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
func TenantIDNEQ(v int) predicate.MsgInternalTo
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
func TenantIDNotIn(vs ...int) predicate.MsgInternalTo
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func UserID ¶
func UserID(v int) predicate.MsgInternalTo
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int) predicate.MsgInternalTo
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int) predicate.MsgInternalTo
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int) predicate.MsgInternalTo
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int) predicate.MsgInternalTo
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 MsgInternalTo queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeleteAt ¶
func ByDeleteAt(opts ...sql.OrderTermOption) OrderOption
ByDeleteAt orders the results by the delete_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMsgInternalField ¶
func ByMsgInternalField(field string, opts ...sql.OrderTermOption) OrderOption
ByMsgInternalField orders the results by msg_internal field.
func ByMsgInternalID ¶
func ByMsgInternalID(opts ...sql.OrderTermOption) OrderOption
ByMsgInternalID orders the results by the msg_internal_id field.
func ByReadAt ¶
func ByReadAt(opts ...sql.OrderTermOption) OrderOption
ByReadAt orders the results by the read_at 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.