Versions in this module Expand all Collapse all v1 v1.0.1 May 18, 2023 v1.0.0 Nov 10, 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{} + Comment string + Field string + 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{} + Comment string + Default bool + DefaultKind reflect.Kind + DefaultValue interface{} + Enums []struct{ ... } + Immutable bool + Increment 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 + Annotations map[string]interface{} + 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 + Annotations map[string]interface{} + Comment string + Config ent.Config + Edges []*Edge + Fields []*Field + Hooks []*Position + Indexes []*Index + Name string + Policy []*Position + func UnmarshalSchema(buf []byte) (*Schema, error) + type SchemaSpec struct + Module *packages.Module + PkgPath string + Schemas []*Schema