Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
node_property_schema_field.go985 B
package schema import ( "entgo.io/ent" "entgo.io/ent/dialect/entsql" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" "entgo.io/ent/schema/index" "github.com/rs/xid" ) type PropertySchemaField struct { ent.Schema } func (PropertySchemaField) Mixin() []ent.Mixin { return []ent.Mixin{Identifier{}} } func (PropertySchemaField) Fields() []ent.Field { return []ent.Field{ field.String("name"), field.String("type"), field.String("sort"), field.String("schema_id").GoType(xid.ID{}), } } func (PropertySchemaField) Edges() []ent.Edge { return []ent.Edge{ edge.From("schema", PropertySchema.Type). Field("schema_id"). Ref("fields"). Required(). Unique(). Annotations(entsql.OnDelete(entsql.Cascade)), edge.To("properties", Property.Type). Annotations(entsql.OnDelete(entsql.Cascade)), } } func (PropertySchemaField) Indexes() []ent.Index { return []ent.Index{ index.Fields("schema_id", "name").Unique(), index.Fields("name"), } }

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