]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/players.tab
Create a game_id index, and put the gin(players) index into gen_partitions.shl too...
[xonotic/xonstatdb.git] / tables / players.tab
index ec984863695caf071be8d5172d94a74bf961e295..57e81d52f3b50bed203839a8813d27d47952ed09 100644 (file)
@@ -1,9 +1,12 @@
 CREATE TABLE xonstat.players
 (
   player_id serial NOT NULL,
-  nick character varying(64),
+  nick character varying(128),
+  stripped_nick character varying(128),
   "location" character varying(100),
-  create_dt timestamp without time zone NOT NULL DEFAULT now(),
+  email_addr character varying(255),
+  active_ind boolean NOT NULL default true,
+  create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
   CONSTRAINT players_pk PRIMARY KEY (player_id)
 )
 WITH (