PField

data class PField(val name: String, val type: String, val isOptional: Boolean, val isArray: Boolean, val attributes: List<PAttribute>)

A field within a PModel

Constructors

Link copied to clipboard
constructor(name: String, type: String, isOptional: Boolean, isArray: Boolean, attributes: List<PAttribute>)

Types

Link copied to clipboard

Properties

Link copied to clipboard

List of attributes associated with this field.

Link copied to clipboard

True if the field is marked with a [], i.e. it is an array, false otherwise.

Link copied to clipboard

True if the field is marked with a ?, i.e. it is optional (nullable), false otherwise

Link copied to clipboard

Name of this field

Link copied to clipboard

Type (as in, simple Prisma type) of this field.