Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func AvatarURL(v string) predicate.User
- func AvatarURLContains(v string) predicate.User
- func AvatarURLContainsFold(v string) predicate.User
- func AvatarURLEQ(v string) predicate.User
- func AvatarURLEqualFold(v string) predicate.User
- func AvatarURLGT(v string) predicate.User
- func AvatarURLGTE(v string) predicate.User
- func AvatarURLHasPrefix(v string) predicate.User
- func AvatarURLHasSuffix(v string) predicate.User
- func AvatarURLIn(vs ...string) predicate.User
- func AvatarURLIsNil() predicate.User
- func AvatarURLLT(v string) predicate.User
- func AvatarURLLTE(v string) predicate.User
- func AvatarURLNEQ(v string) predicate.User
- func AvatarURLNotIn(vs ...string) predicate.User
- func AvatarURLNotNil() 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 DefaultConfigsIsNil() predicate.User
- func DefaultConfigsNotNil() predicate.User
- func DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() 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 EmailIsNil() 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 EmailNotNil() predicate.User
- func HasAssignedIssues() predicate.User
- func HasAssignedIssuesWith(preds ...predicate.ProjectIssue) predicate.User
- func HasAudits() predicate.User
- func HasAuditsWith(preds ...predicate.Audit) predicate.User
- func HasGitBotUsers() predicate.User
- func HasGitBotUsersWith(preds ...predicate.GitBotUser) predicate.User
- func HasGitBots() predicate.User
- func HasGitBotsWith(preds ...predicate.GitBot) predicate.User
- func HasGitIdentities() predicate.User
- func HasGitIdentitiesWith(preds ...predicate.GitIdentity) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.TeamGroup) predicate.User
- func HasHosts() predicate.User
- func HasHostsWith(preds ...predicate.Host) predicate.User
- func HasIdentities() predicate.User
- func HasIdentitiesWith(preds ...predicate.UserIdentity) predicate.User
- func HasImages() predicate.User
- func HasImagesWith(preds ...predicate.Image) predicate.User
- func HasModels() predicate.User
- func HasModelsWith(preds ...predicate.Model) predicate.User
- func HasProjectCollaborators() predicate.User
- func HasProjectCollaboratorsWith(preds ...predicate.ProjectCollaborator) predicate.User
- func HasProjectIssueComments() predicate.User
- func HasProjectIssueCommentsWith(preds ...predicate.ProjectIssueComment) predicate.User
- func HasProjectIssues() predicate.User
- func HasProjectIssuesWith(preds ...predicate.ProjectIssue) predicate.User
- func HasProjects() predicate.User
- func HasProjectsWith(preds ...predicate.Project) predicate.User
- func HasTasks() predicate.User
- func HasTasksWith(preds ...predicate.Task) predicate.User
- func HasTeamGroupMembers() predicate.User
- func HasTeamGroupMembersWith(preds ...predicate.TeamGroupMember) predicate.User
- func HasTeamMembers() predicate.User
- func HasTeamMembersWith(preds ...predicate.TeamMember) predicate.User
- func HasTeams() predicate.User
- func HasTeamsWith(preds ...predicate.Team) predicate.User
- func HasVms() predicate.User
- func HasVmsWith(preds ...predicate.VirtualMachine) 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 IsBlocked(v bool) predicate.User
- func IsBlockedEQ(v bool) predicate.User
- func IsBlockedNEQ(v bool) 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 Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordIsNil() predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func PasswordNotNil() predicate.User
- func Role(v consts.UserRole) predicate.User
- func RoleContains(v consts.UserRole) predicate.User
- func RoleContainsFold(v consts.UserRole) predicate.User
- func RoleEQ(v consts.UserRole) predicate.User
- func RoleEqualFold(v consts.UserRole) predicate.User
- func RoleGT(v consts.UserRole) predicate.User
- func RoleGTE(v consts.UserRole) predicate.User
- func RoleHasPrefix(v consts.UserRole) predicate.User
- func RoleHasSuffix(v consts.UserRole) predicate.User
- func RoleIn(vs ...consts.UserRole) predicate.User
- func RoleLT(v consts.UserRole) predicate.User
- func RoleLTE(v consts.UserRole) predicate.User
- func RoleNEQ(v consts.UserRole) predicate.User
- func RoleNotIn(vs ...consts.UserRole) predicate.User
- func Status(v consts.UserStatus) predicate.User
- func StatusContains(v consts.UserStatus) predicate.User
- func StatusContainsFold(v consts.UserStatus) predicate.User
- func StatusEQ(v consts.UserStatus) predicate.User
- func StatusEqualFold(v consts.UserStatus) predicate.User
- func StatusGT(v consts.UserStatus) predicate.User
- func StatusGTE(v consts.UserStatus) predicate.User
- func StatusHasPrefix(v consts.UserStatus) predicate.User
- func StatusHasSuffix(v consts.UserStatus) predicate.User
- func StatusIn(vs ...consts.UserStatus) predicate.User
- func StatusLT(v consts.UserStatus) predicate.User
- func StatusLTE(v consts.UserStatus) predicate.User
- func StatusNEQ(v consts.UserStatus) predicate.User
- func StatusNotIn(vs ...consts.UserStatus) 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
- type OrderOption
- func ByAssignedIssues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAssignedIssuesCount(opts ...sql.OrderTermOption) OrderOption
- func ByAudits(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAuditsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByGitBotUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGitBotUsersCount(opts ...sql.OrderTermOption) OrderOption
- func ByGitBots(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGitBotsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGitIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGitIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByHosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByHostsCount(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 ByImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByIsBlocked(opts ...sql.OrderTermOption) OrderOption
- func ByModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByProjectCollaborators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectCollaboratorsCount(opts ...sql.OrderTermOption) OrderOption
- func ByProjectIssueComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectIssueCommentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByProjectIssues(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectIssuesCount(opts ...sql.OrderTermOption) OrderOption
- func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVmsCount(opts ...sql.OrderTermOption) OrderOption
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" // 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 ¶
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"} )
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"
var Columns = []string{ FieldID, FieldDeletedAt, FieldName, FieldEmail, FieldAvatarURL, FieldPassword, FieldRole, FieldStatus, FieldIsBlocked, FieldDefaultConfigs, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for user fields.
Functions ¶
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLIsNil ¶
AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func AvatarURLNotNil ¶
AvatarURLNotNil applies the NotNil predicate on the "avatar_url" 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 DefaultConfigsIsNil ¶
DefaultConfigsIsNil applies the IsNil predicate on the "default_configs" field.
func DefaultConfigsNotNil ¶
DefaultConfigsNotNil applies the NotNil predicate on the "default_configs" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" 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 EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func HasAssignedIssues ¶
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 HasAuditsWith ¶
HasAuditsWith applies the HasEdge predicate on the "audits" edge with a given conditions (other predicates).
func HasGitBotUsers ¶
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 ¶
HasGitBots applies the HasEdge predicate on the "git_bots" edge.
func HasGitBotsWith ¶
HasGitBotsWith applies the HasEdge predicate on the "git_bots" edge with a given conditions (other predicates).
func HasGitIdentities ¶
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 HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasHostsWith ¶
HasHostsWith applies the HasEdge predicate on the "hosts" edge with a given conditions (other predicates).
func HasIdentities ¶
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 HasImagesWith ¶
HasImagesWith applies the HasEdge predicate on the "images" edge with a given conditions (other predicates).
func HasModelsWith ¶
HasModelsWith applies the HasEdge predicate on the "models" edge with a given conditions (other predicates).
func HasProjectCollaborators ¶
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 ¶
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 ¶
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 ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func HasTeamGroupMembers ¶
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 ¶
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 HasTeamsWith ¶
HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
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 IsBlocked ¶
IsBlocked applies equality check predicate on the "is_blocked" field. It's identical to IsBlockedEQ.
func IsBlockedEQ ¶
IsBlockedEQ applies the EQ predicate on the "is_blocked" field.
func IsBlockedNEQ ¶
IsBlockedNEQ applies the NEQ predicate on the "is_blocked" 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 Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" field.
func RoleContains ¶
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEqualFold ¶
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleHasPrefix ¶
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
RoleHasSuffix applies the HasSuffix 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 ¶
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 ¶
type OrderOption ¶
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.