Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
email.go1.23 kB
package schema import ( "net/mail" "entgo.io/ent" "entgo.io/ent/dialect/entsql" "entgo.io/ent/schema/edge" "entgo.io/ent/schema/field" "github.com/rs/xid" ) type Email struct { ent.Schema } func (Email) Mixin() []ent.Mixin { return []ent.Mixin{Identifier{}, CreatedAt{}} } func (Email) Fields() []ent.Field { return []ent.Field{ field.String("account_id"). Optional(). Nillable(). GoType(xid.ID{}). Comment("If set, this email is associated with an account, otherwise can be used for newsletter subscriptions etc."), field.String("email_address"). NotEmpty(). Immutable(). Unique(). MinLen(3). MaxLen(254).Validate(func(s string) error { _, err := mail.ParseAddress(s) return err }), field.String("verification_code"). MaxLen(6). Comment("A six digit code that is sent to the email address to verify ownership"), field.Bool("verified"). Default(false). Annotations(entsql.Default("false")). Comment("Whether this email has been verified to be owned by the account via a token send+verify process"), } } func (Email) Edges() []ent.Edge { return []ent.Edge{ edge.From("account", Account.Type). Ref("emails"). Field("account_id"). 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