QString tableWindow = "CREATE TABLE listwindow (" " dateTimeSession datetime," " name varchar(50)," " title varchar(250)," " focus int(1)," " flagActivity int(1)," " id int(5) unsigned NOT NULL auto_increment," " PRIMARY KEY (id)," "FOREIGN KEY (dateTimeSession) REFERENCES sessions (dateTimeSession) ON DELETE NO ACTION ON UPDATE NO ACTION);";
id int AUTO_INCREMENT, PRIMARY KEY (id)
"CREATE TABLE listwindow (" " dateTimeSession datetime," " name varchar(50)," " title varchar(250)," " focus int(1)," " flagActivity int(1)," " id INTEGER PRIMARY KEY AUTOINCREMENT," "FOREIGN KEY (dateTimeSession) REFERENCES sessions (dateTimeSession) ON DELETE NO ACTION ON UPDATE NO ACTION);";