From d2342b872cdf6e8d91b17a85c885e62ef7debf97 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Sat, 19 Apr 2025 00:06:41 +0200 Subject: [PATCH 1/2] docs(dev): reword blobs doc to avoid any misunderstandings --- .../Development and architecture/Database/blobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/blobs.md b/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/blobs.md index 83ad36bcbb..767e456722 100644 --- a/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/blobs.md +++ b/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/blobs.md @@ -1,2 +1,2 @@ # blobs -
Column NameData TypeNullityDefault valueDescription
blobIdTextNon-null The unique ID of the blob (e.g. XXbfAJXqWrYnSXcelLFA).
contentTextNullablenull

The content of the blob, can be either:

  • text (for plain text notes or HTML notes).
  • binary (for images and other types of attachments)
dateModifiedTextNon-null Localized modification date (e.g. 2023-11-08 18:43:44.204+0200)
utcDateModifiedTextNon-null Modification date in UTC format (e.g. 2023-11-08 16:43:44.204Z)
\ No newline at end of file +
Column NameData TypeNullityDefault valueDescription
blobIdTextNon-null The unique ID of the blob (e.g. XXbfAJXqWrYnSXcelLFA).

Important: this ID is actually a hash of the content, see AbstractBeccaEntity#saveBlob! It is a logic error to modify an existing blob.

contentTextNullablenull

The content of the blob, can be either:

  • text (for plain text notes or HTML notes).
  • binary (for images and other types of attachments)
dateModifiedTextNon-null Creation date with timezone offset (e.g. 2023-11-08 18:43:44.204+0200)
utcDateModifiedTextNon-null Creation date in UTC format (e.g. 2023-11-08 16:43:44.204Z).

Blobs cannot be modified, so this timestamp specifies when the blob was created.

\ No newline at end of file From ea41b768f765fd53d508f624fbc8927172038bfc Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Sat, 3 May 2025 21:01:56 +0200 Subject: [PATCH 2/2] docs(dev): more entity_changes info --- .../Development and architecture/Database/entity_changes.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/entity_changes.md b/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/entity_changes.md index 4d67b6e136..5a23273584 100644 --- a/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/entity_changes.md +++ b/docs/Developer Guide/Developer Guide/Old documentation/Development and architecture/Database/entity_changes.md @@ -1,2 +1,4 @@ -# entity_changes -
Column NameData TypeNullityDefault valueDescription
idIntegerNullable A sequential numeric index of the entity change.
entityNameTextNullable The type of entity being changed (attributes, branches, note_reordering, etc.)
entityIdTextNullable The ID of the entity being changed.
hashTextNullable TODO: Describe how the hash is calculated
isErasedIntegerNullable TODO: What does this do?
changeIdTextNullable TODO: What does this do?
componentIdTextNullable TODO: What does this do?
instanceIdTextNullable TODO: What does this do?
isSyncedIntegerNullable TODO: What does this do?
utcDateChangedTextNullable Date of the entity change in UTC format (e.g. 2023-11-08 16:43:44.204Z)
\ No newline at end of file +# entity_changes +
Column NameData TypeNullityDefault valueDescription
idIntegerNon-null A sequential numeric index of the entity change.
entityNameTextNon-null The type of entity being changed (attributes, branches, note_reordering, etc.)
entityIdTextNon-null The ID of the entity being changed.
hashTextNullable (*) TODO: Describe how the hash is calculated
isErasedInteger (1 or 0)Nullable (*) TODO: What does this do?
changeIdTextNullable (*) TODO: What does this do?
componentIdTextNullable (*) 

The ID of the UI component that caused this change.

Examples: date-note, F-PoZMI0vc, NA (catch all)

instanceIdTextNullable (*) The ID of the instance that created this change.
isSyncedInteger (1 or 0)Non-null TODO: What does this do?
utcDateChangedTextNon-null Date of the entity change in UTC format (e.g. 2023-11-08 16:43:44.204Z)
+ +Nullable (\*) means all new values are non-null, old rows may contain null values. \ No newline at end of file