annotate artifact-database/doc/schema.sql @ 3:b1ec257e9d8d

Added dependencies to H2 and restlet. artifacts/trunk@11 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 03 Sep 2009 16:13:25 +0000
parents
children 13a12b607baf
rev   line source
3
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1 --
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 -- schema to store artifacts in H2 databases.
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 --
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
4
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
5 BEGIN;
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
6
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
7 CREATE TABLE artifacts (
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
8 id INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
9 gid UUID NOT NULL UNIQUE,
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10 creation TIMESTAMP NOT NULL,
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11 last_access TIMESTAMP NOT NULL,
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
12 ttl TIME, -- NULL means eternal
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
13 data BLOB
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
14 );
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
15
b1ec257e9d8d Added dependencies to H2 and restlet.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
16 COMMIT;

http://dive4elements.wald.intevation.org