Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v uuid.UUID) predicate.Chat
- func AgentIDEQ(v uuid.UUID) predicate.Chat
- func AgentIDIn(vs ...uuid.UUID) predicate.Chat
- func AgentIDIsNil() predicate.Chat
- func AgentIDNEQ(v uuid.UUID) predicate.Chat
- func AgentIDNotIn(vs ...uuid.UUID) predicate.Chat
- func AgentIDNotNil() predicate.Chat
- func And(predicates ...predicate.Chat) predicate.Chat
- func CreatedAt(v time.Time) predicate.Chat
- func CreatedAtEQ(v time.Time) predicate.Chat
- func CreatedAtGT(v time.Time) predicate.Chat
- func CreatedAtGTE(v time.Time) predicate.Chat
- func CreatedAtIn(vs ...time.Time) predicate.Chat
- func CreatedAtLT(v time.Time) predicate.Chat
- func CreatedAtLTE(v time.Time) predicate.Chat
- func CreatedAtNEQ(v time.Time) predicate.Chat
- func CreatedAtNotIn(vs ...time.Time) predicate.Chat
- func CreatedBy(v uuid.UUID) predicate.Chat
- func CreatedByEQ(v uuid.UUID) predicate.Chat
- func CreatedByIn(vs ...uuid.UUID) predicate.Chat
- func CreatedByNEQ(v uuid.UUID) predicate.Chat
- func CreatedByNotIn(vs ...uuid.UUID) predicate.Chat
- func HasAgent() predicate.Chat
- func HasAgentWith(preds ...predicate.Agent) predicate.Chat
- func HasCreator() predicate.Chat
- func HasCreatorWith(preds ...predicate.User) predicate.Chat
- func HasMembers() predicate.Chat
- func HasMembersWith(preds ...predicate.ChatMember) predicate.Chat
- func HasMessages() predicate.Chat
- func HasMessagesWith(preds ...predicate.Message) predicate.Chat
- func ID(id uuid.UUID) predicate.Chat
- func IDEQ(id uuid.UUID) predicate.Chat
- func IDGT(id uuid.UUID) predicate.Chat
- func IDGTE(id uuid.UUID) predicate.Chat
- func IDIn(ids ...uuid.UUID) predicate.Chat
- func IDLT(id uuid.UUID) predicate.Chat
- func IDLTE(id uuid.UUID) predicate.Chat
- func IDNEQ(id uuid.UUID) predicate.Chat
- func IDNotIn(ids ...uuid.UUID) predicate.Chat
- func Name(v string) predicate.Chat
- func NameContains(v string) predicate.Chat
- func NameContainsFold(v string) predicate.Chat
- func NameEQ(v string) predicate.Chat
- func NameEqualFold(v string) predicate.Chat
- func NameGT(v string) predicate.Chat
- func NameGTE(v string) predicate.Chat
- func NameHasPrefix(v string) predicate.Chat
- func NameHasSuffix(v string) predicate.Chat
- func NameIn(vs ...string) predicate.Chat
- func NameIsNil() predicate.Chat
- func NameLT(v string) predicate.Chat
- func NameLTE(v string) predicate.Chat
- func NameNEQ(v string) predicate.Chat
- func NameNotIn(vs ...string) predicate.Chat
- func NameNotNil() predicate.Chat
- func Not(p predicate.Chat) predicate.Chat
- func Or(predicates ...predicate.Chat) predicate.Chat
- func TypeEQ(v Type) predicate.Chat
- func TypeIn(vs ...Type) predicate.Chat
- func TypeNEQ(v Type) predicate.Chat
- func TypeNotIn(vs ...Type) predicate.Chat
- func TypeValidator(_type Type) error
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- type Type
Constants ¶
const ( // Label holds the string label denoting the chat type in the database. Label = "chat" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeCreator holds the string denoting the creator edge name in mutations. EdgeCreator = "creator" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // EdgeMessages holds the string denoting the messages edge name in mutations. EdgeMessages = "messages" // EdgeAgent holds the string denoting the agent edge name in mutations. EdgeAgent = "agent" // Table holds the table name of the chat in the database. Table = "chats" // CreatorTable is the table that holds the creator relation/edge. CreatorTable = "chats" // CreatorInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. CreatorInverseTable = "users" // CreatorColumn is the table column denoting the creator relation/edge. CreatorColumn = "created_by" // MembersTable is the table that holds the members relation/edge. MembersTable = "chat_members" // MembersInverseTable is the table name for the ChatMember entity. // It exists in this package in order to avoid circular dependency with the "chatmember" package. MembersInverseTable = "chat_members" // MembersColumn is the table column denoting the members relation/edge. MembersColumn = "chat_id" // 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 = "chat_id" // AgentTable is the table that holds the agent relation/edge. AgentTable = "chats" // AgentInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. AgentInverseTable = "agents" // AgentColumn is the table column denoting the agent relation/edge. AgentColumn = "agent_id" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldType, FieldName, FieldCreatedBy, FieldAgentID, FieldCreatedAt, }
Columns holds all SQL columns for chat fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDIsNil ¶
AgentIDIsNil applies the IsNil predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func AgentIDNotNil ¶
AgentIDNotNil applies the NotNil predicate on the "agent_id" 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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasAgentWith ¶
HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).
func HasCreator ¶
HasCreator applies the HasEdge predicate on the "creator" edge.
func HasCreatorWith ¶
HasCreatorWith applies the HasEdge predicate on the "creator" edge with a given conditions (other predicates).
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
func HasMembersWith(preds ...predicate.ChatMember) predicate.Chat
HasMembersWith applies the HasEdge predicate on the "members" 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 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 NameNotNil ¶
NameNotNil applies the NotNil predicate on the "name" field.
func TypeValidator ¶
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
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 Chat queries.
func ByAgentField ¶
func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption
ByAgentField orders the results by agent field.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
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 ByCreatorField ¶
func ByCreatorField(field string, opts ...sql.OrderTermOption) OrderOption
ByCreatorField orders the results by creator field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMembers ¶
func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMembers orders the results by members terms.
func ByMembersCount ¶
func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
ByMembersCount orders the results by members count.
func ByMessages ¶
func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMessages orders the results by messages terms.
func ByMessagesCount ¶
func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
ByMessagesCount orders the results by messages count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.