mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-16 11:58:25 +00:00
3f2fa6929b
Removing address and replacing with cakefoundation url git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
40 lines
No EOL
1.2 KiB
SQL
40 lines
No EOL
1.2 KiB
SQL
# $Id$
|
|
#
|
|
# Copyright 2005-2008, Cake Software Foundation, Inc.
|
|
#
|
|
# 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
|
|
|
|
CREATE TABLE acos (
|
|
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
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)
|
|
);
|
|
|
|
CREATE TABLE aros_acos (
|
|
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
aro_id INTEGER(10) UNSIGNED NOT NULL,
|
|
aco_id INTEGER(10) UNSIGNED NOT NULL,
|
|
_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,
|
|
PRIMARY KEY(id)
|
|
);
|
|
|
|
CREATE TABLE aros (
|
|
id INTEGER(10) UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
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)
|
|
); |