1 CREATE TABLE xonstat.player_game_stats
3 player_game_stat_id bigserial NOT NULL,
4 player_id integer NOT NULL,
5 game_id bigint NOT NULL,
6 nick character varying(64),
22 destroys_holding_key integer,
25 carrier_frags integer,
26 create_dt timestamp without time zone NOT NULL,
27 CONSTRAINT player_game_stats_pk PRIMARY KEY (player_game_stat_id),
28 CONSTRAINT player_game_stats_fk001 FOREIGN KEY (player_id)
29 REFERENCES xonstat.players (player_id) MATCH SIMPLE
30 ON UPDATE NO ACTION ON DELETE NO ACTION,
31 CONSTRAINT player_game_stats_fk002 FOREIGN KEY (game_id)
32 REFERENCES xonstat.games (game_id) MATCH SIMPLE
33 ON UPDATE NO ACTION ON DELETE NO ACTION,
34 CONSTRAINT player_game_stats_uk001 UNIQUE (player_id, game_id)
39 CREATE INDEX player_game_stats_ix01 on player_game_stats(create_dt);
40 ALTER TABLE xonstat.player_game_stats OWNER TO xonstat;
42 CREATE TABLE xonstat.player_game_stats_2011Q2 (
43 CHECK ( create_dt >= DATE '2011-04-01' AND create_dt < DATE '2011-07-01' )
44 ) INHERITS (player_game_stats);
45 CREATE INDEX player_game_stats_2011Q2_ix01 on player_game_stats_2011Q2(create_dt);
46 ALTER TABLE xonstat.player_game_stats_2011Q2 OWNER TO xonstat;
48 CREATE TABLE xonstat.player_game_stats_2011Q3 (
49 CHECK ( create_dt >= DATE '2011-07-01' AND create_dt < DATE '2011-10-01' )
50 ) INHERITS (player_game_stats);
51 CREATE INDEX player_game_stats_2011Q3_ix01 on player_game_stats_2011Q3(create_dt);
52 ALTER TABLE xonstat.player_game_stats_2011Q3 OWNER TO xonstat;
54 CREATE TABLE xonstat.player_game_stats_2011Q4 (
55 CHECK ( create_dt >= DATE '2011-10-01' AND create_dt < DATE '2012-01-01' )
56 ) INHERITS (player_game_stats);
57 CREATE INDEX player_game_stats_2011Q4_ix01 on player_game_stats_2011Q4(create_dt);
58 ALTER TABLE xonstat.player_game_stats_2011Q4 OWNER TO xonstat;
60 CREATE TABLE xonstat.player_game_stats_2012Q1 (
61 CHECK ( create_dt >= DATE '2012-01-01' AND create_dt < DATE '2012-04-01' )
62 ) INHERITS (player_game_stats);
63 CREATE INDEX player_game_stats_2012Q1_ix01 on player_game_stats_2012Q1(create_dt);
64 ALTER TABLE xonstat.player_game_stats_2012Q1 OWNER TO xonstat;
66 CREATE TABLE xonstat.player_game_stats_2012Q2 (
67 CHECK ( create_dt >= DATE '2012-04-01' AND create_dt < DATE '2012-07-01' )
68 ) INHERITS (player_game_stats);
69 CREATE INDEX player_game_stats_2012Q2_ix01 on player_game_stats_2012Q2(create_dt);
70 ALTER TABLE xonstat.player_game_stats_2012Q2 OWNER TO xonstat;
72 CREATE TABLE xonstat.player_game_stats_2012Q3 (
73 CHECK ( create_dt >= DATE '2012-07-01' AND create_dt < DATE '2012-10-01' )
74 ) INHERITS (player_game_stats);
75 CREATE INDEX player_game_stats_2012Q3_ix01 on player_game_stats_2012Q3(create_dt);
76 ALTER TABLE xonstat.player_game_stats_2012Q3 OWNER TO xonstat;
78 CREATE TABLE xonstat.player_game_stats_2012Q4 (
79 CHECK ( create_dt >= DATE '2012-10-01' AND create_dt < DATE '2013-01-01' )
80 ) INHERITS (player_game_stats);
81 CREATE INDEX player_game_stats_2012Q4_ix01 on player_game_stats_2012Q4(create_dt);
82 ALTER TABLE xonstat.player_game_stats_2012Q4 OWNER TO xonstat;
84 CREATE TABLE xonstat.player_game_stats_2013Q1 (
85 CHECK ( create_dt >= DATE '2013-01-01' AND create_dt < DATE '2013-04-01' )
86 ) INHERITS (player_game_stats);
87 CREATE INDEX player_game_stats_2013Q1_ix01 on player_game_stats_2013Q1(create_dt);
88 ALTER TABLE xonstat.player_game_stats_2013Q1 OWNER TO xonstat;
90 CREATE TABLE xonstat.player_game_stats_2013Q2 (
91 CHECK ( create_dt >= DATE '2013-04-01' AND create_dt < DATE '2013-07-01' )
92 ) INHERITS (player_game_stats);
93 CREATE INDEX player_game_stats_2013Q2_ix01 on player_game_stats_2013Q2(create_dt);
94 ALTER TABLE xonstat.player_game_stats_2013Q2 OWNER TO xonstat;