Versions in this module Expand all Collapse all v1 v1.5.0 Oct 24, 2022 Changes in this version + func MarshalSchema(schema ent.Interface) (b []byte, err error) + type Config struct + Names []string + Path string + func (c *Config) Load() (*SchemaSpec, error) + type Edge struct + Annotations map[string]interface{} + Inverse bool + Name string + Ref *Edge + RefName string + Required bool + StorageKey *edge.StorageKey + Tag string + Type string + Unique bool + func NewEdge(ed *edge.Descriptor) *Edge + type Field struct + Annotations map[string]interface{} + Default bool + DefaultValue interface{} + Enums map[string]string + Immutable bool + Info *field.TypeInfo + Name string + Nillable bool + Optional bool + Position *Position + SchemaType map[string]string + Sensitive bool + Size *int64 + StorageKey string + Tag string + Unique bool + UpdateDefault bool + Validators int + func NewField(fd *field.Descriptor) (*Field, error) + type Index struct + Edges []string + Fields []string + StorageKey string + Unique bool + func NewIndex(idx *index.Descriptor) *Index + type Position struct + Index int + MixedIn bool + MixinIndex int + type Schema struct + Config ent.Config + Edges []*Edge + Fields []*Field + Hooks []*Position + Indexes []*Index + Name string + Policy bool + func UnmarshalSchema(buf []byte) (*Schema, error) + type SchemaSpec struct + PkgPath string + Schemas []*Schema