Versions in this module Expand all Collapse all v1 v1.0.0 Jan 30, 2023 Changes in this version + type Action struct + Name types.String + Type string + type ActionType struct + InnerName types.String + List bool + Name types.String + ReturnList bool + type CoreType struct + AtLeastOne bool + AtMostOne bool + Fields []OuterInputType + IsOrderType bool + IsWhereType bool + Name types.String + type Datamodel struct + Enums []Enum + Models []Model + type DatamodelFieldKind string + const DatamodelFieldKindEnum + const DatamodelFieldKindRelation + const DatamodelFieldKindScalar + func (v DatamodelFieldKind) IncludeInStruct() bool + func (v DatamodelFieldKind) IsRelation() bool + type Document struct + Datamodel Datamodel + Mappings Mappings + Schema Schema + func (Document) Actions() []Action + func (Document) Operators() []Operator + func (Document) Types() []string + func (Document) Variations() []ActionType + func (Document) WriteTypes() []Type + type Enum struct + DBName types.String + Name types.String + Values []EnumValue + type EnumTypes struct + Model []SchemaEnum + Prisma []SchemaEnum + type EnumValue struct + DBName types.String + Name types.String + type Field struct + DBName types.String + HasDefaultValue bool + IsGenerated bool + IsID bool + IsList bool + IsReadOnly bool + IsRequired bool + IsUnique bool + IsUpdatedAt bool + Kind FieldKind + Name types.String + RelationName types.String + RelationOnDelete types.String + RelationToFields []interface{} + Type types.Type + func (f Field) RelationMethods() []RelationMethod + func (f Field) RequiredOnCreate() bool + type FieldKind string + const FieldKindEnum + const FieldKindObject + const FieldKindScalar + func (v FieldKind) IncludeInStruct() bool + func (v FieldKind) IsRelation() bool + type InputObjectType struct + Prisma []CoreType + type Mappings struct + ModelOperations []ModelOperation + OtherOperations struct{ ... } + type Method struct + Action string + Name string + type Model struct + DBName types.String + Fields []Field + IsEmbedded bool + Name types.String + PrimaryKey PrimaryKey + UniqueIndexes []UniqueIndex + func (m Model) Actions() []string + func (m Model) RelationFieldsPlusOne() []Field + type ModelOperation struct + Aggregate types.String + CreateOne types.String + DeleteMany types.String + DeleteOne types.String + FindFirst types.String + FindMany types.String + FindUnique types.String + GroupBy types.String + Model types.String + UpdateMany types.String + UpdateOne types.String + UpsertOne types.String + func (m *ModelOperation) Namespace() string + type Operator struct + Action string + Name string + type OuterInputType struct + InputTypes []SchemaInputType + IsRelationFilter bool + Name types.String + type OutputObject struct + Prisma []OutputType + type OutputType struct + Fields []SchemaField + IsEmbedded bool + Name types.String + type PrimaryKey struct + Fields []types.String + Name types.String + type RelationMethod struct + Action string + Name string + type Schema struct + EnumTypes EnumTypes + InputObjectTypes InputObjectType + OutputObjectTypes OutputObject + RootMutationType types.String + RootQueryType types.String + type SchemaEnum struct + DBName types.String + Name types.String + Values []types.String + type SchemaField struct + Args []OuterInputType + Name types.String + OutputType SchemaOutputType + type SchemaInputType struct + IsList bool + IsRequired bool + Kind FieldKind + Location string + Namespace types.String + Type types.Type + type SchemaOutputType struct + IsList bool + IsRequired bool + Kind FieldKind + Type types.String + type Type struct + Methods []Method + Name string + type UniqueIndex struct + Fields []types.String + InternalName string