]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blob - tables/hashkeys.tab
Change game type codes to match new gametypes abbreviations.
[xonotic/xonstatdb.git] / tables / hashkeys.tab
1 CREATE TABLE xonstat.hashkeys
2 (
3   player_id integer NOT NULL,
4   hashkey character varying(44) NOT NULL,
5   active_ind boolean NOT NULL DEFAULT true,
6   create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
7   CONSTRAINT hashkeys_pk PRIMARY KEY (player_id, hashkey),
8   CONSTRAINT hashkeys_fk001 FOREIGN KEY (player_id)
9       REFERENCES xonstat.players (player_id) MATCH SIMPLE
10       ON UPDATE NO ACTION ON DELETE NO ACTION,
11   CONSTRAINT hashkeys_uk001 UNIQUE (hashkey)
12 )
13 WITH (
14   OIDS=FALSE
15 );
16 ALTER TABLE xonstat.hashkeys OWNER TO xonstat;