view Sources/PrepareDatabase.sql @ 10:142c9e2ee8b3

back to mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 24 Sep 2021 13:08:10 +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);