view Sources/PrepareDatabase.sql @ 1:d745ea3db32c

fix import of external DICOM
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 20 Sep 2021 16:10:42 +0200
parents 6b08fcddd900
children
line wrap: on
line source

CREATE TABLE Files(
       path TEXT PRIMARY KEY NOT NULL,
       time INTEGER NOT NULL,
       size INTEGER NOT NULL,
       isDicom INTEGER NOT NULL,
       instanceId TEXT NOT NULL
       );

CREATE TABLE Attachments(
       uuid TEXT PRIMARY KEY NOT NULL,
       instanceId NOT NULL
       );

CREATE INDEX InstancesIndex ON Files(instanceId);