llx_ecm_files.sql 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. -- ===================================================================
  2. -- Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net>
  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 <http://www.gnu.org/licenses/>.
  16. --
  17. -- ===================================================================
  18. CREATE TABLE llx_ecm_files
  19. (
  20. rowid integer AUTO_INCREMENT PRIMARY KEY,
  21. label varchar(64) NOT NULL,
  22. entity integer DEFAULT 1 NOT NULL, -- multi company id
  23. filename varchar(255) NOT NULL, -- file name only without any directory
  24. fullpath varchar(750) NOT NULL, -- relative to dolibarr document dir. example abc/def/myfile
  25. fullpath_orig varchar(750), -- full path of original filename, when file is uploaded from a local computer
  26. description text,
  27. keywords text, -- list of keywords, separated with comma
  28. cover text, -- is this file a file to use for a cover
  29. gen_or_uploaded varchar(12), -- 'generated' or 'uploaded'
  30. extraparams varchar(255), -- for stocking other parameters with json format
  31. date_c datetime,
  32. date_m timestamp,
  33. fk_user_c integer,
  34. fk_user_m integer,
  35. acl text -- for future permission 'per file'
  36. ) ENGINE=innodb;