llx_c_field_list.sql 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. -- ========================================================================
  2. -- Copyright (C) 2010-2018 Regis Houssin <regis.houssin@inodbox.com>
  3. --
  4. -- This program is free software; you can redistribute it and/or modify
  5. -- it under the terms of the GNU General Public License as published by
  6. -- the Free Software Foundation; either version 3 of the License, or
  7. -- (at your option) any later version.
  8. --
  9. -- This program is distributed in the hope that it will be useful,
  10. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. -- GNU General Public License for more details.
  13. --
  14. -- You should have received a copy of the GNU General Public License
  15. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. --
  17. -- Change are done into list pages to use the new code to manage
  18. -- selection by users of fields. Once all changes are done with new
  19. -- code, we will be able to use this table to store the content of
  20. -- the $arrayfields table.
  21. -- Table not used / not required for the moment.
  22. -- ========================================================================
  23. create table llx_c_field_list
  24. (
  25. rowid integer AUTO_INCREMENT PRIMARY KEY,
  26. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  27. element varchar(64) NOT NULL, -- name of element list
  28. entity integer DEFAULT 1 NOT NULL, -- entity id
  29. name varchar(32) NOT NULL, -- name of field with table alias (ex: p.ref)
  30. alias varchar(32) NOT NULL, -- alias of field (ex: ref)
  31. title varchar(32) NOT NULL, -- title (translation) of field (ex: Ref)
  32. align varchar(6) DEFAULT 'left', -- align (left,center,right)
  33. sort tinyint DEFAULT 1 NOT NULL, -- add sort field
  34. search tinyint DEFAULT 0 NOT NULL, -- add search field
  35. visible tinyint DEFAULT 1 NOT NULL, -- visibility of field. 0=Never visible, 1=Visible on list and forms, 2=Visible on list only
  36. enabled varchar(255) DEFAULT 1, -- Condition to show or hide
  37. rang integer DEFAULT 0
  38. )ENGINE=innodb;