2023-03-16 11:03:28 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS "note_attachments"
|
2023-03-08 09:01:23 +01:00
|
|
|
(
|
2023-03-16 11:03:28 +01:00
|
|
|
noteAttachmentId TEXT not null primary key,
|
2023-03-08 09:01:23 +01:00
|
|
|
noteId TEXT not null,
|
|
|
|
name TEXT not null,
|
|
|
|
mime TEXT not null,
|
|
|
|
isProtected INT not null DEFAULT 0,
|
2023-03-15 22:44:08 +01:00
|
|
|
blobId TEXT not null,
|
2023-03-08 09:01:23 +01:00
|
|
|
utcDateModified TEXT not null,
|
|
|
|
isDeleted INT not null,
|
|
|
|
`deleteId` TEXT DEFAULT NULL);
|
|
|
|
|
2023-03-16 11:03:28 +01:00
|
|
|
CREATE INDEX IDX_note_attachments_name
|
|
|
|
on note_attachments (name);
|
|
|
|
CREATE UNIQUE INDEX IDX_note_attachments_noteId_name
|
|
|
|
on note_attachments (noteId, name);
|