We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/safedep/vet'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
// Code generated by ent, DO NOT EDIT.
package reportproject
import (
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
)
const (
// Label holds the string label denoting the reportproject type in the database.
Label = "report_project"
// 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"
// FieldURL holds the string denoting the url field in the database.
FieldURL = "url"
// FieldDescription holds the string denoting the description field in the database.
FieldDescription = "description"
// FieldStars holds the string denoting the stars field in the database.
FieldStars = "stars"
// FieldForks holds the string denoting the forks field in the database.
FieldForks = "forks"
// 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"
// EdgePackage holds the string denoting the package edge name in mutations.
EdgePackage = "package"
// EdgeScorecard holds the string denoting the scorecard edge name in mutations.
EdgeScorecard = "scorecard"
// Table holds the table name of the reportproject in the database.
Table = "report_projects"
// PackageTable is the table that holds the package relation/edge.
PackageTable = "report_projects"
// PackageInverseTable is the table name for the ReportPackage entity.
// It exists in this package in order to avoid circular dependency with the "reportpackage" package.
PackageInverseTable = "report_packages"
// PackageColumn is the table column denoting the package relation/edge.
PackageColumn = "report_package_projects"
// ScorecardTable is the table that holds the scorecard relation/edge.
ScorecardTable = "report_scorecards"
// ScorecardInverseTable is the table name for the ReportScorecard entity.
// It exists in this package in order to avoid circular dependency with the "reportscorecard" package.
ScorecardInverseTable = "report_scorecards"
// ScorecardColumn is the table column denoting the scorecard relation/edge.
ScorecardColumn = "report_project_scorecard"
)
// Columns holds all SQL columns for reportproject fields.
var Columns = []string{
FieldID,
FieldName,
FieldURL,
FieldDescription,
FieldStars,
FieldForks,
FieldCreatedAt,
FieldUpdatedAt,
}
// ForeignKeys holds the SQL foreign-keys that are owned by the "report_projects"
// table and are not defined as standalone fields in the schema.
var ForeignKeys = []string{
"report_package_projects",
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
for i := range ForeignKeys {
if column == ForeignKeys[i] {
return true
}
}
return false
}
var (
// NameValidator is a validator for the "name" field. It is called by the builders before save.
NameValidator func(string) error
)
// OrderOption defines the ordering options for the ReportProject queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByName orders the results by the name field.
func ByName(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldName, opts...).ToFunc()
}
// ByURL orders the results by the url field.
func ByURL(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldURL, opts...).ToFunc()
}
// ByDescription orders the results by the description field.
func ByDescription(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldDescription, opts...).ToFunc()
}
// ByStars orders the results by the stars field.
func ByStars(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStars, opts...).ToFunc()
}
// ByForks orders the results by the forks field.
func ByForks(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldForks, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}
// ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc()
}
// ByPackageField orders the results by package field.
func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborTerms(s, newPackageStep(), sql.OrderByField(field, opts...))
}
}
// ByScorecardField orders the results by scorecard field.
func ByScorecardField(field string, opts ...sql.OrderTermOption) OrderOption {
return func(s *sql.Selector) {
sqlgraph.OrderByNeighborTerms(s, newScorecardStep(), sql.OrderByField(field, opts...))
}
}
func newPackageStep() *sqlgraph.Step {
return sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(PackageInverseTable, FieldID),
sqlgraph.Edge(sqlgraph.M2O, true, PackageTable, PackageColumn),
)
}
func newScorecardStep() *sqlgraph.Step {
return sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.To(ScorecardInverseTable, FieldID),
sqlgraph.Edge(sqlgraph.O2O, false, ScorecardTable, ScorecardColumn),
)
}