mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
16 lines
487 B
SQL
16 lines
487 B
SQL
CREATE TABLE IF NOT EXISTS "attachments"
|
|
(
|
|
attachmentId TEXT not null primary key,
|
|
parentId TEXT not null,
|
|
role TEXT not null,
|
|
mime TEXT not null,
|
|
title TEXT not null,
|
|
isProtected INT not null DEFAULT 0,
|
|
blobId TEXT not null,
|
|
utcDateModified TEXT not null,
|
|
isDeleted INT not null,
|
|
deleteId TEXT DEFAULT NULL);
|
|
|
|
CREATE UNIQUE INDEX IDX_attachments_parentId_role
|
|
on attachments (parentId, role);
|