Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Template) predicate.Template
- func CreatedAt(v time.Time) predicate.Template
- func CreatedAtEQ(v time.Time) predicate.Template
- func CreatedAtGT(v time.Time) predicate.Template
- func CreatedAtGTE(v time.Time) predicate.Template
- func CreatedAtIn(vs ...time.Time) predicate.Template
- func CreatedAtIsNil() predicate.Template
- func CreatedAtLT(v time.Time) predicate.Template
- func CreatedAtLTE(v time.Time) predicate.Template
- func CreatedAtNEQ(v time.Time) predicate.Template
- func CreatedAtNotIn(vs ...time.Time) predicate.Template
- func CreatedAtNotNil() predicate.Template
- func CreatedBy(v string) predicate.Template
- func CreatedByContains(v string) predicate.Template
- func CreatedByContainsFold(v string) predicate.Template
- func CreatedByEQ(v string) predicate.Template
- func CreatedByEqualFold(v string) predicate.Template
- func CreatedByGT(v string) predicate.Template
- func CreatedByGTE(v string) predicate.Template
- func CreatedByHasPrefix(v string) predicate.Template
- func CreatedByHasSuffix(v string) predicate.Template
- func CreatedByIn(vs ...string) predicate.Template
- func CreatedByIsNil() predicate.Template
- func CreatedByLT(v string) predicate.Template
- func CreatedByLTE(v string) predicate.Template
- func CreatedByNEQ(v string) predicate.Template
- func CreatedByNotIn(vs ...string) predicate.Template
- func CreatedByNotNil() predicate.Template
- func DeletedAt(v time.Time) predicate.Template
- func DeletedAtEQ(v time.Time) predicate.Template
- func DeletedAtGT(v time.Time) predicate.Template
- func DeletedAtGTE(v time.Time) predicate.Template
- func DeletedAtIn(vs ...time.Time) predicate.Template
- func DeletedAtIsNil() predicate.Template
- func DeletedAtLT(v time.Time) predicate.Template
- func DeletedAtLTE(v time.Time) predicate.Template
- func DeletedAtNEQ(v time.Time) predicate.Template
- func DeletedAtNotIn(vs ...time.Time) predicate.Template
- func DeletedAtNotNil() predicate.Template
- func DeletedBy(v string) predicate.Template
- func DeletedByContains(v string) predicate.Template
- func DeletedByContainsFold(v string) predicate.Template
- func DeletedByEQ(v string) predicate.Template
- func DeletedByEqualFold(v string) predicate.Template
- func DeletedByGT(v string) predicate.Template
- func DeletedByGTE(v string) predicate.Template
- func DeletedByHasPrefix(v string) predicate.Template
- func DeletedByHasSuffix(v string) predicate.Template
- func DeletedByIn(vs ...string) predicate.Template
- func DeletedByIsNil() predicate.Template
- func DeletedByLT(v string) predicate.Template
- func DeletedByLTE(v string) predicate.Template
- func DeletedByNEQ(v string) predicate.Template
- func DeletedByNotIn(vs ...string) predicate.Template
- func DeletedByNotNil() predicate.Template
- func Description(v string) predicate.Template
- func DescriptionContains(v string) predicate.Template
- func DescriptionContainsFold(v string) predicate.Template
- func DescriptionEQ(v string) predicate.Template
- func DescriptionEqualFold(v string) predicate.Template
- func DescriptionGT(v string) predicate.Template
- func DescriptionGTE(v string) predicate.Template
- func DescriptionHasPrefix(v string) predicate.Template
- func DescriptionHasSuffix(v string) predicate.Template
- func DescriptionIn(vs ...string) predicate.Template
- func DescriptionIsNil() predicate.Template
- func DescriptionLT(v string) predicate.Template
- func DescriptionLTE(v string) predicate.Template
- func DescriptionNEQ(v string) predicate.Template
- func DescriptionNotIn(vs ...string) predicate.Template
- func DescriptionNotNil() predicate.Template
- func HasDocuments() predicate.Template
- func HasDocumentsWith(preds ...predicate.DocumentData) predicate.Template
- func HasFiles() predicate.Template
- func HasFilesWith(preds ...predicate.File) predicate.Template
- func HasOwner() predicate.Template
- func HasOwnerWith(preds ...predicate.Organization) predicate.Template
- func HasTrustCenter() predicate.Template
- func HasTrustCenterWith(preds ...predicate.TrustCenter) predicate.Template
- func ID(id string) predicate.Template
- func IDContainsFold(id string) predicate.Template
- func IDEQ(id string) predicate.Template
- func IDEqualFold(id string) predicate.Template
- func IDGT(id string) predicate.Template
- func IDGTE(id string) predicate.Template
- func IDIn(ids ...string) predicate.Template
- func IDLT(id string) predicate.Template
- func IDLTE(id string) predicate.Template
- func IDNEQ(id string) predicate.Template
- func IDNotIn(ids ...string) predicate.Template
- func InternalNotes(v string) predicate.Template
- func InternalNotesContains(v string) predicate.Template
- func InternalNotesContainsFold(v string) predicate.Template
- func InternalNotesEQ(v string) predicate.Template
- func InternalNotesEqualFold(v string) predicate.Template
- func InternalNotesGT(v string) predicate.Template
- func InternalNotesGTE(v string) predicate.Template
- func InternalNotesHasPrefix(v string) predicate.Template
- func InternalNotesHasSuffix(v string) predicate.Template
- func InternalNotesIn(vs ...string) predicate.Template
- func InternalNotesIsNil() predicate.Template
- func InternalNotesLT(v string) predicate.Template
- func InternalNotesLTE(v string) predicate.Template
- func InternalNotesNEQ(v string) predicate.Template
- func InternalNotesNotIn(vs ...string) predicate.Template
- func InternalNotesNotNil() predicate.Template
- func KindEQ(v enums.TemplateKind) predicate.Template
- func KindIn(vs ...enums.TemplateKind) predicate.Template
- func KindIsNil() predicate.Template
- func KindNEQ(v enums.TemplateKind) predicate.Template
- func KindNotIn(vs ...enums.TemplateKind) predicate.Template
- func KindNotNil() predicate.Template
- func KindValidator(k enums.TemplateKind) error
- func Name(v string) predicate.Template
- func NameContains(v string) predicate.Template
- func NameContainsFold(v string) predicate.Template
- func NameEQ(v string) predicate.Template
- func NameEqualFold(v string) predicate.Template
- func NameGT(v string) predicate.Template
- func NameGTE(v string) predicate.Template
- func NameHasPrefix(v string) predicate.Template
- func NameHasSuffix(v string) predicate.Template
- func NameIn(vs ...string) predicate.Template
- func NameLT(v string) predicate.Template
- func NameLTE(v string) predicate.Template
- func NameNEQ(v string) predicate.Template
- func NameNotIn(vs ...string) predicate.Template
- func Not(p predicate.Template) predicate.Template
- func Or(predicates ...predicate.Template) predicate.Template
- func OwnerID(v string) predicate.Template
- func OwnerIDContains(v string) predicate.Template
- func OwnerIDContainsFold(v string) predicate.Template
- func OwnerIDEQ(v string) predicate.Template
- func OwnerIDEqualFold(v string) predicate.Template
- func OwnerIDGT(v string) predicate.Template
- func OwnerIDGTE(v string) predicate.Template
- func OwnerIDHasPrefix(v string) predicate.Template
- func OwnerIDHasSuffix(v string) predicate.Template
- func OwnerIDIn(vs ...string) predicate.Template
- func OwnerIDIsNil() predicate.Template
- func OwnerIDLT(v string) predicate.Template
- func OwnerIDLTE(v string) predicate.Template
- func OwnerIDNEQ(v string) predicate.Template
- func OwnerIDNotIn(vs ...string) predicate.Template
- func OwnerIDNotNil() predicate.Template
- func SystemInternalID(v string) predicate.Template
- func SystemInternalIDContains(v string) predicate.Template
- func SystemInternalIDContainsFold(v string) predicate.Template
- func SystemInternalIDEQ(v string) predicate.Template
- func SystemInternalIDEqualFold(v string) predicate.Template
- func SystemInternalIDGT(v string) predicate.Template
- func SystemInternalIDGTE(v string) predicate.Template
- func SystemInternalIDHasPrefix(v string) predicate.Template
- func SystemInternalIDHasSuffix(v string) predicate.Template
- func SystemInternalIDIn(vs ...string) predicate.Template
- func SystemInternalIDIsNil() predicate.Template
- func SystemInternalIDLT(v string) predicate.Template
- func SystemInternalIDLTE(v string) predicate.Template
- func SystemInternalIDNEQ(v string) predicate.Template
- func SystemInternalIDNotIn(vs ...string) predicate.Template
- func SystemInternalIDNotNil() predicate.Template
- func SystemOwned(v bool) predicate.Template
- func SystemOwnedEQ(v bool) predicate.Template
- func SystemOwnedIsNil() predicate.Template
- func SystemOwnedNEQ(v bool) predicate.Template
- func SystemOwnedNotNil() predicate.Template
- func TagsIsNil() predicate.Template
- func TagsNotNil() predicate.Template
- func TemplateTypeEQ(v enums.DocumentType) predicate.Template
- func TemplateTypeIn(vs ...enums.DocumentType) predicate.Template
- func TemplateTypeNEQ(v enums.DocumentType) predicate.Template
- func TemplateTypeNotIn(vs ...enums.DocumentType) predicate.Template
- func TemplateTypeValidator(tt enums.DocumentType) error
- func TrustCenterID(v string) predicate.Template
- func TrustCenterIDContains(v string) predicate.Template
- func TrustCenterIDContainsFold(v string) predicate.Template
- func TrustCenterIDEQ(v string) predicate.Template
- func TrustCenterIDEqualFold(v string) predicate.Template
- func TrustCenterIDGT(v string) predicate.Template
- func TrustCenterIDGTE(v string) predicate.Template
- func TrustCenterIDHasPrefix(v string) predicate.Template
- func TrustCenterIDHasSuffix(v string) predicate.Template
- func TrustCenterIDIn(vs ...string) predicate.Template
- func TrustCenterIDIsNil() predicate.Template
- func TrustCenterIDLT(v string) predicate.Template
- func TrustCenterIDLTE(v string) predicate.Template
- func TrustCenterIDNEQ(v string) predicate.Template
- func TrustCenterIDNotIn(vs ...string) predicate.Template
- func TrustCenterIDNotNil() predicate.Template
- func UischemaIsNil() predicate.Template
- func UischemaNotNil() predicate.Template
- func UpdatedAt(v time.Time) predicate.Template
- func UpdatedAtEQ(v time.Time) predicate.Template
- func UpdatedAtGT(v time.Time) predicate.Template
- func UpdatedAtGTE(v time.Time) predicate.Template
- func UpdatedAtIn(vs ...time.Time) predicate.Template
- func UpdatedAtIsNil() predicate.Template
- func UpdatedAtLT(v time.Time) predicate.Template
- func UpdatedAtLTE(v time.Time) predicate.Template
- func UpdatedAtNEQ(v time.Time) predicate.Template
- func UpdatedAtNotIn(vs ...time.Time) predicate.Template
- func UpdatedAtNotNil() predicate.Template
- func UpdatedBy(v string) predicate.Template
- func UpdatedByContains(v string) predicate.Template
- func UpdatedByContainsFold(v string) predicate.Template
- func UpdatedByEQ(v string) predicate.Template
- func UpdatedByEqualFold(v string) predicate.Template
- func UpdatedByGT(v string) predicate.Template
- func UpdatedByGTE(v string) predicate.Template
- func UpdatedByHasPrefix(v string) predicate.Template
- func UpdatedByHasSuffix(v string) predicate.Template
- func UpdatedByIn(vs ...string) predicate.Template
- func UpdatedByIsNil() predicate.Template
- func UpdatedByLT(v string) predicate.Template
- func UpdatedByLTE(v string) predicate.Template
- func UpdatedByNEQ(v string) predicate.Template
- func UpdatedByNotIn(vs ...string) predicate.Template
- func UpdatedByNotNil() predicate.Template
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInternalNotes(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func BySystemInternalID(opts ...sql.OrderTermOption) OrderOption
- func BySystemOwned(opts ...sql.OrderTermOption) OrderOption
- func ByTemplateType(opts ...sql.OrderTermOption) OrderOption
- func ByTrustCenterField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTrustCenterID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the template type in the database. Label = "template" // 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" // FieldSystemOwned holds the string denoting the system_owned field in the database. FieldSystemOwned = "system_owned" // FieldInternalNotes holds the string denoting the internal_notes field in the database. FieldInternalNotes = "internal_notes" // FieldSystemInternalID holds the string denoting the system_internal_id field in the database. FieldSystemInternalID = "system_internal_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldTemplateType holds the string denoting the template_type field in the database. FieldTemplateType = "template_type" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // 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" // FieldTrustCenterID holds the string denoting the trust_center_id field in the database. FieldTrustCenterID = "trust_center_id" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeDocuments holds the string denoting the documents edge name in mutations. EdgeDocuments = "documents" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeTrustCenter holds the string denoting the trust_center edge name in mutations. EdgeTrustCenter = "trust_center" // Table holds the table name of the template in the database. Table = "templates" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "templates" // 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" // DocumentsTable is the table that holds the documents relation/edge. DocumentsTable = "document_data" // DocumentsInverseTable is the table name for the DocumentData entity. // It exists in this package in order to avoid circular dependency with the "documentdata" package. DocumentsInverseTable = "document_data" // DocumentsColumn is the table column denoting the documents relation/edge. DocumentsColumn = "template_id" // FilesTable is the table that holds the files relation/edge. The primary key declared below. FilesTable = "template_files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // TrustCenterTable is the table that holds the trust_center relation/edge. TrustCenterTable = "templates" // TrustCenterInverseTable is the table name for the TrustCenter entity. // It exists in this package in order to avoid circular dependency with the "trustcenter" package. TrustCenterInverseTable = "trust_centers" // TrustCenterColumn is the table column denoting the trust_center relation/edge. TrustCenterColumn = "trust_center_id" )
const DefaultKind enums.TemplateKind = "QUESTIONNAIRE"
const DefaultTemplateType enums.DocumentType = "DOCUMENT"
Variables ¶
var ( Hooks [10]ent.Hook Interceptors [4]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 // DefaultSystemOwned holds the default value on creation for the "system_owned" field. DefaultSystemOwned bool // 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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldTags, FieldOwnerID, FieldSystemOwned, FieldInternalNotes, FieldSystemInternalID, FieldName, FieldTemplateType, FieldDescription, FieldKind, FieldJsonconfig, FieldUischema, FieldTrustCenterID, }
Columns holds all SQL columns for template fields.
var ( // FilesPrimaryKey and FilesColumn2 are the table columns denoting the // primary key for the files relation (M2M). FilesPrimaryKey = []string{"template_id", "file_id"} )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" 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 DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasDocuments ¶
HasDocuments applies the HasEdge predicate on the "documents" edge.
func HasDocumentsWith ¶
func HasDocumentsWith(preds ...predicate.DocumentData) predicate.Template
HasDocumentsWith applies the HasEdge predicate on the "documents" edge with a given conditions (other predicates).
func HasFilesWith ¶ added in v0.3.0
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Template
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasTrustCenter ¶ added in v0.34.1
HasTrustCenter applies the HasEdge predicate on the "trust_center" edge.
func HasTrustCenterWith ¶ added in v0.34.1
func HasTrustCenterWith(preds ...predicate.TrustCenter) predicate.Template
HasTrustCenterWith applies the HasEdge predicate on the "trust_center" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func InternalNotes ¶ added in v0.34.0
InternalNotes applies equality check predicate on the "internal_notes" field. It's identical to InternalNotesEQ.
func InternalNotesContains ¶ added in v0.34.0
InternalNotesContains applies the Contains predicate on the "internal_notes" field.
func InternalNotesContainsFold ¶ added in v0.34.0
InternalNotesContainsFold applies the ContainsFold predicate on the "internal_notes" field.
func InternalNotesEQ ¶ added in v0.34.0
InternalNotesEQ applies the EQ predicate on the "internal_notes" field.
func InternalNotesEqualFold ¶ added in v0.34.0
InternalNotesEqualFold applies the EqualFold predicate on the "internal_notes" field.
func InternalNotesGT ¶ added in v0.34.0
InternalNotesGT applies the GT predicate on the "internal_notes" field.
func InternalNotesGTE ¶ added in v0.34.0
InternalNotesGTE applies the GTE predicate on the "internal_notes" field.
func InternalNotesHasPrefix ¶ added in v0.34.0
InternalNotesHasPrefix applies the HasPrefix predicate on the "internal_notes" field.
func InternalNotesHasSuffix ¶ added in v0.34.0
InternalNotesHasSuffix applies the HasSuffix predicate on the "internal_notes" field.
func InternalNotesIn ¶ added in v0.34.0
InternalNotesIn applies the In predicate on the "internal_notes" field.
func InternalNotesIsNil ¶ added in v0.34.0
InternalNotesIsNil applies the IsNil predicate on the "internal_notes" field.
func InternalNotesLT ¶ added in v0.34.0
InternalNotesLT applies the LT predicate on the "internal_notes" field.
func InternalNotesLTE ¶ added in v0.34.0
InternalNotesLTE applies the LTE predicate on the "internal_notes" field.
func InternalNotesNEQ ¶ added in v0.34.0
InternalNotesNEQ applies the NEQ predicate on the "internal_notes" field.
func InternalNotesNotIn ¶ added in v0.34.0
InternalNotesNotIn applies the NotIn predicate on the "internal_notes" field.
func InternalNotesNotNil ¶ added in v0.34.0
InternalNotesNotNil applies the NotNil predicate on the "internal_notes" field.
func KindEQ ¶ added in v0.32.0
func KindEQ(v enums.TemplateKind) predicate.Template
KindEQ applies the EQ predicate on the "kind" field.
func KindIn ¶ added in v0.32.0
func KindIn(vs ...enums.TemplateKind) predicate.Template
KindIn applies the In predicate on the "kind" field.
func KindNEQ ¶ added in v0.32.0
func KindNEQ(v enums.TemplateKind) predicate.Template
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶ added in v0.32.0
func KindNotIn(vs ...enums.TemplateKind) predicate.Template
KindNotIn applies the NotIn predicate on the "kind" field.
func KindNotNil ¶ added in v0.32.0
KindNotNil applies the NotNil predicate on the "kind" field.
func KindValidator ¶ added in v0.32.0
func KindValidator(k enums.TemplateKind) error
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
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 OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIsNil ¶
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func SystemInternalID ¶ added in v0.34.0
SystemInternalID applies equality check predicate on the "system_internal_id" field. It's identical to SystemInternalIDEQ.
func SystemInternalIDContains ¶ added in v0.34.0
SystemInternalIDContains applies the Contains predicate on the "system_internal_id" field.
func SystemInternalIDContainsFold ¶ added in v0.34.0
SystemInternalIDContainsFold applies the ContainsFold predicate on the "system_internal_id" field.
func SystemInternalIDEQ ¶ added in v0.34.0
SystemInternalIDEQ applies the EQ predicate on the "system_internal_id" field.
func SystemInternalIDEqualFold ¶ added in v0.34.0
SystemInternalIDEqualFold applies the EqualFold predicate on the "system_internal_id" field.
func SystemInternalIDGT ¶ added in v0.34.0
SystemInternalIDGT applies the GT predicate on the "system_internal_id" field.
func SystemInternalIDGTE ¶ added in v0.34.0
SystemInternalIDGTE applies the GTE predicate on the "system_internal_id" field.
func SystemInternalIDHasPrefix ¶ added in v0.34.0
SystemInternalIDHasPrefix applies the HasPrefix predicate on the "system_internal_id" field.
func SystemInternalIDHasSuffix ¶ added in v0.34.0
SystemInternalIDHasSuffix applies the HasSuffix predicate on the "system_internal_id" field.
func SystemInternalIDIn ¶ added in v0.34.0
SystemInternalIDIn applies the In predicate on the "system_internal_id" field.
func SystemInternalIDIsNil ¶ added in v0.34.0
SystemInternalIDIsNil applies the IsNil predicate on the "system_internal_id" field.
func SystemInternalIDLT ¶ added in v0.34.0
SystemInternalIDLT applies the LT predicate on the "system_internal_id" field.
func SystemInternalIDLTE ¶ added in v0.34.0
SystemInternalIDLTE applies the LTE predicate on the "system_internal_id" field.
func SystemInternalIDNEQ ¶ added in v0.34.0
SystemInternalIDNEQ applies the NEQ predicate on the "system_internal_id" field.
func SystemInternalIDNotIn ¶ added in v0.34.0
SystemInternalIDNotIn applies the NotIn predicate on the "system_internal_id" field.
func SystemInternalIDNotNil ¶ added in v0.34.0
SystemInternalIDNotNil applies the NotNil predicate on the "system_internal_id" field.
func SystemOwned ¶ added in v0.34.0
SystemOwned applies equality check predicate on the "system_owned" field. It's identical to SystemOwnedEQ.
func SystemOwnedEQ ¶ added in v0.34.0
SystemOwnedEQ applies the EQ predicate on the "system_owned" field.
func SystemOwnedIsNil ¶ added in v0.34.0
SystemOwnedIsNil applies the IsNil predicate on the "system_owned" field.
func SystemOwnedNEQ ¶ added in v0.34.0
SystemOwnedNEQ applies the NEQ predicate on the "system_owned" field.
func SystemOwnedNotNil ¶ added in v0.34.0
SystemOwnedNotNil applies the NotNil predicate on the "system_owned" field.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func TemplateTypeEQ ¶
func TemplateTypeEQ(v enums.DocumentType) predicate.Template
TemplateTypeEQ applies the EQ predicate on the "template_type" field.
func TemplateTypeIn ¶
func TemplateTypeIn(vs ...enums.DocumentType) predicate.Template
TemplateTypeIn applies the In predicate on the "template_type" field.
func TemplateTypeNEQ ¶
func TemplateTypeNEQ(v enums.DocumentType) predicate.Template
TemplateTypeNEQ applies the NEQ predicate on the "template_type" field.
func TemplateTypeNotIn ¶
func TemplateTypeNotIn(vs ...enums.DocumentType) predicate.Template
TemplateTypeNotIn applies the NotIn predicate on the "template_type" field.
func TemplateTypeValidator ¶
func TemplateTypeValidator(tt enums.DocumentType) error
TemplateTypeValidator is a validator for the "template_type" field enum values. It is called by the builders before save.
func TrustCenterID ¶ added in v0.34.1
TrustCenterID applies equality check predicate on the "trust_center_id" field. It's identical to TrustCenterIDEQ.
func TrustCenterIDContains ¶ added in v0.34.1
TrustCenterIDContains applies the Contains predicate on the "trust_center_id" field.
func TrustCenterIDContainsFold ¶ added in v0.34.1
TrustCenterIDContainsFold applies the ContainsFold predicate on the "trust_center_id" field.
func TrustCenterIDEQ ¶ added in v0.34.1
TrustCenterIDEQ applies the EQ predicate on the "trust_center_id" field.
func TrustCenterIDEqualFold ¶ added in v0.34.1
TrustCenterIDEqualFold applies the EqualFold predicate on the "trust_center_id" field.
func TrustCenterIDGT ¶ added in v0.34.1
TrustCenterIDGT applies the GT predicate on the "trust_center_id" field.
func TrustCenterIDGTE ¶ added in v0.34.1
TrustCenterIDGTE applies the GTE predicate on the "trust_center_id" field.
func TrustCenterIDHasPrefix ¶ added in v0.34.1
TrustCenterIDHasPrefix applies the HasPrefix predicate on the "trust_center_id" field.
func TrustCenterIDHasSuffix ¶ added in v0.34.1
TrustCenterIDHasSuffix applies the HasSuffix predicate on the "trust_center_id" field.
func TrustCenterIDIn ¶ added in v0.34.1
TrustCenterIDIn applies the In predicate on the "trust_center_id" field.
func TrustCenterIDIsNil ¶ added in v0.34.1
TrustCenterIDIsNil applies the IsNil predicate on the "trust_center_id" field.
func TrustCenterIDLT ¶ added in v0.34.1
TrustCenterIDLT applies the LT predicate on the "trust_center_id" field.
func TrustCenterIDLTE ¶ added in v0.34.1
TrustCenterIDLTE applies the LTE predicate on the "trust_center_id" field.
func TrustCenterIDNEQ ¶ added in v0.34.1
TrustCenterIDNEQ applies the NEQ predicate on the "trust_center_id" field.
func TrustCenterIDNotIn ¶ added in v0.34.1
TrustCenterIDNotIn applies the NotIn predicate on the "trust_center_id" field.
func TrustCenterIDNotNil ¶ added in v0.34.1
TrustCenterIDNotNil applies the NotNil predicate on the "trust_center_id" field.
func UischemaIsNil ¶
UischemaIsNil applies the IsNil predicate on the "uischema" field.
func UischemaNotNil ¶
UischemaNotNil applies the NotNil predicate on the "uischema" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 Template queries.
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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByDocuments ¶
func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDocuments orders the results by documents terms.
func ByDocumentsCount ¶
func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption
ByDocumentsCount orders the results by documents count.
func ByFiles ¶ added in v0.3.0
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶ added in v0.3.0
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInternalNotes ¶ added in v0.34.0
func ByInternalNotes(opts ...sql.OrderTermOption) OrderOption
ByInternalNotes orders the results by the internal_notes field.
func ByKind ¶ added in v0.32.0
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
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 BySystemInternalID ¶ added in v0.34.0
func BySystemInternalID(opts ...sql.OrderTermOption) OrderOption
BySystemInternalID orders the results by the system_internal_id field.
func BySystemOwned ¶ added in v0.34.0
func BySystemOwned(opts ...sql.OrderTermOption) OrderOption
BySystemOwned orders the results by the system_owned field.
func ByTemplateType ¶
func ByTemplateType(opts ...sql.OrderTermOption) OrderOption
ByTemplateType orders the results by the template_type field.
func ByTrustCenterField ¶ added in v0.34.1
func ByTrustCenterField(field string, opts ...sql.OrderTermOption) OrderOption
ByTrustCenterField orders the results by trust_center field.
func ByTrustCenterID ¶ added in v0.34.1
func ByTrustCenterID(opts ...sql.OrderTermOption) OrderOption
ByTrustCenterID orders the results by the trust_center_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.