Versions in this module Expand all Collapse all v0 v0.22.100 Apr 16, 2024 Changes in this version + const FieldNameCollectionId + const FieldNameCollectionName + const FieldNameCreated + const FieldNameEmail + const FieldNameEmailVisibility + const FieldNameExpand + const FieldNameId + const FieldNameLastResetSentAt + const FieldNameLastVerificationSentAt + const FieldNamePasswordHash + const FieldNameTokenKey + const FieldNameUpdated + const FieldNameUsername + const FieldNameVerified + const FieldTypeBool + const FieldTypeDate + const FieldTypeEditor + const FieldTypeEmail + const FieldTypeFile + const FieldTypeJson + const FieldTypeNumber + const FieldTypeRelation + const FieldTypeSelect + const FieldTypeText + const FieldTypeUrl + const FieldTypeUser + const FieldValueModifierAdd + const FieldValueModifierSubtract + func ArraybleFieldTypes() []string + func AuthFieldNames() []string + func BaseModelFieldNames() []string + func FieldTypes() []string + func FieldValueModifiers() []string + func SystemFieldNames() []string + type BoolOptions struct + func (o BoolOptions) Validate() error + type DateOptions struct + Max types.DateTime + Min types.DateTime + func (o DateOptions) Validate() error + type EditorOptions struct + ConvertUrls bool + func (o EditorOptions) Validate() error + type EmailOptions struct + ExceptDomains []string + OnlyDomains []string + func (o EmailOptions) Validate() error + type FieldOptions interface + Validate func() error + type FileOptions struct + MaxSelect int + MaxSize int + MimeTypes []string + Protected bool + Thumbs []string + func (o FileOptions) IsMultiple() bool + func (o FileOptions) Validate() error + type JsonOptions struct + MaxSize int + func (o JsonOptions) Validate() error + type MultiValuer interface + IsMultiple func() bool + type NumberOptions struct + Max *float64 + Min *float64 + NoDecimal bool + func (o NumberOptions) Validate() error + type RelationOptions struct + CascadeDelete bool + CollectionId string + DisplayFields []string + MaxSelect *int + MinSelect *int + func (o RelationOptions) IsMultiple() bool + func (o RelationOptions) Validate() error + type Schema struct + func NewSchema(fields ...*SchemaField) Schema + func (s *Schema) AddField(newField *SchemaField) + func (s *Schema) AsMap() map[string]*SchemaField + func (s *Schema) Clone() (*Schema, error) + func (s *Schema) Fields() []*SchemaField + func (s *Schema) GetFieldById(id string) *SchemaField + func (s *Schema) GetFieldByName(name string) *SchemaField + func (s *Schema) InitFieldsOptions() error + func (s *Schema) RemoveField(id string) + func (s *Schema) Scan(value any) error + func (s *Schema) UnmarshalJSON(data []byte) error + func (s Schema) MarshalJSON() ([]byte, error) + func (s Schema) Validate() error + func (s Schema) Value() (driver.Value, error) + type SchemaField struct + Id string + Name string + Options any + Presentable bool + Required bool + System bool + Type string + Unique bool + func (f *SchemaField) ColDefinition() string + func (f *SchemaField) InitOptions() error + func (f *SchemaField) PrepareValue(value any) any + func (f *SchemaField) PrepareValueWithModifier(baseValue any, modifier string, modifierValue any) any + func (f *SchemaField) UnmarshalJSON(data []byte) error + func (f SchemaField) MarshalJSON() ([]byte, error) + func (f SchemaField) String() string + func (f SchemaField) Validate() error + type SelectOptions struct + MaxSelect int + Values []string + func (o SelectOptions) IsMultiple() bool + func (o SelectOptions) Validate() error + type TextOptions struct + Max *int + Min *int + Pattern string + func (o TextOptions) Validate() error + type UrlOptions struct + ExceptDomains []string + OnlyDomains []string + func (o UrlOptions) Validate() error + type UserOptions struct + CascadeDelete bool + MaxSelect int + func (o UserOptions) Validate() error