Created
November 18, 2012 06:45
-
-
Save jclay/4103907 to your computer and use it in GitHub Desktop.
uptimeMart mockup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- A server has multiple responses | |
CREATE TABLE severs | |
( | |
id serial NOT NULL, | |
url character varying(255) | |
); | |
--Each response belongs to one and only one server | |
CREATE TABLE responses | |
( | |
id serial NOT NULL, | |
-- Let's leave response time off for now | |
successful boolean NOT NULL | |
server_id integer | |
created_at timestamp without time zone NOT NULL, #When was this response initiated? | |
CONSTRAINT responses_pkey PRIMARY KEY (id ) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment