2007-02-02 10:39:45 +00:00
|
|
|
# $Id$
|
|
|
|
#
|
2010-01-14 04:47:14 +00:00
|
|
|
# Copyright 2005-2010, Cake Software Foundation, Inc.
|
2007-02-02 10:39:45 +00:00
|
|
|
#
|
|
|
|
# Licensed under The MIT License
|
|
|
|
# Redistributions of files must retain the above copyright notice.
|
|
|
|
# http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
|
2006-10-17 06:38:39 +00:00
|
|
|
CREATE TABLE acos (
|
|
|
|
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
2007-02-09 17:39:54 +00:00
|
|
|
parent_id INTEGER(10) DEFAULT NULL,
|
|
|
|
model VARCHAR(255) DEFAULT '',
|
|
|
|
foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
|
|
|
|
alias VARCHAR(255) DEFAULT '',
|
|
|
|
lft INTEGER(10) DEFAULT NULL,
|
|
|
|
rght INTEGER(10) DEFAULT NULL,
|
|
|
|
PRIMARY KEY (id)
|
2005-11-05 04:08:14 +00:00
|
|
|
);
|
|
|
|
|
2006-11-22 18:15:36 +00:00
|
|
|
CREATE TABLE aros_acos (
|
2006-10-17 06:38:39 +00:00
|
|
|
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
|
|
aro_id INTEGER(10) UNSIGNED NOT NULL,
|
|
|
|
aco_id INTEGER(10) UNSIGNED NOT NULL,
|
2007-01-31 22:49:26 +00:00
|
|
|
_create CHAR(2) NOT NULL DEFAULT 0,
|
|
|
|
_read CHAR(2) NOT NULL DEFAULT 0,
|
|
|
|
_update CHAR(2) NOT NULL DEFAULT 0,
|
|
|
|
_delete CHAR(2) NOT NULL DEFAULT 0,
|
2006-10-17 06:38:39 +00:00
|
|
|
PRIMARY KEY(id)
|
2005-11-05 04:08:14 +00:00
|
|
|
);
|
|
|
|
|
2006-10-17 06:38:39 +00:00
|
|
|
CREATE TABLE aros (
|
|
|
|
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
2007-02-09 17:39:54 +00:00
|
|
|
parent_id INTEGER(10) DEFAULT NULL,
|
|
|
|
model VARCHAR(255) DEFAULT '',
|
|
|
|
foreign_key INTEGER(10) UNSIGNED DEFAULT NULL,
|
|
|
|
alias VARCHAR(255) DEFAULT '',
|
|
|
|
lft INTEGER(10) DEFAULT NULL,
|
|
|
|
rght INTEGER(10) DEFAULT NULL,
|
|
|
|
PRIMARY KEY (id)
|
|
|
|
);
|