llx_menu.sql 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. -- ========================================================================
  2. -- Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
  3. -- Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
  4. -- Copyright (C) 2009-2012 Regis Houssin <regis.houssin@inodbox.com>
  5. -- Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
  6. --
  7. -- This program is free software; you can redistribute it and/or modify
  8. -- it under the terms of the GNU General Public License as published by
  9. -- the Free Software Foundation; either version 3 of the License, or
  10. -- (at your option) any later version.
  11. --
  12. -- This program is distributed in the hope that it will be useful,
  13. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. -- GNU General Public License for more details.
  16. --
  17. -- You should have received a copy of the GNU General Public License
  18. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. --
  20. -- ========================================================================
  21. CREATE TABLE llx_menu
  22. (
  23. rowid integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  24. menu_handler varchar(16) NOT NULL, -- Menu handler name
  25. entity integer DEFAULT 1 NOT NULL, -- Multi company id
  26. module varchar(255), -- Module name if record is added by a module
  27. type varchar(4) NOT NULL, -- Menu top or left
  28. mainmenu varchar(100) NOT NULL, -- Name family/module for top menu (home, companies, ...)
  29. leftmenu varchar(100) NULL, -- Name family/module for left menu (setup, info, ...)
  30. fk_menu integer NOT NULL, -- 0 or Id of mother menu line, or -1 if we use fk_mainmenu and fk_leftmenu
  31. fk_mainmenu varchar(100), --
  32. fk_leftmenu varchar(100), --
  33. position integer NOT NULL, -- Sort order of entry
  34. url varchar(255) NOT NULL, -- Relative (or absolute) url to go
  35. target varchar(100) NULL, -- Target of Url link
  36. titre varchar(255) NOT NULL, -- Key for menu translation
  37. langs varchar(100), -- Lang file to load for translation
  38. level smallint, -- Deprecated. Not used.
  39. perms text, -- Condition to show enabled or disabled
  40. enabled text NULL, -- Condition to show or hide
  41. usertype integer NOT NULL DEFAULT 0, -- 0 if menu for all users, 1 for external only, 2 for internal only
  42. tms timestamp
  43. ) ENGINE=innodb;