summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/vendor/cake_1.1.20.7692/app/config/sql/db_acl.sql
blob: be8f20019afe2d9223909dacd37db1b6a2f72c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: db_acl.sql 6305 2008-01-02 02:33:56Z phpnut $
#
# Copyright 2005-2008,	Cake Software Foundation, Inc.
#								1785 E. Sahara Avenue, Suite 490-204
#								Las Vegas, Nevada 89104
#
# 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,
  object_id INTEGER(10) NULL DEFAULT NULL,
  alias VARCHAR(255) NOT NULL DEFAULT '',
  lft INTEGER(10) NULL DEFAULT NULL,
  rght INTEGER(10) NULL 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,
  foreign_key INTEGER(10) UNSIGNED NULL DEFAULT NULL,
  alias VARCHAR(255) NOT NULL DEFAULT '',
  lft INTEGER(10) NULL DEFAULT NULL,
  rght INTEGER(10) NULL DEFAULT NULL,
  PRIMARY KEY(id)
);