Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProjectCollaborator) predicate.ProjectCollaborator
- func CreatedAt(v time.Time) predicate.ProjectCollaborator
- func CreatedAtEQ(v time.Time) predicate.ProjectCollaborator
- func CreatedAtGT(v time.Time) predicate.ProjectCollaborator
- func CreatedAtGTE(v time.Time) predicate.ProjectCollaborator
- func CreatedAtIn(vs ...time.Time) predicate.ProjectCollaborator
- func CreatedAtLT(v time.Time) predicate.ProjectCollaborator
- func CreatedAtLTE(v time.Time) predicate.ProjectCollaborator
- func CreatedAtNEQ(v time.Time) predicate.ProjectCollaborator
- func CreatedAtNotIn(vs ...time.Time) predicate.ProjectCollaborator
- func DeletedAt(v time.Time) predicate.ProjectCollaborator
- func DeletedAtEQ(v time.Time) predicate.ProjectCollaborator
- func DeletedAtGT(v time.Time) predicate.ProjectCollaborator
- func DeletedAtGTE(v time.Time) predicate.ProjectCollaborator
- func DeletedAtIn(vs ...time.Time) predicate.ProjectCollaborator
- func DeletedAtIsNil() predicate.ProjectCollaborator
- func DeletedAtLT(v time.Time) predicate.ProjectCollaborator
- func DeletedAtLTE(v time.Time) predicate.ProjectCollaborator
- func DeletedAtNEQ(v time.Time) predicate.ProjectCollaborator
- func DeletedAtNotIn(vs ...time.Time) predicate.ProjectCollaborator
- func DeletedAtNotNil() predicate.ProjectCollaborator
- func HasProject() predicate.ProjectCollaborator
- func HasProjectWith(preds ...predicate.Project) predicate.ProjectCollaborator
- func HasUser() predicate.ProjectCollaborator
- func HasUserWith(preds ...predicate.User) predicate.ProjectCollaborator
- func ID(id uuid.UUID) predicate.ProjectCollaborator
- func IDEQ(id uuid.UUID) predicate.ProjectCollaborator
- func IDGT(id uuid.UUID) predicate.ProjectCollaborator
- func IDGTE(id uuid.UUID) predicate.ProjectCollaborator
- func IDIn(ids ...uuid.UUID) predicate.ProjectCollaborator
- func IDLT(id uuid.UUID) predicate.ProjectCollaborator
- func IDLTE(id uuid.UUID) predicate.ProjectCollaborator
- func IDNEQ(id uuid.UUID) predicate.ProjectCollaborator
- func IDNotIn(ids ...uuid.UUID) predicate.ProjectCollaborator
- func Not(p predicate.ProjectCollaborator) predicate.ProjectCollaborator
- func Or(predicates ...predicate.ProjectCollaborator) predicate.ProjectCollaborator
- func ProjectID(v uuid.UUID) predicate.ProjectCollaborator
- func ProjectIDEQ(v uuid.UUID) predicate.ProjectCollaborator
- func ProjectIDIn(vs ...uuid.UUID) predicate.ProjectCollaborator
- func ProjectIDNEQ(v uuid.UUID) predicate.ProjectCollaborator
- func ProjectIDNotIn(vs ...uuid.UUID) predicate.ProjectCollaborator
- func Role(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleContains(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleContainsFold(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleEQ(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleEqualFold(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleGT(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleGTE(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleHasPrefix(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleHasSuffix(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleIn(vs ...consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleLT(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleLTE(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleNEQ(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func RoleNotIn(vs ...consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
- func UpdatedAt(v time.Time) predicate.ProjectCollaborator
- func UpdatedAtEQ(v time.Time) predicate.ProjectCollaborator
- func UpdatedAtGT(v time.Time) predicate.ProjectCollaborator
- func UpdatedAtGTE(v time.Time) predicate.ProjectCollaborator
- func UpdatedAtIn(vs ...time.Time) predicate.ProjectCollaborator
- func UpdatedAtLT(v time.Time) predicate.ProjectCollaborator
- func UpdatedAtLTE(v time.Time) predicate.ProjectCollaborator
- func UpdatedAtNEQ(v time.Time) predicate.ProjectCollaborator
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProjectCollaborator
- func UserID(v uuid.UUID) predicate.ProjectCollaborator
- func UserIDEQ(v uuid.UUID) predicate.ProjectCollaborator
- func UserIDIn(vs ...uuid.UUID) predicate.ProjectCollaborator
- func UserIDNEQ(v uuid.UUID) predicate.ProjectCollaborator
- func UserIDNotIn(vs ...uuid.UUID) predicate.ProjectCollaborator
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the projectcollaborator type in the database. Label = "project_collaborator" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // 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" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // Table holds the table name of the projectcollaborator in the database. Table = "project_collaborators" // UserTable is the table that holds the user relation/edge. UserTable = "project_collaborators" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "project_collaborators" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // DefaultRole holds the default value on creation for the "role" field. DefaultRole consts.ProjectCollaboratorRole // 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 )
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/chaitin/MonkeyCode/backend/db/runtime"
var Columns = []string{ FieldID, FieldDeletedAt, FieldProjectID, FieldUserID, FieldRole, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for projectcollaborator fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProjectCollaborator) predicate.ProjectCollaborator
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProjectCollaborator
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProjectCollaborator
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProjectCollaborator
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProjectCollaborator
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProjectCollaborator
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProjectCollaborator
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProjectCollaborator
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProjectCollaborator
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProjectCollaborator
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.ProjectCollaborator
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.ProjectCollaborator
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.ProjectCollaborator
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.ProjectCollaborator
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.ProjectCollaborator
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.ProjectCollaborator
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.ProjectCollaborator
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.ProjectCollaborator
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.ProjectCollaborator
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.ProjectCollaborator
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.ProjectCollaborator
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasProject ¶
func HasProject() predicate.ProjectCollaborator
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
func HasProjectWith(preds ...predicate.Project) predicate.ProjectCollaborator
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.ProjectCollaborator
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.ProjectCollaborator
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.ProjectCollaborator
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ProjectCollaborator
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ProjectCollaborator
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ProjectCollaborator
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ProjectCollaborator
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ProjectCollaborator
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ProjectCollaborator
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ProjectCollaborator
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ProjectCollaborator
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ProjectCollaborator) predicate.ProjectCollaborator
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProjectCollaborator) predicate.ProjectCollaborator
Or groups predicates with the OR operator between them.
func ProjectID ¶
func ProjectID(v uuid.UUID) predicate.ProjectCollaborator
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDEQ ¶
func ProjectIDEQ(v uuid.UUID) predicate.ProjectCollaborator
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDIn ¶
func ProjectIDIn(vs ...uuid.UUID) predicate.ProjectCollaborator
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDNEQ ¶
func ProjectIDNEQ(v uuid.UUID) predicate.ProjectCollaborator
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
func ProjectIDNotIn(vs ...uuid.UUID) predicate.ProjectCollaborator
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func Role ¶
func Role(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
func RoleContains ¶
func RoleContains(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
func RoleContainsFold(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEQ ¶
func RoleEQ(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleEQ applies the EQ predicate on the "role" field.
func RoleEqualFold ¶
func RoleEqualFold(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleGT ¶
func RoleGT(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleGT applies the GT predicate on the "role" field.
func RoleGTE ¶
func RoleGTE(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleGTE applies the GTE predicate on the "role" field.
func RoleHasPrefix ¶
func RoleHasPrefix(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
func RoleHasSuffix(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleIn applies the In predicate on the "role" field.
func RoleLT ¶
func RoleLT(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleLT applies the LT predicate on the "role" field.
func RoleLTE ¶
func RoleLTE(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleLTE applies the LTE predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...consts.ProjectCollaboratorRole) predicate.ProjectCollaborator
RoleNotIn applies the NotIn predicate on the "role" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ProjectCollaborator
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ProjectCollaborator
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ProjectCollaborator
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ProjectCollaborator
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ProjectCollaborator
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ProjectCollaborator
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ProjectCollaborator
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ProjectCollaborator
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ProjectCollaborator
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.ProjectCollaborator
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.ProjectCollaborator
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.ProjectCollaborator
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.ProjectCollaborator
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.ProjectCollaborator
UserIDNotIn applies the NotIn predicate on the "user_id" 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 ProjectCollaborator queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByProjectField ¶
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.