Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Image) predicate.Image
- func CreatedAt(v time.Time) predicate.Image
- func CreatedAtEQ(v time.Time) predicate.Image
- func CreatedAtGT(v time.Time) predicate.Image
- func CreatedAtGTE(v time.Time) predicate.Image
- func CreatedAtIn(vs ...time.Time) predicate.Image
- func CreatedAtLT(v time.Time) predicate.Image
- func CreatedAtLTE(v time.Time) predicate.Image
- func CreatedAtNEQ(v time.Time) predicate.Image
- func CreatedAtNotIn(vs ...time.Time) predicate.Image
- func DeletedAt(v time.Time) predicate.Image
- func DeletedAtEQ(v time.Time) predicate.Image
- func DeletedAtGT(v time.Time) predicate.Image
- func DeletedAtGTE(v time.Time) predicate.Image
- func DeletedAtIn(vs ...time.Time) predicate.Image
- func DeletedAtIsNil() predicate.Image
- func DeletedAtLT(v time.Time) predicate.Image
- func DeletedAtLTE(v time.Time) predicate.Image
- func DeletedAtNEQ(v time.Time) predicate.Image
- func DeletedAtNotIn(vs ...time.Time) predicate.Image
- func DeletedAtNotNil() predicate.Image
- func HasGroups() predicate.Image
- func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Image
- func HasProjectTasks() predicate.Image
- func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.Image
- func HasProjects() predicate.Image
- func HasProjectsWith(preds ...predicate.Project) predicate.Image
- func HasTeamGroupImages() predicate.Image
- func HasTeamGroupImagesWith(preds ...predicate.TeamGroupImage) predicate.Image
- func HasTeamImages() predicate.Image
- func HasTeamImagesWith(preds ...predicate.TeamImage) predicate.Image
- func HasTeams() predicate.Image
- func HasTeamsWith(preds ...predicate.Team) predicate.Image
- func HasUser() predicate.Image
- func HasUserWith(preds ...predicate.User) predicate.Image
- func ID(id uuid.UUID) predicate.Image
- func IDEQ(id uuid.UUID) predicate.Image
- func IDGT(id uuid.UUID) predicate.Image
- func IDGTE(id uuid.UUID) predicate.Image
- func IDIn(ids ...uuid.UUID) predicate.Image
- func IDLT(id uuid.UUID) predicate.Image
- func IDLTE(id uuid.UUID) predicate.Image
- func IDNEQ(id uuid.UUID) predicate.Image
- func IDNotIn(ids ...uuid.UUID) predicate.Image
- func Name(v string) predicate.Image
- func NameContains(v string) predicate.Image
- func NameContainsFold(v string) predicate.Image
- func NameEQ(v string) predicate.Image
- func NameEqualFold(v string) predicate.Image
- func NameGT(v string) predicate.Image
- func NameGTE(v string) predicate.Image
- func NameHasPrefix(v string) predicate.Image
- func NameHasSuffix(v string) predicate.Image
- func NameIn(vs ...string) predicate.Image
- func NameLT(v string) predicate.Image
- func NameLTE(v string) predicate.Image
- func NameNEQ(v string) predicate.Image
- func NameNotIn(vs ...string) predicate.Image
- func Not(p predicate.Image) predicate.Image
- func Or(predicates ...predicate.Image) predicate.Image
- func Remark(v string) predicate.Image
- func RemarkContains(v string) predicate.Image
- func RemarkContainsFold(v string) predicate.Image
- func RemarkEQ(v string) predicate.Image
- func RemarkEqualFold(v string) predicate.Image
- func RemarkGT(v string) predicate.Image
- func RemarkGTE(v string) predicate.Image
- func RemarkHasPrefix(v string) predicate.Image
- func RemarkHasSuffix(v string) predicate.Image
- func RemarkIn(vs ...string) predicate.Image
- func RemarkIsNil() predicate.Image
- func RemarkLT(v string) predicate.Image
- func RemarkLTE(v string) predicate.Image
- func RemarkNEQ(v string) predicate.Image
- func RemarkNotIn(vs ...string) predicate.Image
- func RemarkNotNil() predicate.Image
- func UpdatedAt(v time.Time) predicate.Image
- func UpdatedAtEQ(v time.Time) predicate.Image
- func UpdatedAtGT(v time.Time) predicate.Image
- func UpdatedAtGTE(v time.Time) predicate.Image
- func UpdatedAtIn(vs ...time.Time) predicate.Image
- func UpdatedAtLT(v time.Time) predicate.Image
- func UpdatedAtLTE(v time.Time) predicate.Image
- func UpdatedAtNEQ(v time.Time) predicate.Image
- func UpdatedAtNotIn(vs ...time.Time) predicate.Image
- func UserID(v uuid.UUID) predicate.Image
- func UserIDEQ(v uuid.UUID) predicate.Image
- func UserIDIn(vs ...uuid.UUID) predicate.Image
- func UserIDNEQ(v uuid.UUID) predicate.Image
- func UserIDNotIn(vs ...uuid.UUID) predicate.Image
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProjectTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamImagesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamsCount(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 image type in the database. Label = "image" // 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" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // 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" // EdgeTeams holds the string denoting the teams edge name in mutations. EdgeTeams = "teams" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeProjectTasks holds the string denoting the project_tasks edge name in mutations. EdgeProjectTasks = "project_tasks" // EdgeProjects holds the string denoting the projects edge name in mutations. EdgeProjects = "projects" // EdgeTeamImages holds the string denoting the team_images edge name in mutations. EdgeTeamImages = "team_images" // EdgeTeamGroupImages holds the string denoting the team_group_images edge name in mutations. EdgeTeamGroupImages = "team_group_images" // Table holds the table name of the image in the database. Table = "images" // UserTable is the table that holds the user relation/edge. UserTable = "images" // 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" // TeamsTable is the table that holds the teams relation/edge. The primary key declared below. TeamsTable = "team_images" // TeamsInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamsInverseTable = "teams" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "team_group_images" // GroupsInverseTable is the table name for the TeamGroup entity. // It exists in this package in order to avoid circular dependency with the "teamgroup" package. GroupsInverseTable = "team_groups" // ProjectTasksTable is the table that holds the project_tasks relation/edge. ProjectTasksTable = "project_tasks" // ProjectTasksInverseTable is the table name for the ProjectTask entity. // It exists in this package in order to avoid circular dependency with the "projecttask" package. ProjectTasksInverseTable = "project_tasks" // ProjectTasksColumn is the table column denoting the project_tasks relation/edge. ProjectTasksColumn = "image_id" // ProjectsTable is the table that holds the projects relation/edge. ProjectsTable = "projects" // ProjectsInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectsInverseTable = "projects" // ProjectsColumn is the table column denoting the projects relation/edge. ProjectsColumn = "image_id" // TeamImagesTable is the table that holds the team_images relation/edge. TeamImagesTable = "team_images" // TeamImagesInverseTable is the table name for the TeamImage entity. // It exists in this package in order to avoid circular dependency with the "teamimage" package. TeamImagesInverseTable = "team_images" // TeamImagesColumn is the table column denoting the team_images relation/edge. TeamImagesColumn = "image_id" // TeamGroupImagesTable is the table that holds the team_group_images relation/edge. TeamGroupImagesTable = "team_group_images" // TeamGroupImagesInverseTable is the table name for the TeamGroupImage entity. // It exists in this package in order to avoid circular dependency with the "teamgroupimage" package. TeamGroupImagesInverseTable = "team_group_images" // TeamGroupImagesColumn is the table column denoting the team_group_images relation/edge. TeamGroupImagesColumn = "image_id" )
Variables ¶
var ( // TeamsPrimaryKey and TeamsColumn2 are the table columns denoting the // primary key for the teams relation (M2M). TeamsPrimaryKey = []string{"team_id", "image_id"} // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "image_id"} )
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator 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 )
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, FieldUserID, FieldName, FieldRemark, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for image fields.
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 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 HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasProjectTasks ¶
HasProjectTasks applies the HasEdge predicate on the "project_tasks" edge.
func HasProjectTasksWith ¶
func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.Image
HasProjectTasksWith applies the HasEdge predicate on the "project_tasks" edge with a given conditions (other predicates).
func HasProjects ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).
func HasTeamGroupImages ¶
HasTeamGroupImages applies the HasEdge predicate on the "team_group_images" edge.
func HasTeamGroupImagesWith ¶
func HasTeamGroupImagesWith(preds ...predicate.TeamGroupImage) predicate.Image
HasTeamGroupImagesWith applies the HasEdge predicate on the "team_group_images" edge with a given conditions (other predicates).
func HasTeamImages ¶
HasTeamImages applies the HasEdge predicate on the "team_images" edge.
func HasTeamImagesWith ¶
HasTeamImagesWith applies the HasEdge predicate on the "team_images" edge with a given conditions (other predicates).
func HasTeamsWith ¶
HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
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 Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIsNil ¶
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
RemarkNotNil applies the NotNil predicate on the "remark" 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 UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
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 Image 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 ByGroups ¶
func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroups orders the results by groups terms.
func ByGroupsCount ¶
func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupsCount orders the results by groups count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByProjectTasks ¶
func ByProjectTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProjectTasks orders the results by project_tasks terms.
func ByProjectTasksCount ¶
func ByProjectTasksCount(opts ...sql.OrderTermOption) OrderOption
ByProjectTasksCount orders the results by project_tasks count.
func ByProjects ¶
func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProjects orders the results by projects terms.
func ByProjectsCount ¶
func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
ByProjectsCount orders the results by projects count.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func ByTeamGroupImages ¶
func ByTeamGroupImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeamGroupImages orders the results by team_group_images terms.
func ByTeamGroupImagesCount ¶
func ByTeamGroupImagesCount(opts ...sql.OrderTermOption) OrderOption
ByTeamGroupImagesCount orders the results by team_group_images count.
func ByTeamImages ¶
func ByTeamImages(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeamImages orders the results by team_images terms.
func ByTeamImagesCount ¶
func ByTeamImagesCount(opts ...sql.OrderTermOption) OrderOption
ByTeamImagesCount orders the results by team_images count.
func ByTeams ¶
func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeams orders the results by teams terms.
func ByTeamsCount ¶
func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
ByTeamsCount orders the results by teams count.
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.