type

Record

One source document and its available retained versions.

Properties

PropertyTypeDescription
IDIDThe ID value.
Datajson.RawMessageThe Data value.
Statusstore.StatusThe Status value.
CreatedAttime.TimeThe CreatedAt value.
UpdatedAttime.TimeThe UpdatedAt value.
Versions[]VersionThe Versions value.
SelectedRevisionintThe SelectedRevision value.

How it works

SelectedRevision zero imports current Data. A non-zero value must name a supplied version and the Ridu target must support versions.

Full signature

type Record struct { ID ID Data json.RawMessage Status store.Status CreatedAt time.Time UpdatedAt time.Time Versions []Version SelectedRevision int }

Source migration/payload/payload.go:71