2003-02-20 18:40:42 +01:00
-- ===================================================================
2012-12-30 15:13:49 +01:00
-- Copyright (C) 2011-2012 Regis Houssin <regis.houssin@capnetworks.com>
2012-10-25 13:11:55 +02:00
-- Copyright (C) 2011-2012 Laurent Destailleur <eldy@users.sourceforge.net>
2003-02-20 18:40:42 +01: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
2003-02-20 18:40:42 +01: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
2011-08-03 03:13:30 +02:00
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
2003-02-20 18:40:42 +01:00
--
-- ===================================================================
2011-06-19 14:04:24 +02:00
create table llx_extrafields
2003-02-20 18:40:42 +01:00
(
2009-11-07 09:34:45 +01:00
rowid integer AUTO_INCREMENT PRIMARY KEY ,
2015-08-13 00:51:32 +02:00
name varchar ( 64 ) NOT NULL , -- name of field into extrafields tables
2017-05-24 22:48:44 +02:00
entity integer DEFAULT 1 NOT NULL , -- multi company id
elementtype varchar ( 64 ) NOT NULL DEFAULT ' member ' , -- for which element this extra fields is for
2015-08-13 00:51:32 +02:00
label varchar ( 255 ) NOT NULL , -- label to show for attribute
2008-12-18 21:32:27 +01:00
type varchar ( 8 ) ,
2012-09-13 10:14:25 +02:00
size varchar ( 8 ) DEFAULT NULL ,
2017-05-24 22:48:44 +02:00
fieldcomputed text ,
fielddefault varchar ( 255 ) ,
2012-09-22 20:27:06 +02:00
fieldunique integer DEFAULT 0 ,
2012-10-25 13:11:55 +02:00
fieldrequired integer DEFAULT 0 ,
2015-08-13 00:51:32 +02:00
perms varchar ( 255 ) , -- not used yet
2018-01-13 13:16:33 +01:00
enabled varchar ( 255 ) ,
2013-03-28 22:13:04 +01:00
pos integer DEFAULT 0 ,
2015-08-13 00:51:32 +02:00
alwayseditable integer DEFAULT 0 , -- 1 if field can be edited whatever is element status
param text , -- extra parameters to define possible values of field
2018-04-10 15:39:11 +02:00
list varchar ( 255 ) DEFAULT ' 1 ' , -- visibility of field. 0=Never visible, 1=Visible on list and forms, 2=Visible on list only. Using a negative value means field is not shown by default on list but can be selected for viewing
2017-08-27 12:06:46 +02:00
langs varchar ( 64 ) , -- example: fileofmymodule@mymodule
2017-07-25 11:57:36 +02:00
fk_user_author integer , -- user making creation
fk_user_modif integer , -- user making last change
datec datetime , -- date de creation
2017-08-26 20:16:12 +02:00
tms timestamp -- date of last update
2011-02-24 10:57:02 +01:00
) ENGINE = innodb ;