Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Discussion) predicate.Discussion
- func CreatedAt(v time.Time) predicate.Discussion
- func CreatedAtEQ(v time.Time) predicate.Discussion
- func CreatedAtGT(v time.Time) predicate.Discussion
- func CreatedAtGTE(v time.Time) predicate.Discussion
- func CreatedAtIn(vs ...time.Time) predicate.Discussion
- func CreatedAtIsNil() predicate.Discussion
- func CreatedAtLT(v time.Time) predicate.Discussion
- func CreatedAtLTE(v time.Time) predicate.Discussion
- func CreatedAtNEQ(v time.Time) predicate.Discussion
- func CreatedAtNotIn(vs ...time.Time) predicate.Discussion
- func CreatedAtNotNil() predicate.Discussion
- func CreatedBy(v string) predicate.Discussion
- func CreatedByContains(v string) predicate.Discussion
- func CreatedByContainsFold(v string) predicate.Discussion
- func CreatedByEQ(v string) predicate.Discussion
- func CreatedByEqualFold(v string) predicate.Discussion
- func CreatedByGT(v string) predicate.Discussion
- func CreatedByGTE(v string) predicate.Discussion
- func CreatedByHasPrefix(v string) predicate.Discussion
- func CreatedByHasSuffix(v string) predicate.Discussion
- func CreatedByIn(vs ...string) predicate.Discussion
- func CreatedByIsNil() predicate.Discussion
- func CreatedByLT(v string) predicate.Discussion
- func CreatedByLTE(v string) predicate.Discussion
- func CreatedByNEQ(v string) predicate.Discussion
- func CreatedByNotIn(vs ...string) predicate.Discussion
- func CreatedByNotNil() predicate.Discussion
- func DeletedAt(v time.Time) predicate.Discussion
- func DeletedAtEQ(v time.Time) predicate.Discussion
- func DeletedAtGT(v time.Time) predicate.Discussion
- func DeletedAtGTE(v time.Time) predicate.Discussion
- func DeletedAtIn(vs ...time.Time) predicate.Discussion
- func DeletedAtIsNil() predicate.Discussion
- func DeletedAtLT(v time.Time) predicate.Discussion
- func DeletedAtLTE(v time.Time) predicate.Discussion
- func DeletedAtNEQ(v time.Time) predicate.Discussion
- func DeletedAtNotIn(vs ...time.Time) predicate.Discussion
- func DeletedAtNotNil() predicate.Discussion
- func DeletedBy(v string) predicate.Discussion
- func DeletedByContains(v string) predicate.Discussion
- func DeletedByContainsFold(v string) predicate.Discussion
- func DeletedByEQ(v string) predicate.Discussion
- func DeletedByEqualFold(v string) predicate.Discussion
- func DeletedByGT(v string) predicate.Discussion
- func DeletedByGTE(v string) predicate.Discussion
- func DeletedByHasPrefix(v string) predicate.Discussion
- func DeletedByHasSuffix(v string) predicate.Discussion
- func DeletedByIn(vs ...string) predicate.Discussion
- func DeletedByIsNil() predicate.Discussion
- func DeletedByLT(v string) predicate.Discussion
- func DeletedByLTE(v string) predicate.Discussion
- func DeletedByNEQ(v string) predicate.Discussion
- func DeletedByNotIn(vs ...string) predicate.Discussion
- func DeletedByNotNil() predicate.Discussion
- func ExternalID(v string) predicate.Discussion
- func ExternalIDContains(v string) predicate.Discussion
- func ExternalIDContainsFold(v string) predicate.Discussion
- func ExternalIDEQ(v string) predicate.Discussion
- func ExternalIDEqualFold(v string) predicate.Discussion
- func ExternalIDGT(v string) predicate.Discussion
- func ExternalIDGTE(v string) predicate.Discussion
- func ExternalIDHasPrefix(v string) predicate.Discussion
- func ExternalIDHasSuffix(v string) predicate.Discussion
- func ExternalIDIn(vs ...string) predicate.Discussion
- func ExternalIDIsNil() predicate.Discussion
- func ExternalIDLT(v string) predicate.Discussion
- func ExternalIDLTE(v string) predicate.Discussion
- func ExternalIDNEQ(v string) predicate.Discussion
- func ExternalIDNotIn(vs ...string) predicate.Discussion
- func ExternalIDNotNil() predicate.Discussion
- func HasComments() predicate.Discussion
- func HasCommentsWith(preds ...predicate.Note) predicate.Discussion
- func HasControl() predicate.Discussion
- func HasControlWith(preds ...predicate.Control) predicate.Discussion
- func HasInternalPolicy() predicate.Discussion
- func HasInternalPolicyWith(preds ...predicate.InternalPolicy) predicate.Discussion
- func HasOwner() predicate.Discussion
- func HasOwnerWith(preds ...predicate.Organization) predicate.Discussion
- func HasProcedure() predicate.Discussion
- func HasProcedureWith(preds ...predicate.Procedure) predicate.Discussion
- func HasRisk() predicate.Discussion
- func HasRiskWith(preds ...predicate.Risk) predicate.Discussion
- func HasSubcontrol() predicate.Discussion
- func HasSubcontrolWith(preds ...predicate.Subcontrol) predicate.Discussion
- func ID(id string) predicate.Discussion
- func IDContainsFold(id string) predicate.Discussion
- func IDEQ(id string) predicate.Discussion
- func IDEqualFold(id string) predicate.Discussion
- func IDGT(id string) predicate.Discussion
- func IDGTE(id string) predicate.Discussion
- func IDIn(ids ...string) predicate.Discussion
- func IDLT(id string) predicate.Discussion
- func IDLTE(id string) predicate.Discussion
- func IDNEQ(id string) predicate.Discussion
- func IDNotIn(ids ...string) predicate.Discussion
- func IsResolved(v bool) predicate.Discussion
- func IsResolvedEQ(v bool) predicate.Discussion
- func IsResolvedNEQ(v bool) predicate.Discussion
- func Not(p predicate.Discussion) predicate.Discussion
- func Or(predicates ...predicate.Discussion) predicate.Discussion
- func OwnerID(v string) predicate.Discussion
- func OwnerIDContains(v string) predicate.Discussion
- func OwnerIDContainsFold(v string) predicate.Discussion
- func OwnerIDEQ(v string) predicate.Discussion
- func OwnerIDEqualFold(v string) predicate.Discussion
- func OwnerIDGT(v string) predicate.Discussion
- func OwnerIDGTE(v string) predicate.Discussion
- func OwnerIDHasPrefix(v string) predicate.Discussion
- func OwnerIDHasSuffix(v string) predicate.Discussion
- func OwnerIDIn(vs ...string) predicate.Discussion
- func OwnerIDIsNil() predicate.Discussion
- func OwnerIDLT(v string) predicate.Discussion
- func OwnerIDLTE(v string) predicate.Discussion
- func OwnerIDNEQ(v string) predicate.Discussion
- func OwnerIDNotIn(vs ...string) predicate.Discussion
- func OwnerIDNotNil() predicate.Discussion
- func UpdatedAt(v time.Time) predicate.Discussion
- func UpdatedAtEQ(v time.Time) predicate.Discussion
- func UpdatedAtGT(v time.Time) predicate.Discussion
- func UpdatedAtGTE(v time.Time) predicate.Discussion
- func UpdatedAtIn(vs ...time.Time) predicate.Discussion
- func UpdatedAtIsNil() predicate.Discussion
- func UpdatedAtLT(v time.Time) predicate.Discussion
- func UpdatedAtLTE(v time.Time) predicate.Discussion
- func UpdatedAtNEQ(v time.Time) predicate.Discussion
- func UpdatedAtNotIn(vs ...time.Time) predicate.Discussion
- func UpdatedAtNotNil() predicate.Discussion
- func UpdatedBy(v string) predicate.Discussion
- func UpdatedByContains(v string) predicate.Discussion
- func UpdatedByContainsFold(v string) predicate.Discussion
- func UpdatedByEQ(v string) predicate.Discussion
- func UpdatedByEqualFold(v string) predicate.Discussion
- func UpdatedByGT(v string) predicate.Discussion
- func UpdatedByGTE(v string) predicate.Discussion
- func UpdatedByHasPrefix(v string) predicate.Discussion
- func UpdatedByHasSuffix(v string) predicate.Discussion
- func UpdatedByIn(vs ...string) predicate.Discussion
- func UpdatedByIsNil() predicate.Discussion
- func UpdatedByLT(v string) predicate.Discussion
- func UpdatedByLTE(v string) predicate.Discussion
- func UpdatedByNEQ(v string) predicate.Discussion
- func UpdatedByNotIn(vs ...string) predicate.Discussion
- func UpdatedByNotNil() predicate.Discussion
- func ValidColumn(column string) bool
- type OrderOption
- func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByControlField(field string, 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 ByExternalID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInternalPolicyField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByIsResolved(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByProcedureField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRiskField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySubcontrolField(field string, 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 discussion type in the database. Label = "discussion" // 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" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldExternalID holds the string denoting the external_id field in the database. FieldExternalID = "external_id" // FieldIsResolved holds the string denoting the is_resolved field in the database. FieldIsResolved = "is_resolved" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeComments holds the string denoting the comments edge name in mutations. EdgeComments = "comments" // EdgeControl holds the string denoting the control edge name in mutations. EdgeControl = "control" // EdgeSubcontrol holds the string denoting the subcontrol edge name in mutations. EdgeSubcontrol = "subcontrol" // EdgeProcedure holds the string denoting the procedure edge name in mutations. EdgeProcedure = "procedure" // EdgeRisk holds the string denoting the risk edge name in mutations. EdgeRisk = "risk" // EdgeInternalPolicy holds the string denoting the internal_policy edge name in mutations. EdgeInternalPolicy = "internal_policy" // Table holds the table name of the discussion in the database. Table = "discussions" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "discussions" // 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" // CommentsTable is the table that holds the comments relation/edge. CommentsTable = "notes" // CommentsInverseTable is the table name for the Note entity. // It exists in this package in order to avoid circular dependency with the "note" package. CommentsInverseTable = "notes" // CommentsColumn is the table column denoting the comments relation/edge. CommentsColumn = "discussion_id" // ControlTable is the table that holds the control relation/edge. ControlTable = "discussions" // ControlInverseTable is the table name for the Control entity. // It exists in this package in order to avoid circular dependency with the "control" package. ControlInverseTable = "controls" // ControlColumn is the table column denoting the control relation/edge. ControlColumn = "control_discussions" // SubcontrolTable is the table that holds the subcontrol relation/edge. SubcontrolTable = "discussions" // SubcontrolInverseTable is the table name for the Subcontrol entity. // It exists in this package in order to avoid circular dependency with the "subcontrol" package. SubcontrolInverseTable = "subcontrols" // SubcontrolColumn is the table column denoting the subcontrol relation/edge. SubcontrolColumn = "subcontrol_discussions" // ProcedureTable is the table that holds the procedure relation/edge. ProcedureTable = "discussions" // ProcedureInverseTable is the table name for the Procedure entity. // It exists in this package in order to avoid circular dependency with the "procedure" package. ProcedureInverseTable = "procedures" // ProcedureColumn is the table column denoting the procedure relation/edge. ProcedureColumn = "procedure_discussions" // RiskTable is the table that holds the risk relation/edge. RiskTable = "discussions" // RiskInverseTable is the table name for the Risk entity. // It exists in this package in order to avoid circular dependency with the "risk" package. RiskInverseTable = "risks" // RiskColumn is the table column denoting the risk relation/edge. RiskColumn = "risk_discussions" // InternalPolicyTable is the table that holds the internal_policy relation/edge. InternalPolicyTable = "discussions" // InternalPolicyInverseTable is the table name for the InternalPolicy entity. // It exists in this package in order to avoid circular dependency with the "internalpolicy" package. InternalPolicyInverseTable = "internal_policies" // InternalPolicyColumn is the table column denoting the internal_policy relation/edge. InternalPolicyColumn = "internal_policy_discussions" )
Variables ¶
var ( Hooks [5]ent.Hook Interceptors [3]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 // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // DefaultIsResolved holds the default value on creation for the "is_resolved" field. DefaultIsResolved bool // 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, FieldOwnerID, FieldExternalID, FieldIsResolved, }
Columns holds all SQL columns for discussion fields.
var ForeignKeys = []string{
"control_discussions",
"internal_policy_discussions",
"procedure_discussions",
"risk_discussions",
"subcontrol_discussions",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "discussions" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Discussion) predicate.Discussion
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Discussion
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Discussion
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Discussion
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Discussion
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Discussion
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.Discussion
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Discussion
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Discussion
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Discussion
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Discussion
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.Discussion
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.Discussion
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.Discussion
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.Discussion
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.Discussion
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.Discussion
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.Discussion
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.Discussion
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.Discussion
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.Discussion
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.Discussion
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.Discussion
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.Discussion
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.Discussion
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.Discussion
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.Discussion
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.Discussion
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.Discussion
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.Discussion
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.Discussion
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.Discussion
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.Discussion
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.Discussion
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.Discussion
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.Discussion
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.Discussion
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.Discussion
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.Discussion
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.Discussion
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.Discussion
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.Discussion
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.Discussion
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.Discussion
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.Discussion
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.Discussion
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.Discussion
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.Discussion
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.Discussion
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.Discussion
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.Discussion
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.Discussion
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.Discussion
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.Discussion
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.Discussion
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func ExternalID ¶
func ExternalID(v string) predicate.Discussion
ExternalID applies equality check predicate on the "external_id" field. It's identical to ExternalIDEQ.
func ExternalIDContains ¶
func ExternalIDContains(v string) predicate.Discussion
ExternalIDContains applies the Contains predicate on the "external_id" field.
func ExternalIDContainsFold ¶
func ExternalIDContainsFold(v string) predicate.Discussion
ExternalIDContainsFold applies the ContainsFold predicate on the "external_id" field.
func ExternalIDEQ ¶
func ExternalIDEQ(v string) predicate.Discussion
ExternalIDEQ applies the EQ predicate on the "external_id" field.
func ExternalIDEqualFold ¶
func ExternalIDEqualFold(v string) predicate.Discussion
ExternalIDEqualFold applies the EqualFold predicate on the "external_id" field.
func ExternalIDGT ¶
func ExternalIDGT(v string) predicate.Discussion
ExternalIDGT applies the GT predicate on the "external_id" field.
func ExternalIDGTE ¶
func ExternalIDGTE(v string) predicate.Discussion
ExternalIDGTE applies the GTE predicate on the "external_id" field.
func ExternalIDHasPrefix ¶
func ExternalIDHasPrefix(v string) predicate.Discussion
ExternalIDHasPrefix applies the HasPrefix predicate on the "external_id" field.
func ExternalIDHasSuffix ¶
func ExternalIDHasSuffix(v string) predicate.Discussion
ExternalIDHasSuffix applies the HasSuffix predicate on the "external_id" field.
func ExternalIDIn ¶
func ExternalIDIn(vs ...string) predicate.Discussion
ExternalIDIn applies the In predicate on the "external_id" field.
func ExternalIDIsNil ¶ added in v0.52.2
func ExternalIDIsNil() predicate.Discussion
ExternalIDIsNil applies the IsNil predicate on the "external_id" field.
func ExternalIDLT ¶
func ExternalIDLT(v string) predicate.Discussion
ExternalIDLT applies the LT predicate on the "external_id" field.
func ExternalIDLTE ¶
func ExternalIDLTE(v string) predicate.Discussion
ExternalIDLTE applies the LTE predicate on the "external_id" field.
func ExternalIDNEQ ¶
func ExternalIDNEQ(v string) predicate.Discussion
ExternalIDNEQ applies the NEQ predicate on the "external_id" field.
func ExternalIDNotIn ¶
func ExternalIDNotIn(vs ...string) predicate.Discussion
ExternalIDNotIn applies the NotIn predicate on the "external_id" field.
func ExternalIDNotNil ¶ added in v0.52.2
func ExternalIDNotNil() predicate.Discussion
ExternalIDNotNil applies the NotNil predicate on the "external_id" field.
func HasComments ¶
func HasComments() predicate.Discussion
HasComments applies the HasEdge predicate on the "comments" edge.
func HasCommentsWith ¶
func HasCommentsWith(preds ...predicate.Note) predicate.Discussion
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
func HasControl ¶
func HasControl() predicate.Discussion
HasControl applies the HasEdge predicate on the "control" edge.
func HasControlWith ¶
func HasControlWith(preds ...predicate.Control) predicate.Discussion
HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates).
func HasInternalPolicy ¶
func HasInternalPolicy() predicate.Discussion
HasInternalPolicy applies the HasEdge predicate on the "internal_policy" edge.
func HasInternalPolicyWith ¶
func HasInternalPolicyWith(preds ...predicate.InternalPolicy) predicate.Discussion
HasInternalPolicyWith applies the HasEdge predicate on the "internal_policy" edge with a given conditions (other predicates).
func HasOwner ¶
func HasOwner() predicate.Discussion
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Discussion
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasProcedure ¶
func HasProcedure() predicate.Discussion
HasProcedure applies the HasEdge predicate on the "procedure" edge.
func HasProcedureWith ¶
func HasProcedureWith(preds ...predicate.Procedure) predicate.Discussion
HasProcedureWith applies the HasEdge predicate on the "procedure" edge with a given conditions (other predicates).
func HasRisk ¶
func HasRisk() predicate.Discussion
HasRisk applies the HasEdge predicate on the "risk" edge.
func HasRiskWith ¶
func HasRiskWith(preds ...predicate.Risk) predicate.Discussion
HasRiskWith applies the HasEdge predicate on the "risk" edge with a given conditions (other predicates).
func HasSubcontrol ¶
func HasSubcontrol() predicate.Discussion
HasSubcontrol applies the HasEdge predicate on the "subcontrol" edge.
func HasSubcontrolWith ¶
func HasSubcontrolWith(preds ...predicate.Subcontrol) predicate.Discussion
HasSubcontrolWith applies the HasEdge predicate on the "subcontrol" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.Discussion
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.Discussion
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.Discussion
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.Discussion
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.Discussion
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.Discussion
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.Discussion
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.Discussion
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.Discussion
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.Discussion
IDNotIn applies the NotIn predicate on the ID field.
func IsResolved ¶
func IsResolved(v bool) predicate.Discussion
IsResolved applies equality check predicate on the "is_resolved" field. It's identical to IsResolvedEQ.
func IsResolvedEQ ¶
func IsResolvedEQ(v bool) predicate.Discussion
IsResolvedEQ applies the EQ predicate on the "is_resolved" field.
func IsResolvedNEQ ¶
func IsResolvedNEQ(v bool) predicate.Discussion
IsResolvedNEQ applies the NEQ predicate on the "is_resolved" field.
func Not ¶
func Not(p predicate.Discussion) predicate.Discussion
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Discussion) predicate.Discussion
Or groups predicates with the OR operator between them.
func OwnerID ¶
func OwnerID(v string) predicate.Discussion
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
func OwnerIDContains(v string) predicate.Discussion
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
func OwnerIDContainsFold(v string) predicate.Discussion
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEQ ¶
func OwnerIDEQ(v string) predicate.Discussion
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
func OwnerIDEqualFold(v string) predicate.Discussion
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGT ¶
func OwnerIDGT(v string) predicate.Discussion
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶
func OwnerIDGTE(v string) predicate.Discussion
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
func OwnerIDHasPrefix(v string) predicate.Discussion
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
func OwnerIDHasSuffix(v string) predicate.Discussion
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIn ¶
func OwnerIDIn(vs ...string) predicate.Discussion
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDIsNil ¶
func OwnerIDIsNil() predicate.Discussion
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLT ¶
func OwnerIDLT(v string) predicate.Discussion
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶
func OwnerIDLTE(v string) predicate.Discussion
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
func OwnerIDNEQ(v string) predicate.Discussion
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
func OwnerIDNotIn(vs ...string) predicate.Discussion
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
func OwnerIDNotNil() predicate.Discussion
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Discussion
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Discussion
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Discussion
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Discussion
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Discussion
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.Discussion
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Discussion
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Discussion
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Discussion
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Discussion
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.Discussion
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.Discussion
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.Discussion
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.Discussion
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.Discussion
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.Discussion
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.Discussion
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.Discussion
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.Discussion
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.Discussion
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.Discussion
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.Discussion
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.Discussion
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.Discussion
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.Discussion
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.Discussion
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.Discussion
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 Discussion queries.
func ByComments ¶
func ByComments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByComments orders the results by comments terms.
func ByCommentsCount ¶
func ByCommentsCount(opts ...sql.OrderTermOption) OrderOption
ByCommentsCount orders the results by comments count.
func ByControlField ¶
func ByControlField(field string, opts ...sql.OrderTermOption) OrderOption
ByControlField orders the results by control field.
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 ByExternalID ¶
func ByExternalID(opts ...sql.OrderTermOption) OrderOption
ByExternalID orders the results by the external_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInternalPolicyField ¶
func ByInternalPolicyField(field string, opts ...sql.OrderTermOption) OrderOption
ByInternalPolicyField orders the results by internal_policy field.
func ByIsResolved ¶
func ByIsResolved(opts ...sql.OrderTermOption) OrderOption
ByIsResolved orders the results by the is_resolved 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 ByProcedureField ¶
func ByProcedureField(field string, opts ...sql.OrderTermOption) OrderOption
ByProcedureField orders the results by procedure field.
func ByRiskField ¶
func ByRiskField(field string, opts ...sql.OrderTermOption) OrderOption
ByRiskField orders the results by risk field.
func BySubcontrolField ¶
func BySubcontrolField(field string, opts ...sql.OrderTermOption) OrderOption
BySubcontrolField orders the results by subcontrol 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.