Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func HasChannels() predicate.User
- func HasChannelsWith(preds ...predicate.Channel) predicate.User
- func HasDevices() predicate.User
- func HasDevicesWith(preds ...predicate.Device) predicate.User
- func HasMessages() predicate.User
- func HasMessagesWith(preds ...predicate.Message) predicate.User
- func HasRecipientMessages() predicate.User
- func HasRecipientMessagesWith(preds ...predicate.Message) predicate.User
- func HasRecipients() predicate.User
- func HasRecipientsWith(preds ...predicate.Recipient) predicate.User
- func HasSubscriptions() predicate.User
- func HasSubscriptionsWith(preds ...predicate.Subscription) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func LastSeen(v time.Time) predicate.User
- func LastSeenEQ(v time.Time) predicate.User
- func LastSeenGT(v time.Time) predicate.User
- func LastSeenGTE(v time.Time) predicate.User
- func LastSeenIn(vs ...time.Time) predicate.User
- func LastSeenIsNil() predicate.User
- func LastSeenLT(v time.Time) predicate.User
- func LastSeenLTE(v time.Time) predicate.User
- func LastSeenNEQ(v time.Time) predicate.User
- func LastSeenNotIn(vs ...time.Time) predicate.User
- func LastSeenNotNil() predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func State(v string) predicate.User
- func StateAt(v time.Time) predicate.User
- func StateAtEQ(v time.Time) predicate.User
- func StateAtGT(v time.Time) predicate.User
- func StateAtGTE(v time.Time) predicate.User
- func StateAtIn(vs ...time.Time) predicate.User
- func StateAtLT(v time.Time) predicate.User
- func StateAtLTE(v time.Time) predicate.User
- func StateAtNEQ(v time.Time) predicate.User
- func StateAtNotIn(vs ...time.Time) predicate.User
- func StateContains(v string) predicate.User
- func StateContainsFold(v string) predicate.User
- func StateEQ(v string) predicate.User
- func StateEqualFold(v string) predicate.User
- func StateGT(v string) predicate.User
- func StateGTE(v string) predicate.User
- func StateHasPrefix(v string) predicate.User
- func StateHasSuffix(v string) predicate.User
- func StateIn(vs ...string) predicate.User
- func StateLT(v string) predicate.User
- func StateLTE(v string) predicate.User
- func StateNEQ(v string) predicate.User
- func StateNotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // 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" // 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" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldStateAt holds the string denoting the state_at field in the database. FieldStateAt = "state_at" // FieldLastSeen holds the string denoting the last_seen field in the database. FieldLastSeen = "last_seen" // EdgeMessages holds the string denoting the messages edge name in mutations. EdgeMessages = "messages" // EdgeRecipientMessages holds the string denoting the recipient_messages edge name in mutations. EdgeRecipientMessages = "recipient_messages" // EdgeDevices holds the string denoting the devices edge name in mutations. EdgeDevices = "devices" // EdgeChannels holds the string denoting the channels edge name in mutations. EdgeChannels = "channels" // EdgeRecipients holds the string denoting the recipients edge name in mutations. EdgeRecipients = "recipients" // EdgeSubscriptions holds the string denoting the subscriptions edge name in mutations. EdgeSubscriptions = "subscriptions" // Table holds the table name of the user in the database. Table = "users" // MessagesTable is the table that holds the messages relation/edge. MessagesTable = "messages" // MessagesInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessagesInverseTable = "messages" // MessagesColumn is the table column denoting the messages relation/edge. MessagesColumn = "user_messages" // RecipientMessagesTable is the table that holds the recipient_messages relation/edge. The primary key declared below. RecipientMessagesTable = "recipients" // RecipientMessagesInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. RecipientMessagesInverseTable = "messages" // DevicesTable is the table that holds the devices relation/edge. DevicesTable = "devices" // DevicesInverseTable is the table name for the Device entity. // It exists in this package in order to avoid circular dependency with the "device" package. DevicesInverseTable = "devices" // DevicesColumn is the table column denoting the devices relation/edge. DevicesColumn = "user_devices" // ChannelsTable is the table that holds the channels relation/edge. The primary key declared below. ChannelsTable = "subscriptions" // ChannelsInverseTable is the table name for the Channel entity. // It exists in this package in order to avoid circular dependency with the "channel" package. ChannelsInverseTable = "channels" // RecipientsTable is the table that holds the recipients relation/edge. RecipientsTable = "recipients" // RecipientsInverseTable is the table name for the Recipient entity. // It exists in this package in order to avoid circular dependency with the "recipient" package. RecipientsInverseTable = "recipients" // RecipientsColumn is the table column denoting the recipients relation/edge. RecipientsColumn = "user_id" // SubscriptionsTable is the table that holds the subscriptions relation/edge. SubscriptionsTable = "subscriptions" // SubscriptionsInverseTable is the table name for the Subscription entity. // It exists in this package in order to avoid circular dependency with the "subscription" package. SubscriptionsInverseTable = "subscriptions" // SubscriptionsColumn is the table column denoting the subscriptions relation/edge. SubscriptionsColumn = "user_id" )
Variables ¶
var ( // RecipientMessagesPrimaryKey and RecipientMessagesColumn2 are the table columns denoting the // primary key for the recipient_messages relation (M2M). RecipientMessagesPrimaryKey = []string{"user_id", "message_id"} // ChannelsPrimaryKey and ChannelsColumn2 are the table columns denoting the // primary key for the channels relation (M2M). ChannelsPrimaryKey = []string{"user_id", "channel_id"} )
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 time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time )
var Columns = []string{ FieldID, FieldName, FieldCreatedAt, FieldUpdatedAt, FieldState, FieldStateAt, FieldLastSeen, }
Columns holds all SQL columns for user fields.
Functions ¶
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 HasChannels ¶
HasChannels applies the HasEdge predicate on the "channels" edge.
func HasChannelsWith ¶
HasChannelsWith applies the HasEdge predicate on the "channels" edge with a given conditions (other predicates).
func HasDevices ¶
HasDevices applies the HasEdge predicate on the "devices" edge.
func HasDevicesWith ¶
HasDevicesWith applies the HasEdge predicate on the "devices" edge with a given conditions (other predicates).
func HasMessages ¶
HasMessages applies the HasEdge predicate on the "messages" edge.
func HasMessagesWith ¶
HasMessagesWith applies the HasEdge predicate on the "messages" edge with a given conditions (other predicates).
func HasRecipientMessages ¶
HasRecipientMessages applies the HasEdge predicate on the "recipient_messages" edge.
func HasRecipientMessagesWith ¶
HasRecipientMessagesWith applies the HasEdge predicate on the "recipient_messages" edge with a given conditions (other predicates).
func HasRecipients ¶
HasRecipients applies the HasEdge predicate on the "recipients" edge.
func HasRecipientsWith ¶
HasRecipientsWith applies the HasEdge predicate on the "recipients" edge with a given conditions (other predicates).
func HasSubscriptions ¶
HasSubscriptions applies the HasEdge predicate on the "subscriptions" edge.
func HasSubscriptionsWith ¶
func HasSubscriptionsWith(preds ...predicate.Subscription) predicate.User
HasSubscriptionsWith applies the HasEdge predicate on the "subscriptions" edge with a given conditions (other predicates).
func LastSeen ¶
LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.
func LastSeenEQ ¶
LastSeenEQ applies the EQ predicate on the "last_seen" field.
func LastSeenGT ¶
LastSeenGT applies the GT predicate on the "last_seen" field.
func LastSeenGTE ¶
LastSeenGTE applies the GTE predicate on the "last_seen" field.
func LastSeenIn ¶
LastSeenIn applies the In predicate on the "last_seen" field.
func LastSeenIsNil ¶
LastSeenIsNil applies the IsNil predicate on the "last_seen" field.
func LastSeenLT ¶
LastSeenLT applies the LT predicate on the "last_seen" field.
func LastSeenLTE ¶
LastSeenLTE applies the LTE predicate on the "last_seen" field.
func LastSeenNEQ ¶
LastSeenNEQ applies the NEQ predicate on the "last_seen" field.
func LastSeenNotIn ¶
LastSeenNotIn applies the NotIn predicate on the "last_seen" field.
func LastSeenNotNil ¶
LastSeenNotNil applies the NotNil predicate on the "last_seen" 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 State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateAt ¶
StateAt applies equality check predicate on the "state_at" field. It's identical to StateAtEQ.
func StateAtGTE ¶
StateAtGTE applies the GTE predicate on the "state_at" field.
func StateAtLTE ¶
StateAtLTE applies the LTE predicate on the "state_at" field.
func StateAtNEQ ¶
StateAtNEQ applies the NEQ predicate on the "state_at" field.
func StateAtNotIn ¶
StateAtNotIn applies the NotIn predicate on the "state_at" field.
func StateContains ¶
StateContains applies the Contains predicate on the "state" field.
func StateContainsFold ¶
StateContainsFold applies the ContainsFold predicate on the "state" field.
func StateEqualFold ¶
StateEqualFold applies the EqualFold predicate on the "state" field.
func StateHasPrefix ¶
StateHasPrefix applies the HasPrefix predicate on the "state" field.
func StateHasSuffix ¶
StateHasSuffix applies the HasSuffix predicate on the "state" field.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" 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 ¶
This section is empty.