]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blob - tables/hashkeys.tab
0240c902624d30535a7098d25774e50d7a26273f
[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 now(),
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 )
12 WITH (
13   OIDS=FALSE
14 );
15 ALTER TABLE xonstat.hashkeys OWNER TO xonstat;