CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `firstname` varchar(50) NOT NULL, `lastname` varchar(50) NOT NULL, `login` varchar(50) NOT NULL, `email` varchar(50) NULL, PRIMARY KEY (`id`) ) TYPE=InnoDB; CREATE TABLE `groups` ( `id` int(11) NOT NULL auto_increment, `name` int(11) NOT NULL, `description` varchar(50) default NULL, PRIMARY KEY (`id`) ) TYPE=InnoDB; CREATE TABLE `memberships` ( `id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL, `group_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) TYPE=InnoDB; CREATE TABLE `person` ( `id` int(11) NOT NULL auto_increment, `firstname` varchar(50) NOT NULL, `lastname` varchar(50) NOT NULL, `login` varchar(50) NOT NULL, `email` varchar(50) NULL, PRIMARY KEY (`id`) ) TYPE=InnoDB;