-
-
Save ijunaid8989/783c5d8f959ee8fb2b2c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
CREATE TABLE cameras | |
( | |
id integer NOT NULL DEFAULT nextval('sq_streams'::regclass), | |
created_at timestamp with time zone NOT NULL DEFAULT now(), | |
updated_at timestamp with time zone NOT NULL DEFAULT now(), | |
exid text NOT NULL, | |
owner_id integer NOT NULL, | |
is_public boolean NOT NULL, | |
config json NOT NULL, | |
name text NOT NULL, | |
last_polled_at timestamp with time zone DEFAULT now(), | |
is_online boolean, | |
timezone text, | |
last_online_at timestamp with time zone DEFAULT now(), | |
location geography(Point,4326), | |
mac_address macaddr, | |
model_id integer, | |
discoverable boolean NOT NULL DEFAULT false, | |
preview bytea, | |
thumbnail_url text, | |
CONSTRAINT pk_streams PRIMARY KEY (id) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment