-
Notifications
You must be signed in to change notification settings - Fork 2
/
create_tables.sql
68 lines (48 loc) · 1.35 KB
/
create_tables.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: stream_log; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE stream_log (
id integer NOT NULL,
batch integer NOT NULL,
channel character varying(64) NOT NULL,
title character varying(128),
game character varying(64),
viewers integer NOT NULL,
date bigint NOT NULL
);
--
-- Name: stream_log_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE stream_log_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: stream_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE stream_log_id_seq OWNED BY stream_log.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY stream_log ALTER COLUMN id SET DEFAULT nextval('stream_log_id_seq'::regclass);
--
-- Name: stream_log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres; Tablespace:
--
ALTER TABLE ONLY stream_log
ADD CONSTRAINT stream_log_pkey PRIMARY KEY (id);
--
-- PostgreSQL database dump complete
--