// Code generated by ent, DO NOT EDIT. package workspace import ( "time" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/chaitin/MonkeyCode/backend/db/predicate" "github.com/google/uuid" ) // ID filters vertices based on their ID field. func ID(id uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldLTE(FieldID, id)) } // UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ. func UserID(v uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldUserID, v)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldName, v)) } // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. func Description(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldDescription, v)) } // RootPath applies equality check predicate on the "root_path" field. It's identical to RootPathEQ. func RootPath(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldRootPath, v)) } // LastAccessedAt applies equality check predicate on the "last_accessed_at" field. It's identical to LastAccessedAtEQ. func LastAccessedAt(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldLastAccessedAt, v)) } // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldCreatedAt, v)) } // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. func UpdatedAt(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldUpdatedAt, v)) } // UserIDEQ applies the EQ predicate on the "user_id" field. func UserIDEQ(v uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldUserID, v)) } // UserIDNEQ applies the NEQ predicate on the "user_id" field. func UserIDNEQ(v uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldUserID, v)) } // UserIDIn applies the In predicate on the "user_id" field. func UserIDIn(vs ...uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldUserID, vs...)) } // UserIDNotIn applies the NotIn predicate on the "user_id" field. func UserIDNotIn(vs ...uuid.UUID) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldUserID, vs...)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.Workspace { return predicate.Workspace(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.Workspace { return predicate.Workspace(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.Workspace { return predicate.Workspace(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.Workspace { return predicate.Workspace(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Workspace { return predicate.Workspace(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.Workspace { return predicate.Workspace(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.Workspace { return predicate.Workspace(sql.FieldHasSuffix(FieldName, v)) } // NameIsNil applies the IsNil predicate on the "name" field. func NameIsNil() predicate.Workspace { return predicate.Workspace(sql.FieldIsNull(FieldName)) } // NameNotNil applies the NotNil predicate on the "name" field. func NameNotNil() predicate.Workspace { return predicate.Workspace(sql.FieldNotNull(FieldName)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.Workspace { return predicate.Workspace(sql.FieldContainsFold(FieldName, v)) } // DescriptionEQ applies the EQ predicate on the "description" field. func DescriptionEQ(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldDescription, v)) } // DescriptionNEQ applies the NEQ predicate on the "description" field. func DescriptionNEQ(v string) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldDescription, v)) } // DescriptionIn applies the In predicate on the "description" field. func DescriptionIn(vs ...string) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldDescription, vs...)) } // DescriptionNotIn applies the NotIn predicate on the "description" field. func DescriptionNotIn(vs ...string) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldDescription, vs...)) } // DescriptionGT applies the GT predicate on the "description" field. func DescriptionGT(v string) predicate.Workspace { return predicate.Workspace(sql.FieldGT(FieldDescription, v)) } // DescriptionGTE applies the GTE predicate on the "description" field. func DescriptionGTE(v string) predicate.Workspace { return predicate.Workspace(sql.FieldGTE(FieldDescription, v)) } // DescriptionLT applies the LT predicate on the "description" field. func DescriptionLT(v string) predicate.Workspace { return predicate.Workspace(sql.FieldLT(FieldDescription, v)) } // DescriptionLTE applies the LTE predicate on the "description" field. func DescriptionLTE(v string) predicate.Workspace { return predicate.Workspace(sql.FieldLTE(FieldDescription, v)) } // DescriptionContains applies the Contains predicate on the "description" field. func DescriptionContains(v string) predicate.Workspace { return predicate.Workspace(sql.FieldContains(FieldDescription, v)) } // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. func DescriptionHasPrefix(v string) predicate.Workspace { return predicate.Workspace(sql.FieldHasPrefix(FieldDescription, v)) } // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. func DescriptionHasSuffix(v string) predicate.Workspace { return predicate.Workspace(sql.FieldHasSuffix(FieldDescription, v)) } // DescriptionIsNil applies the IsNil predicate on the "description" field. func DescriptionIsNil() predicate.Workspace { return predicate.Workspace(sql.FieldIsNull(FieldDescription)) } // DescriptionNotNil applies the NotNil predicate on the "description" field. func DescriptionNotNil() predicate.Workspace { return predicate.Workspace(sql.FieldNotNull(FieldDescription)) } // DescriptionEqualFold applies the EqualFold predicate on the "description" field. func DescriptionEqualFold(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEqualFold(FieldDescription, v)) } // DescriptionContainsFold applies the ContainsFold predicate on the "description" field. func DescriptionContainsFold(v string) predicate.Workspace { return predicate.Workspace(sql.FieldContainsFold(FieldDescription, v)) } // RootPathEQ applies the EQ predicate on the "root_path" field. func RootPathEQ(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldRootPath, v)) } // RootPathNEQ applies the NEQ predicate on the "root_path" field. func RootPathNEQ(v string) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldRootPath, v)) } // RootPathIn applies the In predicate on the "root_path" field. func RootPathIn(vs ...string) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldRootPath, vs...)) } // RootPathNotIn applies the NotIn predicate on the "root_path" field. func RootPathNotIn(vs ...string) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldRootPath, vs...)) } // RootPathGT applies the GT predicate on the "root_path" field. func RootPathGT(v string) predicate.Workspace { return predicate.Workspace(sql.FieldGT(FieldRootPath, v)) } // RootPathGTE applies the GTE predicate on the "root_path" field. func RootPathGTE(v string) predicate.Workspace { return predicate.Workspace(sql.FieldGTE(FieldRootPath, v)) } // RootPathLT applies the LT predicate on the "root_path" field. func RootPathLT(v string) predicate.Workspace { return predicate.Workspace(sql.FieldLT(FieldRootPath, v)) } // RootPathLTE applies the LTE predicate on the "root_path" field. func RootPathLTE(v string) predicate.Workspace { return predicate.Workspace(sql.FieldLTE(FieldRootPath, v)) } // RootPathContains applies the Contains predicate on the "root_path" field. func RootPathContains(v string) predicate.Workspace { return predicate.Workspace(sql.FieldContains(FieldRootPath, v)) } // RootPathHasPrefix applies the HasPrefix predicate on the "root_path" field. func RootPathHasPrefix(v string) predicate.Workspace { return predicate.Workspace(sql.FieldHasPrefix(FieldRootPath, v)) } // RootPathHasSuffix applies the HasSuffix predicate on the "root_path" field. func RootPathHasSuffix(v string) predicate.Workspace { return predicate.Workspace(sql.FieldHasSuffix(FieldRootPath, v)) } // RootPathEqualFold applies the EqualFold predicate on the "root_path" field. func RootPathEqualFold(v string) predicate.Workspace { return predicate.Workspace(sql.FieldEqualFold(FieldRootPath, v)) } // RootPathContainsFold applies the ContainsFold predicate on the "root_path" field. func RootPathContainsFold(v string) predicate.Workspace { return predicate.Workspace(sql.FieldContainsFold(FieldRootPath, v)) } // SettingsIsNil applies the IsNil predicate on the "settings" field. func SettingsIsNil() predicate.Workspace { return predicate.Workspace(sql.FieldIsNull(FieldSettings)) } // SettingsNotNil applies the NotNil predicate on the "settings" field. func SettingsNotNil() predicate.Workspace { return predicate.Workspace(sql.FieldNotNull(FieldSettings)) } // LastAccessedAtEQ applies the EQ predicate on the "last_accessed_at" field. func LastAccessedAtEQ(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldLastAccessedAt, v)) } // LastAccessedAtNEQ applies the NEQ predicate on the "last_accessed_at" field. func LastAccessedAtNEQ(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldLastAccessedAt, v)) } // LastAccessedAtIn applies the In predicate on the "last_accessed_at" field. func LastAccessedAtIn(vs ...time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldLastAccessedAt, vs...)) } // LastAccessedAtNotIn applies the NotIn predicate on the "last_accessed_at" field. func LastAccessedAtNotIn(vs ...time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldLastAccessedAt, vs...)) } // LastAccessedAtGT applies the GT predicate on the "last_accessed_at" field. func LastAccessedAtGT(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldGT(FieldLastAccessedAt, v)) } // LastAccessedAtGTE applies the GTE predicate on the "last_accessed_at" field. func LastAccessedAtGTE(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldGTE(FieldLastAccessedAt, v)) } // LastAccessedAtLT applies the LT predicate on the "last_accessed_at" field. func LastAccessedAtLT(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldLT(FieldLastAccessedAt, v)) } // LastAccessedAtLTE applies the LTE predicate on the "last_accessed_at" field. func LastAccessedAtLTE(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldLTE(FieldLastAccessedAt, v)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.Workspace { return predicate.Workspace(sql.FieldLTE(FieldUpdatedAt, v)) } // HasOwner applies the HasEdge predicate on the "owner" edge. func HasOwner() predicate.Workspace { return predicate.Workspace(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates). func HasOwnerWith(preds ...predicate.User) predicate.Workspace { return predicate.Workspace(func(s *sql.Selector) { step := newOwnerStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasFiles applies the HasEdge predicate on the "files" edge. func HasFiles() predicate.Workspace { return predicate.Workspace(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, FilesTable, FilesColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates). func HasFilesWith(preds ...predicate.WorkspaceFile) predicate.Workspace { return predicate.Workspace(func(s *sql.Selector) { step := newFilesStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasSecurityScannings applies the HasEdge predicate on the "security_scannings" edge. func HasSecurityScannings() predicate.Workspace { return predicate.Workspace(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, false, SecurityScanningsTable, SecurityScanningsColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasSecurityScanningsWith applies the HasEdge predicate on the "security_scannings" edge with a given conditions (other predicates). func HasSecurityScanningsWith(preds ...predicate.SecurityScanning) predicate.Workspace { return predicate.Workspace(func(s *sql.Selector) { step := newSecurityScanningsStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.Workspace) predicate.Workspace { return predicate.Workspace(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Workspace) predicate.Workspace { return predicate.Workspace(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.Workspace) predicate.Workspace { return predicate.Workspace(sql.NotPredicates(p)) }