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 HasOwner() predicate.Template
- func HasOwnerWith(preds ...predicate.Organization) 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 MappingID(v string) predicate.Template
- func MappingIDContains(v string) predicate.Template
- func MappingIDContainsFold(v string) predicate.Template
- func MappingIDEQ(v string) predicate.Template
- func MappingIDEqualFold(v string) predicate.Template
- func MappingIDGT(v string) predicate.Template
- func MappingIDGTE(v string) predicate.Template
- func MappingIDHasPrefix(v string) predicate.Template
- func MappingIDHasSuffix(v string) predicate.Template
- func MappingIDIn(vs ...string) predicate.Template
- func MappingIDLT(v string) predicate.Template
- func MappingIDLTE(v string) predicate.Template
- func MappingIDNEQ(v string) predicate.Template
- func MappingIDNotIn(vs ...string) predicate.Template
- 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 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 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 ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(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 ByTemplateType(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" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // 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" // 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" // 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" // 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" // 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" )
const DefaultTemplateType enums.DocumentType = "DOCUMENT"
Variables ¶
var ( Hooks [4]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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // 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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldMappingID, FieldTags, FieldOwnerID, FieldName, FieldTemplateType, FieldDescription, FieldJsonconfig, FieldUischema, }
Columns holds all SQL columns for template fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func 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 HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Template
HasOwnerWith applies the HasEdge predicate on the "owner" 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 MappingID ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" 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 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 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 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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id 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 ByTemplateType ¶
func ByTemplateType(opts ...sql.OrderTermOption) OrderOption
ByTemplateType orders the results by the template_type 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.