Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Entity) predicate.Entity
- func CreatedAt(v time.Time) predicate.Entity
- func CreatedAtEQ(v time.Time) predicate.Entity
- func CreatedAtGT(v time.Time) predicate.Entity
- func CreatedAtGTE(v time.Time) predicate.Entity
- func CreatedAtIn(vs ...time.Time) predicate.Entity
- func CreatedAtIsNil() predicate.Entity
- func CreatedAtLT(v time.Time) predicate.Entity
- func CreatedAtLTE(v time.Time) predicate.Entity
- func CreatedAtNEQ(v time.Time) predicate.Entity
- func CreatedAtNotIn(vs ...time.Time) predicate.Entity
- func CreatedAtNotNil() predicate.Entity
- func CreatedBy(v string) predicate.Entity
- func CreatedByContains(v string) predicate.Entity
- func CreatedByContainsFold(v string) predicate.Entity
- func CreatedByEQ(v string) predicate.Entity
- func CreatedByEqualFold(v string) predicate.Entity
- func CreatedByGT(v string) predicate.Entity
- func CreatedByGTE(v string) predicate.Entity
- func CreatedByHasPrefix(v string) predicate.Entity
- func CreatedByHasSuffix(v string) predicate.Entity
- func CreatedByIn(vs ...string) predicate.Entity
- func CreatedByIsNil() predicate.Entity
- func CreatedByLT(v string) predicate.Entity
- func CreatedByLTE(v string) predicate.Entity
- func CreatedByNEQ(v string) predicate.Entity
- func CreatedByNotIn(vs ...string) predicate.Entity
- func CreatedByNotNil() predicate.Entity
- func DeletedAt(v time.Time) predicate.Entity
- func DeletedAtEQ(v time.Time) predicate.Entity
- func DeletedAtGT(v time.Time) predicate.Entity
- func DeletedAtGTE(v time.Time) predicate.Entity
- func DeletedAtIn(vs ...time.Time) predicate.Entity
- func DeletedAtIsNil() predicate.Entity
- func DeletedAtLT(v time.Time) predicate.Entity
- func DeletedAtLTE(v time.Time) predicate.Entity
- func DeletedAtNEQ(v time.Time) predicate.Entity
- func DeletedAtNotIn(vs ...time.Time) predicate.Entity
- func DeletedAtNotNil() predicate.Entity
- func DeletedBy(v string) predicate.Entity
- func DeletedByContains(v string) predicate.Entity
- func DeletedByContainsFold(v string) predicate.Entity
- func DeletedByEQ(v string) predicate.Entity
- func DeletedByEqualFold(v string) predicate.Entity
- func DeletedByGT(v string) predicate.Entity
- func DeletedByGTE(v string) predicate.Entity
- func DeletedByHasPrefix(v string) predicate.Entity
- func DeletedByHasSuffix(v string) predicate.Entity
- func DeletedByIn(vs ...string) predicate.Entity
- func DeletedByIsNil() predicate.Entity
- func DeletedByLT(v string) predicate.Entity
- func DeletedByLTE(v string) predicate.Entity
- func DeletedByNEQ(v string) predicate.Entity
- func DeletedByNotIn(vs ...string) predicate.Entity
- func DeletedByNotNil() predicate.Entity
- func Description(v string) predicate.Entity
- func DescriptionContains(v string) predicate.Entity
- func DescriptionContainsFold(v string) predicate.Entity
- func DescriptionEQ(v string) predicate.Entity
- func DescriptionEqualFold(v string) predicate.Entity
- func DescriptionGT(v string) predicate.Entity
- func DescriptionGTE(v string) predicate.Entity
- func DescriptionHasPrefix(v string) predicate.Entity
- func DescriptionHasSuffix(v string) predicate.Entity
- func DescriptionIn(vs ...string) predicate.Entity
- func DescriptionIsNil() predicate.Entity
- func DescriptionLT(v string) predicate.Entity
- func DescriptionLTE(v string) predicate.Entity
- func DescriptionNEQ(v string) predicate.Entity
- func DescriptionNotIn(vs ...string) predicate.Entity
- func DescriptionNotNil() predicate.Entity
- func DisplayName(v string) predicate.Entity
- func DisplayNameContains(v string) predicate.Entity
- func DisplayNameContainsFold(v string) predicate.Entity
- func DisplayNameEQ(v string) predicate.Entity
- func DisplayNameEqualFold(v string) predicate.Entity
- func DisplayNameGT(v string) predicate.Entity
- func DisplayNameGTE(v string) predicate.Entity
- func DisplayNameHasPrefix(v string) predicate.Entity
- func DisplayNameHasSuffix(v string) predicate.Entity
- func DisplayNameIn(vs ...string) predicate.Entity
- func DisplayNameIsNil() predicate.Entity
- func DisplayNameLT(v string) predicate.Entity
- func DisplayNameLTE(v string) predicate.Entity
- func DisplayNameNEQ(v string) predicate.Entity
- func DisplayNameNotIn(vs ...string) predicate.Entity
- func DisplayNameNotNil() predicate.Entity
- func DomainsIsNil() predicate.Entity
- func DomainsNotNil() predicate.Entity
- func EntityTypeID(v string) predicate.Entity
- func EntityTypeIDContains(v string) predicate.Entity
- func EntityTypeIDContainsFold(v string) predicate.Entity
- func EntityTypeIDEQ(v string) predicate.Entity
- func EntityTypeIDEqualFold(v string) predicate.Entity
- func EntityTypeIDGT(v string) predicate.Entity
- func EntityTypeIDGTE(v string) predicate.Entity
- func EntityTypeIDHasPrefix(v string) predicate.Entity
- func EntityTypeIDHasSuffix(v string) predicate.Entity
- func EntityTypeIDIn(vs ...string) predicate.Entity
- func EntityTypeIDIsNil() predicate.Entity
- func EntityTypeIDLT(v string) predicate.Entity
- func EntityTypeIDLTE(v string) predicate.Entity
- func EntityTypeIDNEQ(v string) predicate.Entity
- func EntityTypeIDNotIn(vs ...string) predicate.Entity
- func EntityTypeIDNotNil() predicate.Entity
- func HasContacts() predicate.Entity
- func HasContactsWith(preds ...predicate.Contact) predicate.Entity
- func HasDocuments() predicate.Entity
- func HasDocumentsWith(preds ...predicate.DocumentData) predicate.Entity
- func HasEntityType() predicate.Entity
- func HasEntityTypeWith(preds ...predicate.EntityType) predicate.Entity
- func HasFiles() predicate.Entity
- func HasFilesWith(preds ...predicate.File) predicate.Entity
- func HasNotes() predicate.Entity
- func HasNotesWith(preds ...predicate.Note) predicate.Entity
- func HasOwner() predicate.Entity
- func HasOwnerWith(preds ...predicate.Organization) predicate.Entity
- func ID(id string) predicate.Entity
- func IDContainsFold(id string) predicate.Entity
- func IDEQ(id string) predicate.Entity
- func IDEqualFold(id string) predicate.Entity
- func IDGT(id string) predicate.Entity
- func IDGTE(id string) predicate.Entity
- func IDIn(ids ...string) predicate.Entity
- func IDLT(id string) predicate.Entity
- func IDLTE(id string) predicate.Entity
- func IDNEQ(id string) predicate.Entity
- func IDNotIn(ids ...string) predicate.Entity
- func MappingID(v string) predicate.Entity
- func MappingIDContains(v string) predicate.Entity
- func MappingIDContainsFold(v string) predicate.Entity
- func MappingIDEQ(v string) predicate.Entity
- func MappingIDEqualFold(v string) predicate.Entity
- func MappingIDGT(v string) predicate.Entity
- func MappingIDGTE(v string) predicate.Entity
- func MappingIDHasPrefix(v string) predicate.Entity
- func MappingIDHasSuffix(v string) predicate.Entity
- func MappingIDIn(vs ...string) predicate.Entity
- func MappingIDLT(v string) predicate.Entity
- func MappingIDLTE(v string) predicate.Entity
- func MappingIDNEQ(v string) predicate.Entity
- func MappingIDNotIn(vs ...string) predicate.Entity
- func Name(v string) predicate.Entity
- func NameContains(v string) predicate.Entity
- func NameContainsFold(v string) predicate.Entity
- func NameEQ(v string) predicate.Entity
- func NameEqualFold(v string) predicate.Entity
- func NameGT(v string) predicate.Entity
- func NameGTE(v string) predicate.Entity
- func NameHasPrefix(v string) predicate.Entity
- func NameHasSuffix(v string) predicate.Entity
- func NameIn(vs ...string) predicate.Entity
- func NameIsNil() predicate.Entity
- func NameLT(v string) predicate.Entity
- func NameLTE(v string) predicate.Entity
- func NameNEQ(v string) predicate.Entity
- func NameNotIn(vs ...string) predicate.Entity
- func NameNotNil() predicate.Entity
- func Not(p predicate.Entity) predicate.Entity
- func Or(predicates ...predicate.Entity) predicate.Entity
- func OwnerID(v string) predicate.Entity
- func OwnerIDContains(v string) predicate.Entity
- func OwnerIDContainsFold(v string) predicate.Entity
- func OwnerIDEQ(v string) predicate.Entity
- func OwnerIDEqualFold(v string) predicate.Entity
- func OwnerIDGT(v string) predicate.Entity
- func OwnerIDGTE(v string) predicate.Entity
- func OwnerIDHasPrefix(v string) predicate.Entity
- func OwnerIDHasSuffix(v string) predicate.Entity
- func OwnerIDIn(vs ...string) predicate.Entity
- func OwnerIDIsNil() predicate.Entity
- func OwnerIDLT(v string) predicate.Entity
- func OwnerIDLTE(v string) predicate.Entity
- func OwnerIDNEQ(v string) predicate.Entity
- func OwnerIDNotIn(vs ...string) predicate.Entity
- func OwnerIDNotNil() predicate.Entity
- func Status(v string) predicate.Entity
- func StatusContains(v string) predicate.Entity
- func StatusContainsFold(v string) predicate.Entity
- func StatusEQ(v string) predicate.Entity
- func StatusEqualFold(v string) predicate.Entity
- func StatusGT(v string) predicate.Entity
- func StatusGTE(v string) predicate.Entity
- func StatusHasPrefix(v string) predicate.Entity
- func StatusHasSuffix(v string) predicate.Entity
- func StatusIn(vs ...string) predicate.Entity
- func StatusIsNil() predicate.Entity
- func StatusLT(v string) predicate.Entity
- func StatusLTE(v string) predicate.Entity
- func StatusNEQ(v string) predicate.Entity
- func StatusNotIn(vs ...string) predicate.Entity
- func StatusNotNil() predicate.Entity
- func TagsIsNil() predicate.Entity
- func TagsNotNil() predicate.Entity
- func UpdatedAt(v time.Time) predicate.Entity
- func UpdatedAtEQ(v time.Time) predicate.Entity
- func UpdatedAtGT(v time.Time) predicate.Entity
- func UpdatedAtGTE(v time.Time) predicate.Entity
- func UpdatedAtIn(vs ...time.Time) predicate.Entity
- func UpdatedAtIsNil() predicate.Entity
- func UpdatedAtLT(v time.Time) predicate.Entity
- func UpdatedAtLTE(v time.Time) predicate.Entity
- func UpdatedAtNEQ(v time.Time) predicate.Entity
- func UpdatedAtNotIn(vs ...time.Time) predicate.Entity
- func UpdatedAtNotNil() predicate.Entity
- func UpdatedBy(v string) predicate.Entity
- func UpdatedByContains(v string) predicate.Entity
- func UpdatedByContainsFold(v string) predicate.Entity
- func UpdatedByEQ(v string) predicate.Entity
- func UpdatedByEqualFold(v string) predicate.Entity
- func UpdatedByGT(v string) predicate.Entity
- func UpdatedByGTE(v string) predicate.Entity
- func UpdatedByHasPrefix(v string) predicate.Entity
- func UpdatedByHasSuffix(v string) predicate.Entity
- func UpdatedByIn(vs ...string) predicate.Entity
- func UpdatedByIsNil() predicate.Entity
- func UpdatedByLT(v string) predicate.Entity
- func UpdatedByLTE(v string) predicate.Entity
- func UpdatedByNEQ(v string) predicate.Entity
- func UpdatedByNotIn(vs ...string) predicate.Entity
- func UpdatedByNotNil() predicate.Entity
- func ValidColumn(column string) bool
- type OrderOption
- func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByContactsCount(opts ...sql.OrderTermOption) 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 ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByDocuments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDocumentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEntityTypeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEntityTypeID(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 ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(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 entity type in the database. Label = "entity" // 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" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // 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" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldDomains holds the string denoting the domains field in the database. FieldDomains = "domains" // FieldEntityTypeID holds the string denoting the entity_type_id field in the database. FieldEntityTypeID = "entity_type_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeContacts holds the string denoting the contacts edge name in mutations. EdgeContacts = "contacts" // EdgeDocuments holds the string denoting the documents edge name in mutations. EdgeDocuments = "documents" // EdgeNotes holds the string denoting the notes edge name in mutations. EdgeNotes = "notes" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeEntityType holds the string denoting the entity_type edge name in mutations. EdgeEntityType = "entity_type" // Table holds the table name of the entity in the database. Table = "entities" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "entities" // 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" // ContactsTable is the table that holds the contacts relation/edge. The primary key declared below. ContactsTable = "entity_contacts" // ContactsInverseTable is the table name for the Contact entity. // It exists in this package in order to avoid circular dependency with the "contact" package. ContactsInverseTable = "contacts" // DocumentsTable is the table that holds the documents relation/edge. The primary key declared below. DocumentsTable = "entity_documents" // 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" // NotesTable is the table that holds the notes relation/edge. NotesTable = "notes" // NotesInverseTable is the table name for the Note entity. // It exists in this package in order to avoid circular dependency with the "note" package. NotesInverseTable = "notes" // NotesColumn is the table column denoting the notes relation/edge. NotesColumn = "entity_notes" // FilesTable is the table that holds the files relation/edge. The primary key declared below. FilesTable = "entity_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" // EntityTypeTable is the table that holds the entity_type relation/edge. EntityTypeTable = "entities" // EntityTypeInverseTable is the table name for the EntityType entity. // It exists in this package in order to avoid circular dependency with the "entitytype" package. EntityTypeInverseTable = "entity_types" // EntityTypeColumn is the table column denoting the entity_type relation/edge. EntityTypeColumn = "entity_type_id" )
Variables ¶
var ( // ContactsPrimaryKey and ContactsColumn2 are the table columns denoting the // primary key for the contacts relation (M2M). ContactsPrimaryKey = []string{"entity_id", "contact_id"} // DocumentsPrimaryKey and DocumentsColumn2 are the table columns denoting the // primary key for the documents relation (M2M). DocumentsPrimaryKey = []string{"entity_id", "document_data_id"} // FilesPrimaryKey and FilesColumn2 are the table columns denoting the // primary key for the files relation (M2M). FilesPrimaryKey = []string{"entity_id", "file_id"} )
var ( Hooks [5]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 // DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save. DisplayNameValidator func(string) error // DomainsValidator is a validator for the "domains" field. It is called by the builders before save. DomainsValidator func([]string) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // 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, FieldMappingID, FieldDeletedAt, FieldDeletedBy, FieldTags, FieldOwnerID, FieldName, FieldDisplayName, FieldDescription, FieldDomains, FieldEntityTypeID, FieldStatus, }
Columns holds all SQL columns for entity fields.
var ForeignKeys = []string{
"entity_type_entities",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "entities" table and are not defined as standalone fields in the schema.
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 DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameIsNil ¶
DisplayNameIsNil applies the IsNil predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" field.
func DisplayNameNotNil ¶
DisplayNameNotNil applies the NotNil predicate on the "display_name" field.
func DomainsIsNil ¶
DomainsIsNil applies the IsNil predicate on the "domains" field.
func DomainsNotNil ¶
DomainsNotNil applies the NotNil predicate on the "domains" field.
func EntityTypeID ¶
EntityTypeID applies equality check predicate on the "entity_type_id" field. It's identical to EntityTypeIDEQ.
func EntityTypeIDContains ¶
EntityTypeIDContains applies the Contains predicate on the "entity_type_id" field.
func EntityTypeIDContainsFold ¶
EntityTypeIDContainsFold applies the ContainsFold predicate on the "entity_type_id" field.
func EntityTypeIDEQ ¶
EntityTypeIDEQ applies the EQ predicate on the "entity_type_id" field.
func EntityTypeIDEqualFold ¶
EntityTypeIDEqualFold applies the EqualFold predicate on the "entity_type_id" field.
func EntityTypeIDGT ¶
EntityTypeIDGT applies the GT predicate on the "entity_type_id" field.
func EntityTypeIDGTE ¶
EntityTypeIDGTE applies the GTE predicate on the "entity_type_id" field.
func EntityTypeIDHasPrefix ¶
EntityTypeIDHasPrefix applies the HasPrefix predicate on the "entity_type_id" field.
func EntityTypeIDHasSuffix ¶
EntityTypeIDHasSuffix applies the HasSuffix predicate on the "entity_type_id" field.
func EntityTypeIDIn ¶
EntityTypeIDIn applies the In predicate on the "entity_type_id" field.
func EntityTypeIDIsNil ¶
EntityTypeIDIsNil applies the IsNil predicate on the "entity_type_id" field.
func EntityTypeIDLT ¶
EntityTypeIDLT applies the LT predicate on the "entity_type_id" field.
func EntityTypeIDLTE ¶
EntityTypeIDLTE applies the LTE predicate on the "entity_type_id" field.
func EntityTypeIDNEQ ¶
EntityTypeIDNEQ applies the NEQ predicate on the "entity_type_id" field.
func EntityTypeIDNotIn ¶
EntityTypeIDNotIn applies the NotIn predicate on the "entity_type_id" field.
func EntityTypeIDNotNil ¶
EntityTypeIDNotNil applies the NotNil predicate on the "entity_type_id" field.
func HasContacts ¶
HasContacts applies the HasEdge predicate on the "contacts" edge.
func HasContactsWith ¶
HasContactsWith applies the HasEdge predicate on the "contacts" edge with a given conditions (other predicates).
func HasDocuments ¶
HasDocuments applies the HasEdge predicate on the "documents" edge.
func HasDocumentsWith ¶
func HasDocumentsWith(preds ...predicate.DocumentData) predicate.Entity
HasDocumentsWith applies the HasEdge predicate on the "documents" edge with a given conditions (other predicates).
func HasEntityType ¶
HasEntityType applies the HasEdge predicate on the "entity_type" edge.
func HasEntityTypeWith ¶
func HasEntityTypeWith(preds ...predicate.EntityType) predicate.Entity
HasEntityTypeWith applies the HasEdge predicate on the "entity_type" edge with a given conditions (other predicates).
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasNotesWith ¶
HasNotesWith applies the HasEdge predicate on the "notes" edge with a given conditions (other predicates).
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Entity
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 NameNotNil ¶
NameNotNil applies the NotNil 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 Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" 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 Entity queries.
func ByContacts ¶
func ByContacts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByContacts orders the results by contacts terms.
func ByContactsCount ¶
func ByContactsCount(opts ...sql.OrderTermOption) OrderOption
ByContactsCount orders the results by contacts 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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name 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 ByEntityTypeField ¶
func ByEntityTypeField(field string, opts ...sql.OrderTermOption) OrderOption
ByEntityTypeField orders the results by entity_type field.
func ByEntityTypeID ¶
func ByEntityTypeID(opts ...sql.OrderTermOption) OrderOption
ByEntityTypeID orders the results by the entity_type_id field.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
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 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 ByNotes ¶
func ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNotes orders the results by notes terms.
func ByNotesCount ¶
func ByNotesCount(opts ...sql.OrderTermOption) OrderOption
ByNotesCount orders the results by notes count.
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 ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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.