컨텐츠로 건너뛰기
Developer Preview — APIs and language features may change before 1.0

Field Types

이 콘텐츠는 아직 해당 언어로 제공되지 않습니다.

Field Types

mashinTalk fields are typed. Types are used in provides inputs, provides outputs, and stores resource definitions.

Primitive Types

TypeDescriptionExample
stringText valuename: string
textAlias for stringdescription: text
numberNumeric (integer or float)count: number
integerWhole numberage: integer
floatFloating pointscore: float
decimalPrecise decimalprice: decimal
booleanTrue or falseactive: boolean
uuidUUID identifierid: uuid
dateCalendar datebirthday: date
datetimeDate and time (UTC)created_at: datetime

Composite Types

TypeDescriptionExample
enum("a", "b", "c")One of a fixed set of valuesstatus: enum("draft", "active", "archived")
list(type)List of valuestags: list(string)
mapKey-value mapmetadata: map
anyAny typedata: any

Field Modifiers

ModifierDescriptionExample
requiredField must be providedname: string, required
default: valueDefault if not providedcount: integer, default: 0
primary_keyPrimary key (stores only)id: uuid, primary_key
column: "name"Map to database column (external stores)ext_id: string, column: "external_id"