Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
mention_profile.go898 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 MentionProfile struct { ent.Schema } func (MentionProfile) Mixin() []ent.Mixin { return []ent.Mixin{Identifier{}, CreatedAt{}} } func (MentionProfile) Fields() []ent.Field { return []ent.Field{ field.String("account_id").GoType(xid.ID{}), field.String("post_id").GoType(xid.ID{}), } } func (MentionProfile) Edges() []ent.Edge { return []ent.Edge{ edge.From("account", Account.Type). Ref("mentions"). Field("account_id"). Unique(). Required(), edge.From("Post", Post.Type). Ref("mentions"). Field("post_id"). Unique(). Required(), } } func (MentionProfile) Indexes() []ent.Index { return []ent.Index{ index.Fields("account_id", "post_id"). Unique(). StorageKey("unique_mentions_post"), } }

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