assessment

package
v1.11.21 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the assessment type in the database.
	Label = "assessment"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAssessmentType holds the string denoting the assessment_type field in the database.
	FieldAssessmentType = "assessment_type"
	// FieldTemplateID holds the string denoting the template_id field in the database.
	FieldTemplateID = "template_id"
	// FieldJsonconfig holds the string denoting the jsonconfig field in the database.
	FieldJsonconfig = "jsonconfig"
	// FieldUischema holds the string denoting the uischema field in the database.
	FieldUischema = "uischema"
	// FieldResponseDueDuration holds the string denoting the response_due_duration field in the database.
	FieldResponseDueDuration = "response_due_duration"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeBlockedGroups holds the string denoting the blocked_groups edge name in mutations.
	EdgeBlockedGroups = "blocked_groups"
	// EdgeEditors holds the string denoting the editors edge name in mutations.
	EdgeEditors = "editors"
	// EdgeViewers holds the string denoting the viewers edge name in mutations.
	EdgeViewers = "viewers"
	// EdgeTemplate holds the string denoting the template edge name in mutations.
	EdgeTemplate = "template"
	// EdgePlatforms holds the string denoting the platforms edge name in mutations.
	EdgePlatforms = "platforms"
	// EdgeIdentityHolders holds the string denoting the identity_holders edge name in mutations.
	EdgeIdentityHolders = "identity_holders"
	// EdgeAssessmentResponses holds the string denoting the assessment_responses edge name in mutations.
	EdgeAssessmentResponses = "assessment_responses"
	// EdgeCampaigns holds the string denoting the campaigns edge name in mutations.
	EdgeCampaigns = "campaigns"
	// Table holds the table name of the assessment in the database.
	Table = "assessments"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "assessments"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organizations"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// BlockedGroupsTable is the table that holds the blocked_groups relation/edge.
	BlockedGroupsTable = "groups"
	// BlockedGroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	BlockedGroupsInverseTable = "groups"
	// BlockedGroupsColumn is the table column denoting the blocked_groups relation/edge.
	BlockedGroupsColumn = "assessment_blocked_groups"
	// EditorsTable is the table that holds the editors relation/edge.
	EditorsTable = "groups"
	// EditorsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	EditorsInverseTable = "groups"
	// EditorsColumn is the table column denoting the editors relation/edge.
	EditorsColumn = "assessment_editors"
	// ViewersTable is the table that holds the viewers relation/edge.
	ViewersTable = "groups"
	// ViewersInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	ViewersInverseTable = "groups"
	// ViewersColumn is the table column denoting the viewers relation/edge.
	ViewersColumn = "assessment_viewers"
	// TemplateTable is the table that holds the template relation/edge.
	TemplateTable = "assessments"
	// TemplateInverseTable is the table name for the Template entity.
	// It exists in this package in order to avoid circular dependency with the "template" package.
	TemplateInverseTable = "templates"
	// TemplateColumn is the table column denoting the template relation/edge.
	TemplateColumn = "template_id"
	// PlatformsTable is the table that holds the platforms relation/edge. The primary key declared below.
	PlatformsTable = "platform_assessments"
	// PlatformsInverseTable is the table name for the Platform entity.
	// It exists in this package in order to avoid circular dependency with the "platform" package.
	PlatformsInverseTable = "platforms"
	// IdentityHoldersTable is the table that holds the identity_holders relation/edge. The primary key declared below.
	IdentityHoldersTable = "identity_holder_assessments"
	// IdentityHoldersInverseTable is the table name for the IdentityHolder entity.
	// It exists in this package in order to avoid circular dependency with the "identityholder" package.
	IdentityHoldersInverseTable = "identity_holders"
	// AssessmentResponsesTable is the table that holds the assessment_responses relation/edge.
	AssessmentResponsesTable = "assessment_responses"
	// AssessmentResponsesInverseTable is the table name for the AssessmentResponse entity.
	// It exists in this package in order to avoid circular dependency with the "assessmentresponse" package.
	AssessmentResponsesInverseTable = "assessment_responses"
	// AssessmentResponsesColumn is the table column denoting the assessment_responses relation/edge.
	AssessmentResponsesColumn = "assessment_id"
	// CampaignsTable is the table that holds the campaigns relation/edge.
	CampaignsTable = "campaigns"
	// CampaignsInverseTable is the table name for the Campaign entity.
	// It exists in this package in order to avoid circular dependency with the "campaign" package.
	CampaignsInverseTable = "campaigns"
	// CampaignsColumn is the table column denoting the campaigns relation/edge.
	CampaignsColumn = "assessment_id"
)
View Source
const DefaultAssessmentType enums.AssessmentType = "INTERNAL"

Variables

View Source
var (
	// PlatformsPrimaryKey and PlatformsColumn2 are the table columns denoting the
	// primary key for the platforms relation (M2M).
	PlatformsPrimaryKey = []string{"platform_id", "assessment_id"}
	// IdentityHoldersPrimaryKey and IdentityHoldersColumn2 are the table columns denoting the
	// primary key for the identity_holders relation (M2M).
	IdentityHoldersPrimaryKey = []string{"identity_holder_id", "assessment_id"}
)
View Source
var (
	Hooks        [10]ent.Hook
	Interceptors [2]ent.Interceptor
	Policy       ent.Policy
	// 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
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

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/theopenlane/core/internal/ent/generated/runtime"

Columns holds all SQL columns for assessment fields.

Functions

func And

func And(predicates ...predicate.Assessment) predicate.Assessment

And groups predicates with the AND operator between them.

func AssessmentTypeEQ

func AssessmentTypeEQ(v enums.AssessmentType) predicate.Assessment

AssessmentTypeEQ applies the EQ predicate on the "assessment_type" field.

func AssessmentTypeIn

func AssessmentTypeIn(vs ...enums.AssessmentType) predicate.Assessment

AssessmentTypeIn applies the In predicate on the "assessment_type" field.

func AssessmentTypeNEQ

func AssessmentTypeNEQ(v enums.AssessmentType) predicate.Assessment

AssessmentTypeNEQ applies the NEQ predicate on the "assessment_type" field.

func AssessmentTypeNotIn

func AssessmentTypeNotIn(vs ...enums.AssessmentType) predicate.Assessment

AssessmentTypeNotIn applies the NotIn predicate on the "assessment_type" field.

func AssessmentTypeValidator

func AssessmentTypeValidator(at enums.AssessmentType) error

AssessmentTypeValidator is a validator for the "assessment_type" field enum values. It is called by the builders before save.

func CreatedAt

func CreatedAt(v time.Time) predicate.Assessment

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Assessment

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Assessment

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Assessment

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Assessment

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Assessment

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Assessment

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Assessment

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Assessment

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.Assessment

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.Assessment

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Assessment

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.Assessment

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Assessment

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.Assessment

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.Assessment

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Assessment

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Assessment

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.Assessment

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Assessment

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.Assessment

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.Assessment

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Assessment

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.Assessment

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Assessment

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Assessment

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Assessment

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Assessment

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Assessment

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Assessment

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Assessment

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Assessment

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Assessment

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Assessment

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

func DeletedBy

func DeletedBy(v string) predicate.Assessment

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.Assessment

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.Assessment

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.Assessment

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.Assessment

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.Assessment

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.Assessment

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.Assessment

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.Assessment

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.Assessment

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.Assessment

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.Assessment

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.Assessment

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.Assessment

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.Assessment

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.Assessment

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func HasAssessmentResponses

func HasAssessmentResponses() predicate.Assessment

HasAssessmentResponses applies the HasEdge predicate on the "assessment_responses" edge.

func HasAssessmentResponsesWith

func HasAssessmentResponsesWith(preds ...predicate.AssessmentResponse) predicate.Assessment

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

func HasBlockedGroups

func HasBlockedGroups() predicate.Assessment

HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.

func HasBlockedGroupsWith

func HasBlockedGroupsWith(preds ...predicate.Group) predicate.Assessment

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

func HasCampaigns added in v1.5.0

func HasCampaigns() predicate.Assessment

HasCampaigns applies the HasEdge predicate on the "campaigns" edge.

func HasCampaignsWith added in v1.5.0

func HasCampaignsWith(preds ...predicate.Campaign) predicate.Assessment

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

func HasEditors

func HasEditors() predicate.Assessment

HasEditors applies the HasEdge predicate on the "editors" edge.

func HasEditorsWith

func HasEditorsWith(preds ...predicate.Group) predicate.Assessment

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

func HasIdentityHolders added in v1.5.0

func HasIdentityHolders() predicate.Assessment

HasIdentityHolders applies the HasEdge predicate on the "identity_holders" edge.

func HasIdentityHoldersWith added in v1.5.0

func HasIdentityHoldersWith(preds ...predicate.IdentityHolder) predicate.Assessment

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

func HasOwner

func HasOwner() predicate.Assessment

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.Assessment

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

func HasPlatforms added in v1.5.0

func HasPlatforms() predicate.Assessment

HasPlatforms applies the HasEdge predicate on the "platforms" edge.

func HasPlatformsWith added in v1.5.0

func HasPlatformsWith(preds ...predicate.Platform) predicate.Assessment

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

func HasTemplate

func HasTemplate() predicate.Assessment

HasTemplate applies the HasEdge predicate on the "template" edge.

func HasTemplateWith

func HasTemplateWith(preds ...predicate.Template) predicate.Assessment

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

func HasViewers

func HasViewers() predicate.Assessment

HasViewers applies the HasEdge predicate on the "viewers" edge.

func HasViewersWith

func HasViewersWith(preds ...predicate.Group) predicate.Assessment

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Assessment

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Assessment

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Assessment

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Assessment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Assessment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Assessment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Assessment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Assessment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Assessment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Assessment

IDNotIn applies the NotIn predicate on the ID field.

func JsonconfigIsNil added in v0.46.3

func JsonconfigIsNil() predicate.Assessment

JsonconfigIsNil applies the IsNil predicate on the "jsonconfig" field.

func JsonconfigNotNil added in v0.46.3

func JsonconfigNotNil() predicate.Assessment

JsonconfigNotNil applies the NotNil predicate on the "jsonconfig" field.

func Name

func Name(v string) predicate.Assessment

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

func NameContains

func NameContains(v string) predicate.Assessment

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

func NameContainsFold

func NameContainsFold(v string) predicate.Assessment

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

func NameEQ

func NameEQ(v string) predicate.Assessment

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

func NameEqualFold

func NameEqualFold(v string) predicate.Assessment

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

func NameGT

func NameGT(v string) predicate.Assessment

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

func NameGTE

func NameGTE(v string) predicate.Assessment

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Assessment

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Assessment

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Assessment

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

func NameLTE

func NameLTE(v string) predicate.Assessment

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

func NameNEQ

func NameNEQ(v string) predicate.Assessment

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

func NameNotIn

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

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.Assessment) predicate.Assessment

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.Assessment

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.Assessment

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Assessment

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Assessment

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Assessment

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.Assessment

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Assessment

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Assessment

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Assessment

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.Assessment

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.Assessment

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.Assessment

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Assessment

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Assessment

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.Assessment

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.Assessment

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func ResponseDueDuration added in v0.46.3

func ResponseDueDuration(v int64) predicate.Assessment

ResponseDueDuration applies equality check predicate on the "response_due_duration" field. It's identical to ResponseDueDurationEQ.

func ResponseDueDurationEQ added in v0.46.3

func ResponseDueDurationEQ(v int64) predicate.Assessment

ResponseDueDurationEQ applies the EQ predicate on the "response_due_duration" field.

func ResponseDueDurationGT added in v0.46.3

func ResponseDueDurationGT(v int64) predicate.Assessment

ResponseDueDurationGT applies the GT predicate on the "response_due_duration" field.

func ResponseDueDurationGTE added in v0.46.3

func ResponseDueDurationGTE(v int64) predicate.Assessment

ResponseDueDurationGTE applies the GTE predicate on the "response_due_duration" field.

func ResponseDueDurationIn added in v0.46.3

func ResponseDueDurationIn(vs ...int64) predicate.Assessment

ResponseDueDurationIn applies the In predicate on the "response_due_duration" field.

func ResponseDueDurationIsNil added in v0.46.3

func ResponseDueDurationIsNil() predicate.Assessment

ResponseDueDurationIsNil applies the IsNil predicate on the "response_due_duration" field.

func ResponseDueDurationLT added in v0.46.3

func ResponseDueDurationLT(v int64) predicate.Assessment

ResponseDueDurationLT applies the LT predicate on the "response_due_duration" field.

func ResponseDueDurationLTE added in v0.46.3

func ResponseDueDurationLTE(v int64) predicate.Assessment

ResponseDueDurationLTE applies the LTE predicate on the "response_due_duration" field.

func ResponseDueDurationNEQ added in v0.46.3

func ResponseDueDurationNEQ(v int64) predicate.Assessment

ResponseDueDurationNEQ applies the NEQ predicate on the "response_due_duration" field.

func ResponseDueDurationNotIn added in v0.46.3

func ResponseDueDurationNotIn(vs ...int64) predicate.Assessment

ResponseDueDurationNotIn applies the NotIn predicate on the "response_due_duration" field.

func ResponseDueDurationNotNil added in v0.46.3

func ResponseDueDurationNotNil() predicate.Assessment

ResponseDueDurationNotNil applies the NotNil predicate on the "response_due_duration" field.

func TagsIsNil

func TagsIsNil() predicate.Assessment

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.Assessment

TagsNotNil applies the NotNil predicate on the "tags" field.

func TemplateID

func TemplateID(v string) predicate.Assessment

TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.

func TemplateIDContains

func TemplateIDContains(v string) predicate.Assessment

TemplateIDContains applies the Contains predicate on the "template_id" field.

func TemplateIDContainsFold

func TemplateIDContainsFold(v string) predicate.Assessment

TemplateIDContainsFold applies the ContainsFold predicate on the "template_id" field.

func TemplateIDEQ

func TemplateIDEQ(v string) predicate.Assessment

TemplateIDEQ applies the EQ predicate on the "template_id" field.

func TemplateIDEqualFold

func TemplateIDEqualFold(v string) predicate.Assessment

TemplateIDEqualFold applies the EqualFold predicate on the "template_id" field.

func TemplateIDGT

func TemplateIDGT(v string) predicate.Assessment

TemplateIDGT applies the GT predicate on the "template_id" field.

func TemplateIDGTE

func TemplateIDGTE(v string) predicate.Assessment

TemplateIDGTE applies the GTE predicate on the "template_id" field.

func TemplateIDHasPrefix

func TemplateIDHasPrefix(v string) predicate.Assessment

TemplateIDHasPrefix applies the HasPrefix predicate on the "template_id" field.

func TemplateIDHasSuffix

func TemplateIDHasSuffix(v string) predicate.Assessment

TemplateIDHasSuffix applies the HasSuffix predicate on the "template_id" field.

func TemplateIDIn

func TemplateIDIn(vs ...string) predicate.Assessment

TemplateIDIn applies the In predicate on the "template_id" field.

func TemplateIDIsNil added in v0.46.3

func TemplateIDIsNil() predicate.Assessment

TemplateIDIsNil applies the IsNil predicate on the "template_id" field.

func TemplateIDLT

func TemplateIDLT(v string) predicate.Assessment

TemplateIDLT applies the LT predicate on the "template_id" field.

func TemplateIDLTE

func TemplateIDLTE(v string) predicate.Assessment

TemplateIDLTE applies the LTE predicate on the "template_id" field.

func TemplateIDNEQ

func TemplateIDNEQ(v string) predicate.Assessment

TemplateIDNEQ applies the NEQ predicate on the "template_id" field.

func TemplateIDNotIn

func TemplateIDNotIn(vs ...string) predicate.Assessment

TemplateIDNotIn applies the NotIn predicate on the "template_id" field.

func TemplateIDNotNil added in v0.46.3

func TemplateIDNotNil() predicate.Assessment

TemplateIDNotNil applies the NotNil predicate on the "template_id" field.

func UischemaIsNil added in v0.46.3

func UischemaIsNil() predicate.Assessment

UischemaIsNil applies the IsNil predicate on the "uischema" field.

func UischemaNotNil added in v0.46.3

func UischemaNotNil() predicate.Assessment

UischemaNotNil applies the NotNil predicate on the "uischema" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Assessment

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Assessment

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Assessment

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Assessment

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Assessment

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Assessment

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Assessment

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Assessment

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Assessment

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.Assessment

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.Assessment

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Assessment

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Assessment

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Assessment

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.Assessment

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Assessment

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Assessment

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Assessment

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.Assessment

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Assessment

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.Assessment

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Assessment

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Assessment

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.Assessment

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Assessment

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 Assessment queries.

func ByAssessmentResponses

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

ByAssessmentResponses orders the results by assessment_responses terms.

func ByAssessmentResponsesCount

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

ByAssessmentResponsesCount orders the results by assessment_responses count.

func ByAssessmentType

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

ByAssessmentType orders the results by the assessment_type field.

func ByBlockedGroups

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

ByBlockedGroups orders the results by blocked_groups terms.

func ByBlockedGroupsCount

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

ByBlockedGroupsCount orders the results by blocked_groups count.

func ByCampaigns added in v1.5.0

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

ByCampaigns orders the results by campaigns terms.

func ByCampaignsCount added in v1.5.0

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

ByCampaignsCount orders the results by campaigns count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

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

ByDeletedBy orders the results by the deleted_by field.

func ByEditors

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

ByEditors orders the results by editors terms.

func ByEditorsCount

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

ByEditorsCount orders the results by editors count.

func ByID

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

ByID orders the results by the id field.

func ByIdentityHolders added in v1.5.0

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

ByIdentityHolders orders the results by identity_holders terms.

func ByIdentityHoldersCount added in v1.5.0

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

ByIdentityHoldersCount orders the results by identity_holders count.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByPlatforms added in v1.5.0

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

ByPlatforms orders the results by platforms terms.

func ByPlatformsCount added in v1.5.0

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

ByPlatformsCount orders the results by platforms count.

func ByResponseDueDuration added in v0.46.3

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

ByResponseDueDuration orders the results by the response_due_duration field.

func ByTemplateField

func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption

ByTemplateField orders the results by template field.

func ByTemplateID

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

ByTemplateID orders the results by the template_id field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

func ByViewers

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

ByViewers orders the results by viewers terms.

func ByViewersCount

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

ByViewersCount orders the results by viewers count.

Jump to

Keyboard shortcuts

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