mirror of
https://github.com/zadam/trilium.git
synced 2024-11-13 19:26:28 +08:00
16 lines
345 B
MySQL
16 lines
345 B
MySQL
|
DROP TABLE images;
|
||
|
|
||
|
CREATE TABLE images
|
||
|
(
|
||
|
image_id TEXT PRIMARY KEY NOT NULL,
|
||
|
note_id TEXT NOT NULL,
|
||
|
format TEXT NOT NULL,
|
||
|
checksum TEXT NOT NULL,
|
||
|
name TEXT NOT NULL,
|
||
|
data BLOB,
|
||
|
is_deleted INT NOT NULL DEFAULT 0,
|
||
|
date_modified TEXT NOT NULL,
|
||
|
date_created TEXT NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE INDEX images_note_id_index ON images (note_id);
|