Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Workspace) predicate.Workspace
- func CreatedAt(v time.Time) predicate.Workspace
- func CreatedAtEQ(v time.Time) predicate.Workspace
- func CreatedAtGT(v time.Time) predicate.Workspace
- func CreatedAtGTE(v time.Time) predicate.Workspace
- func CreatedAtIn(vs ...time.Time) predicate.Workspace
- func CreatedAtLT(v time.Time) predicate.Workspace
- func CreatedAtLTE(v time.Time) predicate.Workspace
- func CreatedAtNEQ(v time.Time) predicate.Workspace
- func CreatedAtNotIn(vs ...time.Time) predicate.Workspace
- func Description(v string) predicate.Workspace
- func DescriptionContains(v string) predicate.Workspace
- func DescriptionContainsFold(v string) predicate.Workspace
- func DescriptionEQ(v string) predicate.Workspace
- func DescriptionEqualFold(v string) predicate.Workspace
- func DescriptionGT(v string) predicate.Workspace
- func DescriptionGTE(v string) predicate.Workspace
- func DescriptionHasPrefix(v string) predicate.Workspace
- func DescriptionHasSuffix(v string) predicate.Workspace
- func DescriptionIn(vs ...string) predicate.Workspace
- func DescriptionIsNil() predicate.Workspace
- func DescriptionLT(v string) predicate.Workspace
- func DescriptionLTE(v string) predicate.Workspace
- func DescriptionNEQ(v string) predicate.Workspace
- func DescriptionNotIn(vs ...string) predicate.Workspace
- func DescriptionNotNil() predicate.Workspace
- func HasGroups() predicate.Workspace
- func HasGroupsWith(preds ...predicate.Group) predicate.Workspace
- func HasOwner() predicate.Workspace
- func HasOwnerWith(preds ...predicate.User) predicate.Workspace
- func HasWorkspaceRoles() predicate.Workspace
- func HasWorkspaceRolesWith(preds ...predicate.WorkspaceRole) predicate.Workspace
- func ID(id uuid.UUID) predicate.Workspace
- func IDEQ(id uuid.UUID) predicate.Workspace
- func IDGT(id uuid.UUID) predicate.Workspace
- func IDGTE(id uuid.UUID) predicate.Workspace
- func IDIn(ids ...uuid.UUID) predicate.Workspace
- func IDLT(id uuid.UUID) predicate.Workspace
- func IDLTE(id uuid.UUID) predicate.Workspace
- func IDNEQ(id uuid.UUID) predicate.Workspace
- func IDNotIn(ids ...uuid.UUID) predicate.Workspace
- func MetadataIsNil() predicate.Workspace
- func MetadataNotNil() predicate.Workspace
- func Name(v string) predicate.Workspace
- func NameContains(v string) predicate.Workspace
- func NameContainsFold(v string) predicate.Workspace
- func NameEQ(v string) predicate.Workspace
- func NameEqualFold(v string) predicate.Workspace
- func NameGT(v string) predicate.Workspace
- func NameGTE(v string) predicate.Workspace
- func NameHasPrefix(v string) predicate.Workspace
- func NameHasSuffix(v string) predicate.Workspace
- func NameIn(vs ...string) predicate.Workspace
- func NameLT(v string) predicate.Workspace
- func NameLTE(v string) predicate.Workspace
- func NameNEQ(v string) predicate.Workspace
- func NameNotIn(vs ...string) predicate.Workspace
- func Not(p predicate.Workspace) predicate.Workspace
- func Or(predicates ...predicate.Workspace) predicate.Workspace
- func Plan(v string) predicate.Workspace
- func PlanContains(v string) predicate.Workspace
- func PlanContainsFold(v string) predicate.Workspace
- func PlanEQ(v string) predicate.Workspace
- func PlanEqualFold(v string) predicate.Workspace
- func PlanGT(v string) predicate.Workspace
- func PlanGTE(v string) predicate.Workspace
- func PlanHasPrefix(v string) predicate.Workspace
- func PlanHasSuffix(v string) predicate.Workspace
- func PlanIn(vs ...string) predicate.Workspace
- func PlanLT(v string) predicate.Workspace
- func PlanLTE(v string) predicate.Workspace
- func PlanNEQ(v string) predicate.Workspace
- func PlanNotIn(vs ...string) predicate.Workspace
- func UpdatedAt(v time.Time) predicate.Workspace
- func UpdatedAtEQ(v time.Time) predicate.Workspace
- func UpdatedAtGT(v time.Time) predicate.Workspace
- func UpdatedAtGTE(v time.Time) predicate.Workspace
- func UpdatedAtIn(vs ...time.Time) predicate.Workspace
- func UpdatedAtLT(v time.Time) predicate.Workspace
- func UpdatedAtLTE(v time.Time) predicate.Workspace
- func UpdatedAtNEQ(v time.Time) predicate.Workspace
- func UpdatedAtNotIn(vs ...time.Time) predicate.Workspace
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the workspace type in the database. Label = "workspace" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPlan holds the string denoting the plan field in the database. FieldPlan = "plan" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // 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" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeWorkspaceRoles holds the string denoting the workspace_roles edge name in mutations. EdgeWorkspaceRoles = "workspace_roles" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // Table holds the table name of the workspace in the database. Table = "workspacesx" // OwnerTable is the table the holds the owner relation/edge. OwnerTable = "workspacesx" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "usersx" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_workspace" // WorkspaceRolesTable is the table the holds the workspace_roles relation/edge. WorkspaceRolesTable = "workspacerolesx" // WorkspaceRolesInverseTable is the table name for the WorkspaceRole entity. // It exists in this package in order to avoid circular dependency with the "workspacerole" package. WorkspaceRolesInverseTable = "workspacerolesx" // WorkspaceRolesColumn is the table column denoting the workspace_roles relation/edge. WorkspaceRolesColumn = "workspace_workspace_roles" // GroupsTable is the table the holds the groups relation/edge. GroupsTable = "groupsx" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groupsx" // GroupsColumn is the table column denoting the groups relation/edge. GroupsColumn = "workspace_groups" )
Variables ¶
var ( // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // PlanValidator is a validator for the "plan" field. It is called by the builders before save. PlanValidator func(string) error // DescriptionValidator is a validator for the "description" field. It is called by the builders before save. DescriptionValidator func(string) error // 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 // DefaultID holds the default value on creation for the id field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldName, FieldPlan, FieldDescription, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for workspace fields.
var ForeignKeys = []string{
"user_workspace",
}
ForeignKeys holds the SQL foreign-keys that are owned by the Workspace type.
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 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 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 HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasWorkspaceRoles ¶
HasWorkspaceRoles applies the HasEdge predicate on the "workspace_roles" edge.
func HasWorkspaceRolesWith ¶
func HasWorkspaceRolesWith(preds ...predicate.WorkspaceRole) predicate.Workspace
HasWorkspaceRolesWith applies the HasEdge predicate on the "workspace_roles" edge with a given conditions (other predicates).
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" 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 PlanContains ¶
PlanContains applies the Contains predicate on the "plan" field.
func PlanContainsFold ¶
PlanContainsFold applies the ContainsFold predicate on the "plan" field.
func PlanEqualFold ¶
PlanEqualFold applies the EqualFold predicate on the "plan" field.
func PlanHasPrefix ¶
PlanHasPrefix applies the HasPrefix predicate on the "plan" field.
func PlanHasSuffix ¶
PlanHasSuffix applies the HasSuffix predicate on the "plan" 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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.