Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
report.go1.23 kB
package schema import ( "entgo.io/ent" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" "github.com/rs/xid" ) type Report struct { ent.Schema } func (Report) Mixin() []ent.Mixin { return []ent.Mixin{Identifier{}, CreatedAt{}, UpdatedAt{}} } func (Report) Fields() []ent.Field { return []ent.Field{ field.String("target_id"). GoType(xid.ID{}). Comment("The ID of the resource being reported. This is not a foreign key as reports can refer to a variety of sources, discriminated by the 'target_kind' field."), field.String("target_kind"). Comment("The datagraph kind of resource being reported."), field.String("reported_by_id"). GoType(xid.ID{}), field.String("handled_by_id"). GoType(xid.ID{}). Optional(). Nillable(), field.Text("comment"). Optional(). Nillable(), field.String("reason"). Optional(). Nillable(), field.String("status"). Default("submitted"), } } func (Report) Edges() []ent.Edge { return []ent.Edge{ edge.From("reported_by", Account.Type). Field("reported_by_id"). Ref("reports"). Required(). Unique(), edge.From("handled_by", Account.Type). Field("handled_by_id"). Ref("handled_reports"). Unique(), } }

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