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 DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameIsNil() predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) predicate.User
- func DisplayNameNotNil() predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func HasAgentRoles() predicate.User
- func HasAgentRolesWith(preds ...predicate.AgentRole) predicate.User
- func HasAgentsCreated() predicate.User
- func HasAgentsCreatedWith(preds ...predicate.Agent) predicate.User
- func HasAllowlistAdded() predicate.User
- func HasAllowlistAddedWith(preds ...predicate.AllowlistEntry) predicate.User
- func HasAuthSessions() predicate.User
- func HasAuthSessionsWith(preds ...predicate.AuthSession) predicate.User
- func HasChatsCreated() predicate.User
- func HasChatsCreatedWith(preds ...predicate.Chat) predicate.User
- func HasIdentities() predicate.User
- func HasIdentitiesWith(preds ...predicate.Identity) predicate.User
- func HasMemberships() predicate.User
- func HasMembershipsWith(preds ...predicate.ChatMember) predicate.User
- func HasMessages() predicate.User
- func HasMessagesWith(preds ...predicate.Message) 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 Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func RoleEQ(v Role) predicate.User
- func RoleIn(vs ...Role) predicate.User
- func RoleNEQ(v Role) predicate.User
- func RoleNotIn(vs ...Role) predicate.User
- func RoleValidator(r Role) error
- func StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusValidator(s Status) error
- 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 Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAgentRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByAgentsCreated(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAgentsCreatedCount(opts ...sql.OrderTermOption) OrderOption
- func ByAllowlistAdded(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAllowlistAddedCount(opts ...sql.OrderTermOption) OrderOption
- func ByAuthSessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAuthSessionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByChatsCreated(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByChatsCreatedCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption
- func ByMessages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMessagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
- type Role
- type Status
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" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // 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" // EdgeIdentities holds the string denoting the identities edge name in mutations. EdgeIdentities = "identities" // EdgeAuthSessions holds the string denoting the auth_sessions edge name in mutations. EdgeAuthSessions = "auth_sessions" // EdgeAllowlistAdded holds the string denoting the allowlist_added edge name in mutations. EdgeAllowlistAdded = "allowlist_added" // EdgeChatsCreated holds the string denoting the chats_created edge name in mutations. EdgeChatsCreated = "chats_created" // EdgeMemberships holds the string denoting the memberships edge name in mutations. EdgeMemberships = "memberships" // EdgeMessages holds the string denoting the messages edge name in mutations. EdgeMessages = "messages" // EdgeAgentsCreated holds the string denoting the agents_created edge name in mutations. EdgeAgentsCreated = "agents_created" // EdgeAgentRoles holds the string denoting the agent_roles edge name in mutations. EdgeAgentRoles = "agent_roles" // Table holds the table name of the user in the database. Table = "users" // IdentitiesTable is the table that holds the identities relation/edge. IdentitiesTable = "identities" // IdentitiesInverseTable is the table name for the Identity entity. // It exists in this package in order to avoid circular dependency with the "identity" package. IdentitiesInverseTable = "identities" // IdentitiesColumn is the table column denoting the identities relation/edge. IdentitiesColumn = "user_id" // AuthSessionsTable is the table that holds the auth_sessions relation/edge. AuthSessionsTable = "auth_sessions" // AuthSessionsInverseTable is the table name for the AuthSession entity. // It exists in this package in order to avoid circular dependency with the "authsession" package. AuthSessionsInverseTable = "auth_sessions" // AuthSessionsColumn is the table column denoting the auth_sessions relation/edge. AuthSessionsColumn = "user_id" // AllowlistAddedTable is the table that holds the allowlist_added relation/edge. AllowlistAddedTable = "allowlist" // AllowlistAddedInverseTable is the table name for the AllowlistEntry entity. // It exists in this package in order to avoid circular dependency with the "allowlistentry" package. AllowlistAddedInverseTable = "allowlist" // AllowlistAddedColumn is the table column denoting the allowlist_added relation/edge. AllowlistAddedColumn = "added_by" // ChatsCreatedTable is the table that holds the chats_created relation/edge. ChatsCreatedTable = "chats" // ChatsCreatedInverseTable is the table name for the Chat entity. // It exists in this package in order to avoid circular dependency with the "chat" package. ChatsCreatedInverseTable = "chats" // ChatsCreatedColumn is the table column denoting the chats_created relation/edge. ChatsCreatedColumn = "created_by" // MembershipsTable is the table that holds the memberships relation/edge. MembershipsTable = "chat_members" // MembershipsInverseTable is the table name for the ChatMember entity. // It exists in this package in order to avoid circular dependency with the "chatmember" package. MembershipsInverseTable = "chat_members" // MembershipsColumn is the table column denoting the memberships relation/edge. MembershipsColumn = "user_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 = "author_user_id" // AgentsCreatedTable is the table that holds the agents_created relation/edge. AgentsCreatedTable = "agents" // AgentsCreatedInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. AgentsCreatedInverseTable = "agents" // AgentsCreatedColumn is the table column denoting the agents_created relation/edge. AgentsCreatedColumn = "created_by" // AgentRolesTable is the table that holds the agent_roles relation/edge. AgentRolesTable = "agent_roles" // AgentRolesInverseTable is the table name for the AgentRole entity. // It exists in this package in order to avoid circular dependency with the "agentrole" package. AgentRolesInverseTable = "agent_roles" // AgentRolesColumn is the table column denoting the agent_roles relation/edge. AgentRolesColumn = "user_id" )
const DefaultRole = RoleMember
RoleMember is the default value of the Role enum.
const DefaultStatus = StatusActive
StatusActive is the default value of the Status enum.
Variables ¶
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldEmail, FieldUsername, FieldDisplayName, FieldRole, FieldStatus, FieldCreatedAt, FieldUpdatedAt, }
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 DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func HasAgentRoles ¶
HasAgentRoles applies the HasEdge predicate on the "agent_roles" edge.
func HasAgentRolesWith ¶
HasAgentRolesWith applies the HasEdge predicate on the "agent_roles" edge with a given conditions (other predicates).
func HasAgentsCreated ¶
HasAgentsCreated applies the HasEdge predicate on the "agents_created" edge.
func HasAgentsCreatedWith ¶
HasAgentsCreatedWith applies the HasEdge predicate on the "agents_created" edge with a given conditions (other predicates).
func HasAllowlistAdded ¶
HasAllowlistAdded applies the HasEdge predicate on the "allowlist_added" edge.
func HasAllowlistAddedWith ¶
func HasAllowlistAddedWith(preds ...predicate.AllowlistEntry) predicate.User
HasAllowlistAddedWith applies the HasEdge predicate on the "allowlist_added" edge with a given conditions (other predicates).
func HasAuthSessions ¶
HasAuthSessions applies the HasEdge predicate on the "auth_sessions" edge.
func HasAuthSessionsWith ¶
func HasAuthSessionsWith(preds ...predicate.AuthSession) predicate.User
HasAuthSessionsWith applies the HasEdge predicate on the "auth_sessions" edge with a given conditions (other predicates).
func HasChatsCreated ¶
HasChatsCreated applies the HasEdge predicate on the "chats_created" edge.
func HasChatsCreatedWith ¶
HasChatsCreatedWith applies the HasEdge predicate on the "chats_created" edge with a given conditions (other predicates).
func HasIdentities ¶
HasIdentities applies the HasEdge predicate on the "identities" edge.
func HasIdentitiesWith ¶
HasIdentitiesWith applies the HasEdge predicate on the "identities" edge with a given conditions (other predicates).
func HasMemberships ¶
HasMemberships applies the HasEdge predicate on the "memberships" edge.
func HasMembershipsWith ¶
func HasMembershipsWith(preds ...predicate.ChatMember) predicate.User
HasMembershipsWith applies the HasEdge predicate on the "memberships" 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 RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" 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 User queries.
func ByAgentRoles ¶
func ByAgentRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAgentRoles orders the results by agent_roles terms.
func ByAgentRolesCount ¶
func ByAgentRolesCount(opts ...sql.OrderTermOption) OrderOption
ByAgentRolesCount orders the results by agent_roles count.
func ByAgentsCreated ¶
func ByAgentsCreated(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAgentsCreated orders the results by agents_created terms.
func ByAgentsCreatedCount ¶
func ByAgentsCreatedCount(opts ...sql.OrderTermOption) OrderOption
ByAgentsCreatedCount orders the results by agents_created count.
func ByAllowlistAdded ¶
func ByAllowlistAdded(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAllowlistAdded orders the results by allowlist_added terms.
func ByAllowlistAddedCount ¶
func ByAllowlistAddedCount(opts ...sql.OrderTermOption) OrderOption
ByAllowlistAddedCount orders the results by allowlist_added count.
func ByAuthSessions ¶
func ByAuthSessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAuthSessions orders the results by auth_sessions terms.
func ByAuthSessionsCount ¶
func ByAuthSessionsCount(opts ...sql.OrderTermOption) OrderOption
ByAuthSessionsCount orders the results by auth_sessions count.
func ByChatsCreated ¶
func ByChatsCreated(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByChatsCreated orders the results by chats_created terms.
func ByChatsCreatedCount ¶
func ByChatsCreatedCount(opts ...sql.OrderTermOption) OrderOption
ByChatsCreatedCount orders the results by chats_created count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIdentities ¶
func ByIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIdentities orders the results by identities terms.
func ByIdentitiesCount ¶
func ByIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
ByIdentitiesCount orders the results by identities count.
func ByMemberships ¶
func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMemberships orders the results by memberships terms.
func ByMembershipsCount ¶
func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByMembershipsCount orders the results by memberships 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 ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role 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.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.