/** * '$RCSfile$' * Copyright: 2004 Regents of the University of California and the * National Center for Ecological Analysis and Synthesis * * '$Author: jones $' * '$Date: 2004-04-02 11:43:13 -0800 (Fri, 02 Apr 2004) $' * '$Revision: 2101 $' * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* *Logging -- table to store metadata and data access log */ CREATE SEQUENCE access_log_id_seq; CREATE TABLE access_log ( entryid INT8 default nextval ('access_log_id_seq'), -- the identifier for the log event ip_address VARCHAR(512), -- the ip address inititiating the event principal VARCHAR(512), -- the user initiiating the event docid VARCHAR(250), -- the document id # event VARCHAR(512), -- the code symbolizing the event type date_logged TIMESTAMP, -- the datetime on which the event occurred CONSTRAINT access_log_pk PRIMARY KEY (entryid) );