--
-- Copyright (C) 2006 The Trustees of Princeton University
--
+-- NOTE: this file was first created for version 4.3, the filename might be confusing
+--
-- $Id$
+-- $URL$
--
SET client_encoding = 'UNICODE';
node_type text PRIMARY KEY
) WITH OIDS;
INSERT INTO node_types (node_type) VALUES ('regular');
+-- old dummynet stuff, to be removed
INSERT INTO node_types (node_type) VALUES ('dummynet');
-- Nodes
ssh_rsa_key text, -- SSH host key updated by Boot Manager
key text, -- Node key generated when boot file is downloaded
verified boolean NOT NULL DEFAULT false, -- whether or not the node & pcu are verified
- extrainfo text,
-- Timestamps
date_created timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
-- Peers
CREATE TABLE peers (
peer_id serial PRIMARY KEY, -- Peer identifier
- peername text UNIQUE NOT NULL, -- Peer name
+ peername text NOT NULL, -- Peer name
peer_url text NOT NULL, -- (HTTPS) URL of the peer PLCAPI interface
cacert text, -- (SSL) Public certificate of peer API server
key text, -- (GPG) Public key used for authentication
nodes.boot_nonce,
nodes.version,
nodes.verified,
-nodes.extrainfo,
nodes.ssh_rsa_key,
nodes.key,
CAST(date_part('epoch', nodes.date_created) AS bigint) AS date_created,