Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
collectionpost.go5.05 kB
// Code generated by ent, DO NOT EDIT. package collectionpost import ( "time" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/rs/xid" ) const ( // Label holds the string label denoting the collectionpost type in the database. Label = "collection_post" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldCollectionID holds the string denoting the collection_id field in the database. FieldCollectionID = "collection_id" // FieldPostID holds the string denoting the post_id field in the database. FieldPostID = "post_id" // FieldMembershipType holds the string denoting the membership_type field in the database. FieldMembershipType = "membership_type" // EdgeCollection holds the string denoting the collection edge name in mutations. EdgeCollection = "collection" // EdgePost holds the string denoting the post edge name in mutations. EdgePost = "post" // CollectionFieldID holds the string denoting the ID field of the Collection. CollectionFieldID = "id" // PostFieldID holds the string denoting the ID field of the Post. PostFieldID = "id" // Table holds the table name of the collectionpost in the database. Table = "collection_posts" // CollectionTable is the table that holds the collection relation/edge. CollectionTable = "collection_posts" // CollectionInverseTable is the table name for the Collection entity. // It exists in this package in order to avoid circular dependency with the "collection" package. CollectionInverseTable = "collections" // CollectionColumn is the table column denoting the collection relation/edge. CollectionColumn = "collection_id" // PostTable is the table that holds the post relation/edge. PostTable = "collection_posts" // PostInverseTable is the table name for the Post entity. // It exists in this package in order to avoid circular dependency with the "post" package. PostInverseTable = "posts" // PostColumn is the table column denoting the post relation/edge. PostColumn = "post_id" ) // Columns holds all SQL columns for collectionpost fields. var Columns = []string{ FieldCreatedAt, FieldCollectionID, FieldPostID, FieldMembershipType, } // 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 } } return false } var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultCollectionID holds the default value on creation for the "collection_id" field. DefaultCollectionID func() xid.ID // CollectionIDValidator is a validator for the "collection_id" field. It is called by the builders before save. CollectionIDValidator func(string) error // DefaultPostID holds the default value on creation for the "post_id" field. DefaultPostID func() xid.ID // PostIDValidator is a validator for the "post_id" field. It is called by the builders before save. PostIDValidator func(string) error // DefaultMembershipType holds the default value on creation for the "membership_type" field. DefaultMembershipType string ) // OrderOption defines the ordering options for the CollectionPost queries. type OrderOption func(*sql.Selector) // ByCreatedAt orders the results by the created_at field. func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldCreatedAt, opts...).ToFunc() } // ByCollectionID orders the results by the collection_id field. func ByCollectionID(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldCollectionID, opts...).ToFunc() } // ByPostID orders the results by the post_id field. func ByPostID(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldPostID, opts...).ToFunc() } // ByMembershipType orders the results by the membership_type field. func ByMembershipType(opts ...sql.OrderTermOption) OrderOption { return sql.OrderByField(FieldMembershipType, opts...).ToFunc() } // ByCollectionField orders the results by collection field. func ByCollectionField(field string, opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { sqlgraph.OrderByNeighborTerms(s, newCollectionStep(), sql.OrderByField(field, opts...)) } } // ByPostField orders the results by post field. func ByPostField(field string, opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { sqlgraph.OrderByNeighborTerms(s, newPostStep(), sql.OrderByField(field, opts...)) } } func newCollectionStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, CollectionColumn), sqlgraph.To(CollectionInverseTable, CollectionFieldID), sqlgraph.Edge(sqlgraph.M2O, false, CollectionTable, CollectionColumn), ) } func newPostStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, PostColumn), sqlgraph.To(PostInverseTable, PostFieldID), sqlgraph.Edge(sqlgraph.M2O, false, PostTable, PostColumn), ) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server