user

package
v0.0.0-...-481d40d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// 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"
	// FieldIsBlocked holds the string denoting the is_blocked field in the database.
	FieldIsBlocked = "is_blocked"
	// FieldDefaultConfigs holds the string denoting the default_configs field in the database.
	FieldDefaultConfigs = "default_configs"
	// 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"
	// EdgeAudits holds the string denoting the audits edge name in mutations.
	EdgeAudits = "audits"
	// EdgeTeams holds the string denoting the teams edge name in mutations.
	EdgeTeams = "teams"
	// EdgeGroups holds the string denoting the groups edge name in mutations.
	EdgeGroups = "groups"
	// EdgeModels holds the string denoting the models edge name in mutations.
	EdgeModels = "models"
	// EdgeImages holds the string denoting the images edge name in mutations.
	EdgeImages = "images"
	// EdgeHosts holds the string denoting the hosts edge name in mutations.
	EdgeHosts = "hosts"
	// EdgeVms holds the string denoting the vms edge name in mutations.
	EdgeVms = "vms"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// EdgeGitIdentities holds the string denoting the git_identities edge name in mutations.
	EdgeGitIdentities = "git_identities"
	// EdgeProjects holds the string denoting the projects edge name in mutations.
	EdgeProjects = "projects"
	// EdgeProjectIssues holds the string denoting the project_issues edge name in mutations.
	EdgeProjectIssues = "project_issues"
	// EdgeAssignedIssues holds the string denoting the assigned_issues edge name in mutations.
	EdgeAssignedIssues = "assigned_issues"
	// EdgeProjectCollaborators holds the string denoting the project_collaborators edge name in mutations.
	EdgeProjectCollaborators = "project_collaborators"
	// EdgeProjectIssueComments holds the string denoting the project_issue_comments edge name in mutations.
	EdgeProjectIssueComments = "project_issue_comments"
	// EdgeGitBots holds the string denoting the git_bots edge name in mutations.
	EdgeGitBots = "git_bots"
	// EdgeTeamMembers holds the string denoting the team_members edge name in mutations.
	EdgeTeamMembers = "team_members"
	// EdgeTeamGroupMembers holds the string denoting the team_group_members edge name in mutations.
	EdgeTeamGroupMembers = "team_group_members"
	// EdgeGitBotUsers holds the string denoting the git_bot_users edge name in mutations.
	EdgeGitBotUsers = "git_bot_users"
	// Table holds the table name of the user in the database.
	Table = "users"
	// IdentitiesTable is the table that holds the identities relation/edge.
	IdentitiesTable = "user_identities"
	// IdentitiesInverseTable is the table name for the UserIdentity entity.
	// It exists in this package in order to avoid circular dependency with the "useridentity" package.
	IdentitiesInverseTable = "user_identities"
	// IdentitiesColumn is the table column denoting the identities relation/edge.
	IdentitiesColumn = "user_id"
	// AuditsTable is the table that holds the audits relation/edge.
	AuditsTable = "audits"
	// AuditsInverseTable is the table name for the Audit entity.
	// It exists in this package in order to avoid circular dependency with the "audit" package.
	AuditsInverseTable = "audits"
	// AuditsColumn is the table column denoting the audits relation/edge.
	AuditsColumn = "user_id"
	// TeamsTable is the table that holds the teams relation/edge. The primary key declared below.
	TeamsTable = "team_members"
	// TeamsInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamsInverseTable = "teams"
	// GroupsTable is the table that holds the groups relation/edge. The primary key declared below.
	GroupsTable = "team_group_members"
	// GroupsInverseTable is the table name for the TeamGroup entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroup" package.
	GroupsInverseTable = "team_groups"
	// ModelsTable is the table that holds the models relation/edge.
	ModelsTable = "models"
	// ModelsInverseTable is the table name for the Model entity.
	// It exists in this package in order to avoid circular dependency with the "model" package.
	ModelsInverseTable = "models"
	// ModelsColumn is the table column denoting the models relation/edge.
	ModelsColumn = "user_id"
	// ImagesTable is the table that holds the images relation/edge.
	ImagesTable = "images"
	// ImagesInverseTable is the table name for the Image entity.
	// It exists in this package in order to avoid circular dependency with the "image" package.
	ImagesInverseTable = "images"
	// ImagesColumn is the table column denoting the images relation/edge.
	ImagesColumn = "user_id"
	// HostsTable is the table that holds the hosts relation/edge.
	HostsTable = "hosts"
	// HostsInverseTable is the table name for the Host entity.
	// It exists in this package in order to avoid circular dependency with the "host" package.
	HostsInverseTable = "hosts"
	// HostsColumn is the table column denoting the hosts relation/edge.
	HostsColumn = "user_id"
	// VmsTable is the table that holds the vms relation/edge.
	VmsTable = "virtualmachines"
	// VmsInverseTable is the table name for the VirtualMachine entity.
	// It exists in this package in order to avoid circular dependency with the "virtualmachine" package.
	VmsInverseTable = "virtualmachines"
	// VmsColumn is the table column denoting the vms relation/edge.
	VmsColumn = "user_id"
	// TasksTable is the table that holds the tasks relation/edge.
	TasksTable = "tasks"
	// TasksInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TasksInverseTable = "tasks"
	// TasksColumn is the table column denoting the tasks relation/edge.
	TasksColumn = "user_id"
	// GitIdentitiesTable is the table that holds the git_identities relation/edge.
	GitIdentitiesTable = "git_identities"
	// GitIdentitiesInverseTable is the table name for the GitIdentity entity.
	// It exists in this package in order to avoid circular dependency with the "gitidentity" package.
	GitIdentitiesInverseTable = "git_identities"
	// GitIdentitiesColumn is the table column denoting the git_identities relation/edge.
	GitIdentitiesColumn = "user_id"
	// ProjectsTable is the table that holds the projects relation/edge.
	ProjectsTable = "projects"
	// ProjectsInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectsInverseTable = "projects"
	// ProjectsColumn is the table column denoting the projects relation/edge.
	ProjectsColumn = "user_id"
	// ProjectIssuesTable is the table that holds the project_issues relation/edge.
	ProjectIssuesTable = "project_issues"
	// ProjectIssuesInverseTable is the table name for the ProjectIssue entity.
	// It exists in this package in order to avoid circular dependency with the "projectissue" package.
	ProjectIssuesInverseTable = "project_issues"
	// ProjectIssuesColumn is the table column denoting the project_issues relation/edge.
	ProjectIssuesColumn = "user_id"
	// AssignedIssuesTable is the table that holds the assigned_issues relation/edge.
	AssignedIssuesTable = "project_issues"
	// AssignedIssuesInverseTable is the table name for the ProjectIssue entity.
	// It exists in this package in order to avoid circular dependency with the "projectissue" package.
	AssignedIssuesInverseTable = "project_issues"
	// AssignedIssuesColumn is the table column denoting the assigned_issues relation/edge.
	AssignedIssuesColumn = "assignee_id"
	// ProjectCollaboratorsTable is the table that holds the project_collaborators relation/edge.
	ProjectCollaboratorsTable = "project_collaborators"
	// ProjectCollaboratorsInverseTable is the table name for the ProjectCollaborator entity.
	// It exists in this package in order to avoid circular dependency with the "projectcollaborator" package.
	ProjectCollaboratorsInverseTable = "project_collaborators"
	// ProjectCollaboratorsColumn is the table column denoting the project_collaborators relation/edge.
	ProjectCollaboratorsColumn = "user_id"
	// ProjectIssueCommentsTable is the table that holds the project_issue_comments relation/edge.
	ProjectIssueCommentsTable = "project_issue_comments"
	// ProjectIssueCommentsInverseTable is the table name for the ProjectIssueComment entity.
	// It exists in this package in order to avoid circular dependency with the "projectissuecomment" package.
	ProjectIssueCommentsInverseTable = "project_issue_comments"
	// ProjectIssueCommentsColumn is the table column denoting the project_issue_comments relation/edge.
	ProjectIssueCommentsColumn = "user_id"
	// GitBotsTable is the table that holds the git_bots relation/edge. The primary key declared below.
	GitBotsTable = "git_bot_users"
	// GitBotsInverseTable is the table name for the GitBot entity.
	// It exists in this package in order to avoid circular dependency with the "gitbot" package.
	GitBotsInverseTable = "git_bots"
	// TeamMembersTable is the table that holds the team_members relation/edge.
	TeamMembersTable = "team_members"
	// TeamMembersInverseTable is the table name for the TeamMember entity.
	// It exists in this package in order to avoid circular dependency with the "teammember" package.
	TeamMembersInverseTable = "team_members"
	// TeamMembersColumn is the table column denoting the team_members relation/edge.
	TeamMembersColumn = "user_id"
	// TeamGroupMembersTable is the table that holds the team_group_members relation/edge.
	TeamGroupMembersTable = "team_group_members"
	// TeamGroupMembersInverseTable is the table name for the TeamGroupMember entity.
	// It exists in this package in order to avoid circular dependency with the "teamgroupmember" package.
	TeamGroupMembersInverseTable = "team_group_members"
	// TeamGroupMembersColumn is the table column denoting the team_group_members relation/edge.
	TeamGroupMembersColumn = "user_id"
	// GitBotUsersTable is the table that holds the git_bot_users relation/edge.
	GitBotUsersTable = "git_bot_users"
	// GitBotUsersInverseTable is the table name for the GitBotUser entity.
	// It exists in this package in order to avoid circular dependency with the "gitbotuser" package.
	GitBotUsersInverseTable = "git_bot_users"
	// GitBotUsersColumn is the table column denoting the git_bot_users relation/edge.
	GitBotUsersColumn = "user_id"
)

Variables

View Source
var (
	// TeamsPrimaryKey and TeamsColumn2 are the table columns denoting the
	// primary key for the teams relation (M2M).
	TeamsPrimaryKey = []string{"user_id", "team_id"}
	// GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the
	// primary key for the groups relation (M2M).
	GroupsPrimaryKey = []string{"user_id", "group_id"}
	// GitBotsPrimaryKey and GitBotsColumn2 are the table columns denoting the
	// primary key for the git_bots relation (M2M).
	GitBotsPrimaryKey = []string{"user_id", "git_bot_id"}
)
View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultIsBlocked holds the default value on creation for the "is_blocked" field.
	DefaultIsBlocked bool
	// 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
)

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/chaitin/MonkeyCode/backend/db/runtime"

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func AvatarURL

func AvatarURL(v string) predicate.User

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains

func AvatarURLContains(v string) predicate.User

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.User

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.User

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.User

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT

func AvatarURLGT(v string) predicate.User

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.User

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.User

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.User

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn

func AvatarURLIn(vs ...string) predicate.User

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLIsNil

func AvatarURLIsNil() predicate.User

AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.User

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.User

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.User

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn

func AvatarURLNotIn(vs ...string) predicate.User

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func AvatarURLNotNil

func AvatarURLNotNil() predicate.User

AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func DefaultConfigsIsNil

func DefaultConfigsIsNil() predicate.User

DefaultConfigsIsNil applies the IsNil predicate on the "default_configs" field.

func DefaultConfigsNotNil

func DefaultConfigsNotNil() predicate.User

DefaultConfigsNotNil applies the NotNil predicate on the "default_configs" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.User

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.User

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.User

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.User

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.User

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.User

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.User

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.User

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.User

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.User

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.User

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.User

EmailIn applies the In predicate on the "email" field.

func EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.User

EmailNotIn applies the NotIn predicate on the "email" field.

func EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil predicate on the "email" field.

func HasAssignedIssues

func HasAssignedIssues() predicate.User

HasAssignedIssues applies the HasEdge predicate on the "assigned_issues" edge.

func HasAssignedIssuesWith

func HasAssignedIssuesWith(preds ...predicate.ProjectIssue) predicate.User

HasAssignedIssuesWith applies the HasEdge predicate on the "assigned_issues" edge with a given conditions (other predicates).

func HasAudits

func HasAudits() predicate.User

HasAudits applies the HasEdge predicate on the "audits" edge.

func HasAuditsWith

func HasAuditsWith(preds ...predicate.Audit) predicate.User

HasAuditsWith applies the HasEdge predicate on the "audits" edge with a given conditions (other predicates).

func HasGitBotUsers

func HasGitBotUsers() predicate.User

HasGitBotUsers applies the HasEdge predicate on the "git_bot_users" edge.

func HasGitBotUsersWith

func HasGitBotUsersWith(preds ...predicate.GitBotUser) predicate.User

HasGitBotUsersWith applies the HasEdge predicate on the "git_bot_users" edge with a given conditions (other predicates).

func HasGitBots

func HasGitBots() predicate.User

HasGitBots applies the HasEdge predicate on the "git_bots" edge.

func HasGitBotsWith

func HasGitBotsWith(preds ...predicate.GitBot) predicate.User

HasGitBotsWith applies the HasEdge predicate on the "git_bots" edge with a given conditions (other predicates).

func HasGitIdentities

func HasGitIdentities() predicate.User

HasGitIdentities applies the HasEdge predicate on the "git_identities" edge.

func HasGitIdentitiesWith

func HasGitIdentitiesWith(preds ...predicate.GitIdentity) predicate.User

HasGitIdentitiesWith applies the HasEdge predicate on the "git_identities" edge with a given conditions (other predicates).

func HasGroups

func HasGroups() predicate.User

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.TeamGroup) predicate.User

HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).

func HasHosts

func HasHosts() predicate.User

HasHosts applies the HasEdge predicate on the "hosts" edge.

func HasHostsWith

func HasHostsWith(preds ...predicate.Host) predicate.User

HasHostsWith applies the HasEdge predicate on the "hosts" edge with a given conditions (other predicates).

func HasIdentities

func HasIdentities() predicate.User

HasIdentities applies the HasEdge predicate on the "identities" edge.

func HasIdentitiesWith

func HasIdentitiesWith(preds ...predicate.UserIdentity) predicate.User

HasIdentitiesWith applies the HasEdge predicate on the "identities" edge with a given conditions (other predicates).

func HasImages

func HasImages() predicate.User

HasImages applies the HasEdge predicate on the "images" edge.

func HasImagesWith

func HasImagesWith(preds ...predicate.Image) predicate.User

HasImagesWith applies the HasEdge predicate on the "images" edge with a given conditions (other predicates).

func HasModels

func HasModels() predicate.User

HasModels applies the HasEdge predicate on the "models" edge.

func HasModelsWith

func HasModelsWith(preds ...predicate.Model) predicate.User

HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).

func HasProjectCollaborators

func HasProjectCollaborators() predicate.User

HasProjectCollaborators applies the HasEdge predicate on the "project_collaborators" edge.

func HasProjectCollaboratorsWith

func HasProjectCollaboratorsWith(preds ...predicate.ProjectCollaborator) predicate.User

HasProjectCollaboratorsWith applies the HasEdge predicate on the "project_collaborators" edge with a given conditions (other predicates).

func HasProjectIssueComments

func HasProjectIssueComments() predicate.User

HasProjectIssueComments applies the HasEdge predicate on the "project_issue_comments" edge.

func HasProjectIssueCommentsWith

func HasProjectIssueCommentsWith(preds ...predicate.ProjectIssueComment) predicate.User

HasProjectIssueCommentsWith applies the HasEdge predicate on the "project_issue_comments" edge with a given conditions (other predicates).

func HasProjectIssues

func HasProjectIssues() predicate.User

HasProjectIssues applies the HasEdge predicate on the "project_issues" edge.

func HasProjectIssuesWith

func HasProjectIssuesWith(preds ...predicate.ProjectIssue) predicate.User

HasProjectIssuesWith applies the HasEdge predicate on the "project_issues" edge with a given conditions (other predicates).

func HasProjects

func HasProjects() predicate.User

HasProjects applies the HasEdge predicate on the "projects" edge.

func HasProjectsWith

func HasProjectsWith(preds ...predicate.Project) predicate.User

HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).

func HasTasks

func HasTasks() predicate.User

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.User

HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).

func HasTeamGroupMembers

func HasTeamGroupMembers() predicate.User

HasTeamGroupMembers applies the HasEdge predicate on the "team_group_members" edge.

func HasTeamGroupMembersWith

func HasTeamGroupMembersWith(preds ...predicate.TeamGroupMember) predicate.User

HasTeamGroupMembersWith applies the HasEdge predicate on the "team_group_members" edge with a given conditions (other predicates).

func HasTeamMembers

func HasTeamMembers() predicate.User

HasTeamMembers applies the HasEdge predicate on the "team_members" edge.

func HasTeamMembersWith

func HasTeamMembersWith(preds ...predicate.TeamMember) predicate.User

HasTeamMembersWith applies the HasEdge predicate on the "team_members" edge with a given conditions (other predicates).

func HasTeams

func HasTeams() predicate.User

HasTeams applies the HasEdge predicate on the "teams" edge.

func HasTeamsWith

func HasTeamsWith(preds ...predicate.Team) predicate.User

HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).

func HasVms

func HasVms() predicate.User

HasVms applies the HasEdge predicate on the "vms" edge.

func HasVmsWith

func HasVmsWith(preds ...predicate.VirtualMachine) predicate.User

HasVmsWith applies the HasEdge predicate on the "vms" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func IsBlocked

func IsBlocked(v bool) predicate.User

IsBlocked applies equality check predicate on the "is_blocked" field. It's identical to IsBlockedEQ.

func IsBlockedEQ

func IsBlockedEQ(v bool) predicate.User

IsBlockedEQ applies the EQ predicate on the "is_blocked" field.

func IsBlockedNEQ

func IsBlockedNEQ(v bool) predicate.User

IsBlockedNEQ applies the NEQ predicate on the "is_blocked" field.

func Name

func Name(v string) predicate.User

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.User

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.User

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.User

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.User

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.User

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.User

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.User

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.User

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.User

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.User

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.User

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.User

PasswordIn applies the In predicate on the "password" field.

func PasswordIsNil

func PasswordIsNil() predicate.User

PasswordIsNil applies the IsNil predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.User

PasswordNotIn applies the NotIn predicate on the "password" field.

func PasswordNotNil

func PasswordNotNil() predicate.User

PasswordNotNil applies the NotNil predicate on the "password" field.

func Role

func Role(v consts.UserRole) predicate.User

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v consts.UserRole) predicate.User

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v consts.UserRole) predicate.User

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v consts.UserRole) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v consts.UserRole) predicate.User

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v consts.UserRole) predicate.User

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v consts.UserRole) predicate.User

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v consts.UserRole) predicate.User

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v consts.UserRole) predicate.User

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

func RoleIn(vs ...consts.UserRole) predicate.User

RoleIn applies the In predicate on the "role" field.

func RoleLT

func RoleLT(v consts.UserRole) predicate.User

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v consts.UserRole) predicate.User

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v consts.UserRole) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...consts.UserRole) predicate.User

RoleNotIn applies the NotIn predicate on the "role" field.

func Status

func Status(v consts.UserStatus) predicate.User

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v consts.UserStatus) predicate.User

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v consts.UserStatus) predicate.User

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v consts.UserStatus) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v consts.UserStatus) predicate.User

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v consts.UserStatus) predicate.User

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v consts.UserStatus) predicate.User

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v consts.UserStatus) predicate.User

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v consts.UserStatus) predicate.User

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...consts.UserStatus) predicate.User

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v consts.UserStatus) predicate.User

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v consts.UserStatus) predicate.User

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v consts.UserStatus) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...consts.UserStatus) predicate.User

StatusNotIn applies the NotIn predicate on the "status" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAssignedIssues

func ByAssignedIssues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAssignedIssues orders the results by assigned_issues terms.

func ByAssignedIssuesCount

func ByAssignedIssuesCount(opts ...sql.OrderTermOption) OrderOption

ByAssignedIssuesCount orders the results by assigned_issues count.

func ByAudits

func ByAudits(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAudits orders the results by audits terms.

func ByAuditsCount

func ByAuditsCount(opts ...sql.OrderTermOption) OrderOption

ByAuditsCount orders the results by audits count.

func ByAvatarURL

func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption

ByAvatarURL orders the results by the avatar_url field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByEmail

func ByEmail(opts ...sql.OrderTermOption) OrderOption

ByEmail orders the results by the email field.

func ByGitBotUsers

func ByGitBotUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGitBotUsers orders the results by git_bot_users terms.

func ByGitBotUsersCount

func ByGitBotUsersCount(opts ...sql.OrderTermOption) OrderOption

ByGitBotUsersCount orders the results by git_bot_users count.

func ByGitBots

func ByGitBots(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGitBots orders the results by git_bots terms.

func ByGitBotsCount

func ByGitBotsCount(opts ...sql.OrderTermOption) OrderOption

ByGitBotsCount orders the results by git_bots count.

func ByGitIdentities

func ByGitIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGitIdentities orders the results by git_identities terms.

func ByGitIdentitiesCount

func ByGitIdentitiesCount(opts ...sql.OrderTermOption) OrderOption

ByGitIdentitiesCount orders the results by git_identities count.

func ByGroups

func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroups orders the results by groups terms.

func ByGroupsCount

func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption

ByGroupsCount orders the results by groups count.

func ByHosts

func ByHosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByHosts orders the results by hosts terms.

func ByHostsCount

func ByHostsCount(opts ...sql.OrderTermOption) OrderOption

ByHostsCount orders the results by hosts count.

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 ByImages

func ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByImages orders the results by images terms.

func ByImagesCount

func ByImagesCount(opts ...sql.OrderTermOption) OrderOption

ByImagesCount orders the results by images count.

func ByIsBlocked

func ByIsBlocked(opts ...sql.OrderTermOption) OrderOption

ByIsBlocked orders the results by the is_blocked field.

func ByModels

func ByModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByModels orders the results by models terms.

func ByModelsCount

func ByModelsCount(opts ...sql.OrderTermOption) OrderOption

ByModelsCount orders the results by models count.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByPassword

func ByPassword(opts ...sql.OrderTermOption) OrderOption

ByPassword orders the results by the password field.

func ByProjectCollaborators

func ByProjectCollaborators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProjectCollaborators orders the results by project_collaborators terms.

func ByProjectCollaboratorsCount

func ByProjectCollaboratorsCount(opts ...sql.OrderTermOption) OrderOption

ByProjectCollaboratorsCount orders the results by project_collaborators count.

func ByProjectIssueComments

func ByProjectIssueComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProjectIssueComments orders the results by project_issue_comments terms.

func ByProjectIssueCommentsCount

func ByProjectIssueCommentsCount(opts ...sql.OrderTermOption) OrderOption

ByProjectIssueCommentsCount orders the results by project_issue_comments count.

func ByProjectIssues

func ByProjectIssues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProjectIssues orders the results by project_issues terms.

func ByProjectIssuesCount

func ByProjectIssuesCount(opts ...sql.OrderTermOption) OrderOption

ByProjectIssuesCount orders the results by project_issues count.

func ByProjects

func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProjects orders the results by projects terms.

func ByProjectsCount

func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption

ByProjectsCount orders the results by projects 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 ByTasks

func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTasks orders the results by tasks terms.

func ByTasksCount

func ByTasksCount(opts ...sql.OrderTermOption) OrderOption

ByTasksCount orders the results by tasks count.

func ByTeamGroupMembers

func ByTeamGroupMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeamGroupMembers orders the results by team_group_members terms.

func ByTeamGroupMembersCount

func ByTeamGroupMembersCount(opts ...sql.OrderTermOption) OrderOption

ByTeamGroupMembersCount orders the results by team_group_members count.

func ByTeamMembers

func ByTeamMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeamMembers orders the results by team_members terms.

func ByTeamMembersCount

func ByTeamMembersCount(opts ...sql.OrderTermOption) OrderOption

ByTeamMembersCount orders the results by team_members count.

func ByTeams

func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTeams orders the results by teams terms.

func ByTeamsCount

func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption

ByTeamsCount orders the results by teams count.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByVms

func ByVms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByVms orders the results by vms terms.

func ByVmsCount

func ByVmsCount(opts ...sql.OrderTermOption) OrderOption

ByVmsCount orders the results by vms count.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL