view artifact-database/doc/schema-pg.sql @ 39:075cb3778d71

Added some IDE-specific files to the Ignorelist. artifacts/trunk@107 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 21 Sep 2009 11:56:10 +0000
parents 93edc04f3a10
children 5e4bc24ea438
line wrap: on
line source
--
-- schema to store artifacts in PostgreSQL databases.
--

BEGIN;

-- not using AUTO_INCREMENT to be more compatible with
-- other dbms.
CREATE SEQUENCE ARTIFACTS_ID_SEQ;

CREATE TABLE artifacts (
    id          int PRIMARY KEY NOT NULL,
    gid         uuid            NOT NULL UNIQUE,
    creation    timestamp       NOT NULL,
    last_access timestamp       NOT NULL,
    ttl         bigint, -- NULL means eternal
    data        bytea
);

COMMIT;

http://dive4elements.wald.intevation.org