mirror of
https://github.com/zadam/trilium.git
synced 2024-11-17 13:14:44 +08:00
12 lines
No EOL
336 B
SQL
12 lines
No EOL
336 B
SQL
CREATE TABLE attributes
|
|
(
|
|
attribute_id TEXT PRIMARY KEY NOT NULL,
|
|
note_id TEXT NOT NULL,
|
|
name TEXT NOT NULL,
|
|
value TEXT,
|
|
date_created TEXT NOT NULL,
|
|
date_modified TEXT NOT NULL
|
|
);
|
|
|
|
CREATE INDEX attributes_note_id_index ON attributes (note_id);
|
|
CREATE UNIQUE INDEX attributes_note_id_name_index ON attributes (note_id, name); |