Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
role.go704 B
package schema import ( "entgo.io/ent" "entgo.io/ent/dialect/entsql" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" ) type Role struct { ent.Schema } func (Role) Mixin() []ent.Mixin { return []ent.Mixin{Identifier{}, CreatedAt{}, UpdatedAt{}} } func (Role) Fields() []ent.Field { return []ent.Field{ field.String("name"). Unique(), field.String("colour").Default("hsl(157, 65%, 44%)"), field.Strings("permissions"), field.Float("sort_key").Annotations(entsql.Default("0.0")), } } func (Role) Edges() []ent.Edge { return []ent.Edge{ edge.To("accounts", Account.Type). Through("account_roles", AccountRoles.Type). Annotations(entsql.OnDelete(entsql.Cascade)), } }

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