Migration introduce new optional field datetime

Hey I am trying to add a new optional datetime field to a protocol. Here is my attempt at the migration:

migration("NPL $fromVersion to $toVersion")
.transformProtocol("/paas-$fromVersion?/paas/Subscription", "/paas-$toVersion?/paas/Subscription") {
    put("unsubscribedOn") {
        createOptional(type("datetimetype"))
    }
}
.retag(protos)

What goes in the datetimetype? might it be something like lang/datetime/datetime?

Thanks

This will work if you want it to be empty:

createOptional(TypeRef.dateTimeValue)

and this if you want it to have a value:

createOptional(DateTimeValue(ZonedDateTime.now()))

Yes I was going for empty optional. Thanks Stuart! :pray: