Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| il_meeting_online [02/08/2010 16:47] | il_meeting_online [05/06/2013 17:08] (versione attuale) | ||
|---|---|---|---|
| Linea 1: | Linea 1: | ||
| ====== ER del Meeting ====== | ====== ER del Meeting ====== | ||
| - | {{:meeting_er_2.jpg|}} | + | {{:meeting_er3.jpg|}} | 
| ---- | ---- | ||
| Linea 8: | Linea 8: | ||
| \\ | \\ | ||
| \\ | \\ | ||
| - | CREATE TABLE `meetings` ( | + | **MEETINGS** | 
| - | `id` int(11) NOT NULL auto_increment, | + | \\ | 
| - | `title` text NOT NULL, | + | CREATE TABLE IF NOT EXISTS `meetings` ( | 
| - | `main_motion` int(11) NOT NULL, | + | `id` int(11) NOT NULL auto_increment, | 
| + | `title` text NOT NULL, | ||
| + | `main_motion` int(11) NOT NULL, | ||
| + | `floor_timer` int(11) NOT NULL, | ||
| + | `id_oob` int(11) NOT NULL, | ||
| + | `suspend` int(11) NOT NULL, | ||
| + | `quorum` int(11) NOT NULL, | ||
| PRIMARY KEY (`id`) | PRIMARY KEY (`id`) | ||
| - | ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | + | ) ENGINE=MyISAM  DEFAULT CHARSET=latin1; | 
| \\ | \\ | ||
| - | CREATE TABLE `meeting_odg` ( | + | **MEETING_ODG** - Descrizione ordine del giorno. | 
| - | `id` INT NOT NULL , | + | |
| - | `meeting_id` INT NOT NULL , | + | |
| - | `timestamp` TIMESTAMP NOT NULL , | + | |
| - | `description` TEXT NOT NULL | + | |
| - | ) ENGINE = MYISAM ; | + | |
| \\ | \\ | ||
| - | CREATE TABLE `users` ( | + | CREATE TABLE IF NOT EXISTS `meeting_odg` ( | 
| - | `id` int(11) NOT NULL auto_increment, | + | `id` int(11) NOT NULL auto_increment, | 
| - | `username` varchar(255) NOT NULL default '', | + | `meeting_id` int(11) NOT NULL, | 
| - | `password` varchar(36) NOT NULL default '', | + | `timestamp` datetime NOT NULL, | 
| - | `first_name` varchar(255) default '', | + | `description` text NOT NULL, | 
| - | `last_name` varchar(255) default '', | + | PRIMARY KEY (`id`) | 
| - | `email` varchar(255) NOT NULL default '', | + | ) ENGINE=MyISAM  DEFAULT CHARSET=latin1; | 
| - | `showemail` tinyint(1) NOT NULL default '0', | + | |
| - | `admin` tinyint(1) NOT NULL default '0', | + | |
| - | `active` tinyint(1) NOT NULL default '0', | + | |
| - | `created` datetime default NULL, | + | |
| - | `modified` datetime default NULL, | + | |
| - | PRIMARY KEY (`id`), | + | |
| - | UNIQUE KEY `username` (`username`), | + | |
| - | UNIQUE KEY `email` (`email`) | + | |
| - | ) ENGINE=MyISAM | + | |
| \\ | \\ | ||
| - | CREATE TABLE `meeting_messages` ( | + | **MEETING MESSAGES** | 
| - | `id_messaggio` int(11) NOT NULL, | + | |
| - | `testo` text NOT NULL, | + | |
| - | `autore` int(11) NOT NULL, | + | |
| - | `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP | + | |
| - | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | + | |
| \\ | \\ | ||
| - | CREATE TABLE `meeting_rules` ( | + | CREATE TABLE IF NOT EXISTS `meeting_messages` ( | 
| - | `description` text NOT NULL, | + | `id` int(10) unsigned NOT NULL auto_increment, | 
| - | `rank` int(11) NOT NULL, | + | `text` text NOT NULL, | 
| - | `interrupt` tinyint(1) NOT NULL, | + | `user_id` int(10) unsigned NOT NULL, | 
| - | `secondable` tinyint(1) NOT NULL, | + | `motion_id` int(10) unsigned NOT NULL, | 
| - | `debateable` tinyint(1) NOT NULL, | + | `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, | 
| - | `vote` int(11) NOT NULL, | + | PRIMARY KEY (`id`) | 
| - | `amendable` tinyint(1) NOT NULL, | + | ) ENGINE=MyISAM  DEFAULT CHARSET=latin1; | 
| - | PRIMARY KEY (`rank`) | + | |
| - | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | + | |
| \\ | \\ | ||
| - | CREATE TABLE `meeting_messages` ( | + | **MEETING RULES** | 
| - | `id_messaggio` int(11) NOT NULL, | + | |
| - | `testo` text NOT NULL, | + | |
| - | `autore` int(11) NOT NULL, | + | |
| - | `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP | + | |
| - | ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | + | |
| \\ | \\ | ||
| + | CREATE TABLE IF NOT EXISTS `meeting_rules` ( | ||
| + | `description` text NOT NULL, | ||
| + | `id` int(11) NOT NULL, | ||
| + | `interrupt` tinyint(1) NOT NULL, | ||
| + | `secondable` tinyint(1) NOT NULL, | ||
| + | `debateable` tinyint(1) NOT NULL, | ||
| + | `vote` int(11) NOT NULL, | ||
| + | `amendable` tinyint(1) NOT NULL, | ||
| + | PRIMARY KEY (`id`) | ||
| + | ) ENGINE=MyISAM  DEFAULT CHARSET=latin1; | ||
| + | \\ | ||
| + | **MEETING MOTIONS** | ||
| + | \\ | ||
| + | CREATE TABLE IF NOT EXISTS `meeting_motions` ( | ||
| + | `id` int(11) NOT NULL auto_increment, | ||
| + | `testo` text NOT NULL, | ||
| + | `user_id` int(11) NOT NULL, | ||
| + | `timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP, | ||
| + | `meeting_id` int(11) NOT NULL, | ||
| + | `rule_id` int(11) NOT NULL, | ||
| + | `main_motion` int(11) NOT NULL, | ||
| + | `seconded` int(11) NOT NULL, | ||
| + | `debated` int(11) NOT NULL, | ||
| + | `vote` int(11) NOT NULL, | ||
| + | `closed` tinyint(1) NOT NULL, | ||
| + | `oob_id` int(11) NOT NULL, | ||
| + | PRIMARY KEY (`id`) | ||
| + | ) ENGINE=MyISAM  DEFAULT CHARSET=latin1; | ||
| + | \\ | ||
| + | **USERS** vedi [[il modello generale | modello generale]] | ||
| + | \\ | ||
| + | \\ | ||
| + | \\ | ||
| + | [[la consultazione certificata | indietro]] - [[la DI | avanti]] | ||