11.26 text saved
predominant
Tags add more
Acl MySQL  
Note
Acl MySQL Dump
  1. mysql> select * from aros;
  2. +----+-----------+----------+-------------+-------+------+------+
  3. | id | parent_id | model    | foreign_key | alias | lft  | rght |
  4. +----+-----------+----------+-------------+-------+------+------+
  5. |  1 |      NULL | Role     |           4 |       |    1 |   10 |
  6. |  2 |         1 | Role     |           3 |       |    2 |    9 |
  7. |  3 |         2 | Role     |           2 |       |    3 |    6 |
  8. |  4 |         3 | Role     |           1 |       |    4 |    5 |
  9. |  5 |         2 | Employee |           1 |       |    7 |    8 |
  10. +----+-----------+----------+-------------+-------+------+------+
  11. 5 rows in set (0.00 sec)
  12.  
  13. mysql> select * from acos;
  14. +----+-----------+-------+-------------+-----------+------+------+
  15. | id | parent_id | model | foreign_key | alias     | lft  | rght |
  16. +----+-----------+-------+-------------+-----------+------+------+
  17. |  1 |      NULL |       |        NULL | ROOT      |    1 |   22 |
  18. |  2 |         1 |       |        NULL | Servers   |    2 |   13 |
  19. |  3 |         2 |       |        NULL | index     |    3 |    4 |
  20. |  4 |         2 |       |        NULL | add       |    5 |    6 |
  21. |  5 |         2 |       |        NULL | edit      |    7 |    8 |
  22. |  6 |         2 |       |        NULL | delete    |    9 |   10 |
  23. |  7 |         2 |       |        NULL | view      |   11 |   12 |
  24. |  8 |         1 |       |        NULL | Employees |   14 |   21 |
  25. |  9 |         8 |       |        NULL | summary   |   15 |   16 |
  26. | 10 |         8 |       |        NULL | login     |   17 |   18 |
  27. | 11 |         8 |       |        NULL | logout    |   19 |   20 |
  28. +----+-----------+-------+-------------+-----------+------+------+
  29. 11 rows in set (0.00 sec)
  30.  
  31. mysql> select * from aros_acos;
  32. +----+--------+--------+---------+-------+---------+---------+
  33. | id | aro_id | aco_id | _create | _read | _update | _delete |
  34. +----+--------+--------+---------+-------+---------+---------+
  35. |  1 |      5 |      9 |       0 |     0 |       0 |       0 |
  36. |  2 |      5 |      8 |       0 |     0 |       0 |       0 |
  37. |  3 |      5 |     10 |       0 |     0 |       0 |       0 |
  38. |  4 |      5 |     11 |       0 |     0 |       0 |       0 |
  39. +----+--------+--------+---------+-------+---------+---------+
  40. 4 rows in set (0.00 sec)
  41.  
Parsed in 0.012 seconds, using GeSHi 1.0.7.14

Modify this Paste