Guides

Properties

Properties define the shape of data on entity types and relationships. Each property has a name, data type, and optional constraints.

Data types

TypeDescriptionExample value
StringUTF-8 text"hello"
IntegerWhole number42
FloatDecimal number3.14
BooleanTrue or falsetrue
DateCalendar date (no time)2024-01-15
DateTimeDate + time (UTC)2024-01-15T09:30:00Z
DurationTime span (ISO 8601)P1Y2M3DT4H
GeoPointLatitude/longitude pair{ "lat": 48.8, "lon": 2.3 }
PasswordHashed credential field(exported as String with a write-only annotation)
ListOrdered array of a single item type["a", "b"]
EnumString constrained to a fixed set of values"active"

Required

Mark a property as Required to indicate it must always be present. This is reflected in exports — Prisma marks it non-nullable, JSON Schema adds it to required, and GraphQL removes the ? / adds !.

Enums

Enable Enum on any String property to restrict values to a fixed set. Click Add value to add each allowed string. This generates dedicated enum types in Prisma (enum block), GraphQL (enum type), Drizzle (pgEnum), SQLAlchemy (Python enum.Enum), and JSON Schema (enum array).

List item type

When the data type is List, select the Item type — the type of each element in the array (e.g. a list of String or a list of Integer).

Description

Add a description to document what the property represents. Descriptions appear in the generated HTML docs export and in the API response for entity types.

Property order

Drag and drop properties in the panel to reorder them. The order is preserved across all export formats.

Inherited properties

When an entity type has a parent, inherited properties appear in the panel with a source badge. They cannot be edited or deleted from the child — make changes on the parent type.