dolibarr/htdocs/install/mysql/tables/llx_extrafields.sql

51 lines
3.0 KiB
MySQL
Raw Normal View History

-- ===================================================================
2018-10-27 14:43:12 +02:00
-- Copyright (C) 2011-2012 Regis Houssin <regis.houssin@inodbox.com>
2012-10-25 13:11:55 +02:00
-- Copyright (C) 2011-2012 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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 3 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
2019-09-23 21:55:30 +02:00
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
--
-- ===================================================================
create table llx_extrafields
(
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
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),
size varchar(8) DEFAULT NULL,
fieldcomputed text,
fielddefault varchar(255),
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
enabled varchar(255),
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
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
printable integer DEFAULT 0, -- is the extrafield output on documents
2018-07-26 09:41:44 +02:00
totalizable boolean DEFAULT FALSE, -- is extrafield totalizable on list
2017-08-27 12:06:46 +02:00
langs varchar(64), -- example: fileofmymodule@mymodule
2018-06-28 19:13:23 +02:00
help text, -- to store help tooltip
css varchar(128), -- to store css on create/update forms
cssview varchar(128), -- to store css on view form
csslist varchar(128), -- to store css on list
fk_user_author integer, -- user making creation
fk_user_modif integer, -- user making last change
datec datetime, -- date de creation
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP -- last modification date
2011-02-24 10:57:02 +01:00
)ENGINE=innodb;