0% found this document useful (0 votes)
41 views2 pages

Page 1 of 2 5 - SQL - Tables - Acl - SQL Printed: 17/06/2011 05:56:03 Printed For: Christophe

The document contains SQL commands that create several database tables: - The "acos" table stores access control objects with fields like ID, parent ID, model, and left/right values. - The "aros" table stores access request objects with similar fields. - The "aros_acos" table stores the many-to-many relationships between access request and control objects. - The "groups" and "users" tables store group and user data with IDs, names, and timestamps.

Uploaded by

keitabando
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views2 pages

Page 1 of 2 5 - SQL - Tables - Acl - SQL Printed: 17/06/2011 05:56:03 Printed For: Christophe

The document contains SQL commands that create several database tables: - The "acos" table stores access control objects with fields like ID, parent ID, model, and left/right values. - The "aros" table stores access request objects with similar fields. - The "aros_acos" table stores the many-to-many relationships between access request and control objects. - The "groups" and "users" tables store group and user data with IDs, names, and timestamps.

Uploaded by

keitabando
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

5_sql_tables_acl.

sql Printed: 17/06/2011 05:56:03

Page 1 of 2 Printed For: christophe

CREATE TABLE `acos` ( `id` int(10) NOT NULL auto_increment, `parent_id` int(10) default NULL, `model` varchar(255) collate utf8_bin default NULL, `foreign_key` int(10) default NULL, `alias` varchar(255) collate utf8_bin default NULL, `lft` int(10) default NULL, `rght` int(10) default NULL, PRIMARY KEY (`id`), KEY `alias` (`alias`), KEY `lft` (`lft`,`rght`), KEY `model` (`model`,`foreign_key`), KEY `foreign_key` (`foreign_key`,`lft`) ) ENGINE=MyISAM AUTO_INCREMENT=240 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE `aros` ( `id` int(10) unsigned NOT NULL auto_increment, `parent_id` int(10) default NULL, `model` varchar(255) collate utf8_bin default '', `foreign_key` int(10) unsigned default NULL, `alias` varchar(255) collate utf8_bin default '', `lft` int(10) default NULL, `rght` int(10) default NULL, PRIMARY KEY (`id`), KEY `alias` (`alias`), KEY `lft` (`lft`,`rght`), KEY `model` (`model`,`foreign_key`), KEY `foreign_key` (`foreign_key`,`lft`) ) ENGINE=MyISAM AUTO_INCREMENT=74 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE `aros_acos` ( `id` int(10) NOT NULL auto_increment, `aro_id` int(10) NOT NULL, `aco_id` int(10) NOT NULL, `_create` varchar(2) collate utf8_bin NOT NULL default '0', `_read` varchar(2) collate utf8_bin NOT NULL default '0', `_update` varchar(2) collate utf8_bin NOT NULL default '0', `_delete` varchar(2) collate utf8_bin NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `ARO_ACO_KEY` (`aro_id`,`aco_id`) ) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE `groups` ( `id` int(11) NOT NULL auto_increment, `name` varchar(100) collate utf8_bin NOT NULL, `created` datetime default NULL, `modified` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

5_sql_tables_acl.sql Printed: 17/06/2011 05:56:03

Page 2 of 2 Printed For: christophe

CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `username` varchar(50) collate utf8_general_ci NOT NULL, `email` varchar(255) character set utf8 collate utf8_unicode_ci NOT NULL, `password` varchar(500) character set utf8 collate utf8_unicode_ci NOT NULL, `group_id` int(11) NOT NULL default '3', `active` tinyint(4) NOT NULL default '0', `created` datetime default NULL, `modified` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=70 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

You might also like