-- ===================================================================
-- Copyright (C) 2014-2020		Charlene Benke	<charlene@patas-monkey.com>
--
-- 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
-- the Free Software Foundation; either version 2 of the License, or
-- (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
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- ===================================================================

create table llx_customtabs_field
(
	rowid			integer AUTO_INCREMENT PRIMARY KEY, -- clé principale
	fk_customtabs	integer NOT NULL,					-- clé d'accès au customTabs
	label			varchar(30) NOT NULL,				-- Nom du champs (translate) 
	description		text NULL DEFAULT NULL,				-- Tooltip du champs
	posfield		integer,							-- position du champs
	active			integer NULL DEFAULT NULL,			-- le bouton est actif ou pas
	perms			text NULL DEFAULT NULL,				-- droit d'accès au champs
	elementfield	text NULL DEFAULT NULL,				-- champs de l'object à afficher 
	queryfield		text NULL DEFAULT NULL,				-- requete associé au champs si champs non présent
	typeoffield		varchar(10) NULL DEFAULT NULL
			-- format d'affichage si ce n'est pas du text (ex : DATE, INT, ...)
)ENGINE=innodb;