JournalEntry

@Serializable
data class JournalEntry(val id: String = "", val content: String = "", val photoUrls: List<String> = emptyList(), val createdAt: Long = 0, val updatedAt: Long = 0)(source)

One journal entry — text body plus optional photos.

id is generated client-side at creation time so the editor can reorder entries optimistically without round-tripping to the server.

Constructors

Link copied to clipboard
constructor(id: String = "", content: String = "", photoUrls: List<String> = emptyList(), createdAt: Long = 0, updatedAt: Long = 0)

Properties

Link copied to clipboard

Markdown-flavoured text body.

Link copied to clipboard

Epoch millis the entry was created. 0 for entries that haven't been saved yet.

Link copied to clipboard
val id: String

Stable per-entry UUID.

Link copied to clipboard

URLs of photos uploaded for this entry, in the order the user added them.

Link copied to clipboard

Epoch millis of the most recent edit.