]> de.git.xonotic.org Git - xonotic/xonstatdb.git/blobdiff - tables/players.tab
Give the active MVs primary keys.
[xonotic/xonstatdb.git] / tables / players.tab
old mode 100644 (file)
new mode 100755 (executable)
index 5f2e685..57e81d5
@@ -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 with 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 (