mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-02 05:51:30 +08:00
18 lines
577 B
SQL
18 lines
577 B
SQL
CREATE TABLE IF NOT EXISTS "note_ancillaries"
|
|
(
|
|
noteAncillaryId TEXT not null primary key,
|
|
noteId TEXT not null,
|
|
name TEXT not null,
|
|
mime TEXT not null,
|
|
isProtected INT not null DEFAULT 0,
|
|
contentCheckSum TEXT not null,
|
|
blobId TEXT not null,
|
|
utcDateModified TEXT not null,
|
|
isDeleted INT not null,
|
|
`deleteId` TEXT DEFAULT NULL);
|
|
|
|
CREATE INDEX IDX_note_ancillaries_name
|
|
on note_ancillaries (name);
|
|
CREATE UNIQUE INDEX IDX_note_ancillaries_noteId_name
|
|
on note_ancillaries (noteId, name);
|