CREATE TABLE sessions ( id varchar(50) NOT NULL default '', name varchar(50) NOT NULL default '', datum timestamp NOT NULL default CURRENT_TIMESTAMP, PRIMARY KEY (id), UNIQUE KEY user (name, id) )