Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
react.go886 B
package schema import ( "entgo.io/ent" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" "entgo.io/ent/schema/index" "github.com/rs/xid" ) type React struct { ent.Schema } func (React) Mixin() []ent.Mixin { return []ent.Mixin{Identifier{}, CreatedAt{}} } func (React) Fields() []ent.Field { return []ent.Field{ field.String("account_id").GoType(xid.ID{}), field.String("post_id").GoType(xid.ID{}), field.String("emoji"), } } func (React) Edges() []ent.Edge { return []ent.Edge{ edge.From("account", Account.Type). Ref("reacts"). Field("account_id"). Unique(). Required(), edge.From("Post", Post.Type). Ref("reacts"). Field("post_id"). Unique(). Required(), } } func (React) Indexes() []ent.Index { return []ent.Index{ index.Fields("account_id", "post_id", "emoji"). Unique(). StorageKey("unique_react_post_emoji"), } }

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