]> git.xonotic.org Git - xonotic/xonstatdb.git/blob - tables/player_skills.tab
Add TKA to the full build.
[xonotic/xonstatdb.git] / tables / player_skills.tab
1 CREATE TABLE xonstat.player_skills
2 (
3   player_id integer NOT NULL,
4   game_type_cd character varying(10) NOT NULL,
5   mu numeric NOT NULL,
6   sigma numeric NOT NULL,
7   active_ind boolean NOT NULL default true,
8   create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
9   update_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
10   CONSTRAINT player_skills_pk PRIMARY KEY (player_id, game_type_cd),
11   CONSTRAINT player_skills_fk01 FOREIGN KEY (player_id)
12       REFERENCES xonstat.players (player_id) MATCH SIMPLE
13       ON UPDATE NO ACTION ON DELETE NO ACTION,
14   CONSTRAINT player_skills_fk02 FOREIGN KEY (game_type_cd)
15       REFERENCES xonstat.cd_game_type (game_type_cd) MATCH SIMPLE
16       ON UPDATE NO ACTION ON DELETE NO ACTION
17 )
18 WITH (
19   OIDS=FALSE
20 );
21 ALTER TABLE xonstat.player_skills OWNER TO xonstat;