diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/artifact-database/doc/schema.sql	Thu Sep 03 16:13:25 2009 +0000
@@ -0,0 +1,16 @@
+--
+-- schema to store artifacts in H2 databases.
+--
+
+BEGIN;
+
+CREATE TABLE artifacts (
+    id          INT AUTO_INCREMENT PRIMARY KEY NOT NULL,
+    gid         UUID      NOT NULL UNIQUE,
+    creation    TIMESTAMP NOT NULL,
+    last_access TIMESTAMP NOT NULL,
+    ttl         TIME, -- NULL means eternal
+    data        BLOB
+);
+
+COMMIT;

http://dive4elements.wald.intevation.org