Attachment Field

Schema definition:

import defineField from '@/lib/field/defineField'

defineField({
    id: 'invoices'
    type: 'attachment'
})

Format as text

{
    "text": "2 attachments"
}

Change Details

{
    "prev" : [
        "file:a6460e08-fd41-4566-9890-4e85d8a79640",
    ],
    "next" : [
        "file:a6460e08-fd41-4566-9890-4e85d8a79640",
        "file:00c9579c-0ea2-45d1-a713-b922754c9f3f",
    ],
    "userId" : "root",
    "supervisorId" : null,
    "operation" : "add",
    "source" : "user",
    "type" : "attachment",
    "time" : "2023-12-26T09:29:50.411Z"
}

TODO: demo attachment field prev next

  • 2 attachments added
  • 2 attachments removed