Skip to content

AttachmentsModel

AttachmentsModel = object

Defined in: packages/schema/src/model.ts:2004

The files under a conversation’s messages: one record per file, pointing at its message, written together with the message and deleted before it.

field: string

Defined in: packages/schema/src/model.ts:2008

The filterable relation of resource to the message the file is in.


file: string

Defined in: packages/schema/src/model.ts:2010

The file field, whose value gives the file’s name, type, size and signed link, and whose maxSize the box checks before uploading.


optional height?: string

Defined in: packages/schema/src/model.ts:2014

The integer field of an image’s height in pixels.


resource: string

Defined in: packages/schema/src/model.ts:2006

The attachment resource.


optional width?: string

Defined in: packages/schema/src/model.ts:2012

The integer field of an image’s width in pixels, such as one .derive() fills with imageSize('width').