1 CREATE TABLE IF NOT EXISTS ninja_saved_queries (
2 id int(11) NOT NULL auto_increment,
3 username varchar(255) NOT NULL,
4 query_name varchar(255) NOT NULL,
5 query_table varchar(255) NOT NULL,
7 query_description TEXT NOT NULL,
9 INDEX (username,query_table),
10 INDEX (query_table,username),
12 UNIQUE (username,query_name)
13 ) COLLATE latin1_general_cs ENGINE=InnoDB;