tables.sql 830 Bytes
Newer Older
David Morley's avatar
David Morley committed
1 2 3
CREATE TABLE pods (
 id serial8 UNIQUE PRIMARY KEY,
 domain text UNIQUE NOT NULL,
David Morley's avatar
David Morley committed
4 5 6
 score int DEFAULT 10,
 adminrating int DEFAULT 10,
 userrating int DEFAULT 10,
David Morley's avatar
David Morley committed
7
 whois text,
8
 hidden text DEFAULT 'yes',
David Morley's avatar
David Morley committed
9 10 11
 ip cidr,
 ptr text,
 email text,
12
 ipv6 text,
David Morley's avatar
David Morley committed
13 14 15 16 17 18
 secure text,
 sslvalid text,
 Hgitdate text,
 Hgitref text,
 Hruntime text,
 Hencoding text,
19 20
 pingdomurl text,
 pingdomlast text,
David Morley's avatar
David Morley committed
21 22 23 24 25 26 27
 monthsmonitored int,
 uptimelast7 text,
 status text,
 responsetimelast7 text,
 dateUpdated timestamp DEFAULT current_timestamp,
 dateLaststats timestamp DEFAULT current_timestamp,
 dateCreated timestamp DEFAULT current_timestamp
David Morley's avatar
David Morley committed
28 29 30 31 32 33 34
);
CREATE TABLE rating_comments (
 id serial8 UNIQUE PRIMARY KEY,
 domain text NOT NULL,
 comment text,
 admin text, 
 pod_id int,
35 36
 rating int,
 username text,
David Morley's avatar
David Morley committed
37 38
 userurl text,
 date timestamp DEFAULT current_timestamp
David Morley's avatar
David Morley committed
39
);