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