Un audit passe par l'enregistrement des sessions de travail
- table
tools_audit_session
contient un pointeur vers la table
-
tools_people_sso
laquelle pointe à son tour vers
Lorsqu'une table est
sensible (ou, en jargon,
auditable), chaque entrée contient un pointeur vers une entrée dans la table
tools_entry_audit
qui rassemble les infos relatives à l'historique et aux permissions (en ce compris les dates début/fin).
-
tools_entry_audit
contient
- des pointeurs vers la table
tools_audit_session
- un mode décrit dans la table
tools_doc_entry_flag
Session
Un audit passe par l'enregistrement des sessions de travail
tools_audit_session
DROP TABLE IF EXISTS `tools_audit_session`;
CREATE TABLE IF NOT EXISTS `tools_audit_session` (
`pid` int(11) unsigned NOT NULL auto_increment,
`unix_time` int(11) unsigned NOT NULL,
`ip` char(15) character set ascii NOT NULL,
`client_host` varchar(128) character set ascii NOT NULL,
`user_agent` varchar(255) character set ascii NOT NULL,
`referer` varchar(255) character set ascii NOT NULL,
`accept_language` varchar(255) character set ascii NOT NULL,
`accept_types` varchar(255) character set ascii NOT NULL,
`id_people_sso` int(11) unsigned NOT NULL,
`applic_table` varchar(64) character set ascii NOT NULL,
PRIMARY KEY (`pid`),
KEY `id_people_sso` (`id_people_sso`)
) ENGINE=InnoDB
DEFAULT CHARSET=utf8
AUTO_INCREMENT=1 ;
TODO : ??? applic_table ???
∴
tools_entry_audit
Lorsqu'une table est
sensible (ou, en jargon,
auditable), chaque entrée contient un pointeur vers une entrée dans la table
tools_entry_audit
qui rassemble les infos relatives à l'historique et aux permissions (en ce compris les dates début/fin).
DROP TABLE IF EXISTS `tools_entry_audit`;
CREATE TABLE IF NOT EXISTS `tools_entry_audit` (
`pid` int(11) unsigned NOT NULL auto_increment,
`id_create_session` int(11) unsigned NOT NULL default '0',
`id_last_modif_session` int(11) unsigned NOT NULL default '0',
`unix_time_begin` int(11) unsigned NOT NULL default '0',
`unix_time_end` int(11) unsigned NOT NULL default '0',
`applic_table` varchar(64) character set ascii NOT NULL,
`rw_mode` tinyint(3) unsigned NOT NULL default '51'
COMMENT 'flags : 51 = 1+2+16+32',
PRIMARY KEY (`pid`)
) ENGINE=InnoDB
DEFAULT CHARSET=utf8
AUTO_INCREMENT=1 ;