llx_resource.sql 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- Module to manage resources into Dolibarr ERP/CRM
  2. -- Copyright (C) 2013 Jean-François Ferry <jfefe@aternatik.fr>
  3. -- Copyright (C) 2016 Gilles Poirier <glgpoirier@gmail.com>
  4. --
  5. -- This program is free software: you can redistribute it and/or modify
  6. -- it under the terms of the GNU General Public License as published by
  7. -- the Free Software Foundation, either version 3 of the License, or
  8. -- (at your option) any later version.
  9. --
  10. -- This program is distributed in the hope that it will be useful,
  11. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. -- GNU General Public License for more details.
  14. --
  15. -- You should have received a copy of the GNU General Public License
  16. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. CREATE TABLE llx_resource
  18. (
  19. rowid integer AUTO_INCREMENT PRIMARY KEY,
  20. entity integer DEFAULT 1 NOT NULL,
  21. ref varchar(255),
  22. asset_number varchar(255),
  23. description text,
  24. fk_code_type_resource varchar(32),
  25. datec datetime DEFAULT NULL,
  26. date_valid datetime DEFAULT NULL,
  27. fk_user_author integer DEFAULT NULL,
  28. fk_user_modif integer DEFAULT NULL,
  29. fk_user_valid integer DEFAULT NULL,
  30. fk_statut smallint NOT NULL DEFAULT '0',
  31. note_public text,
  32. note_private text,
  33. import_key varchar(14),
  34. extraparams varchar(255), -- for stock other parameters with json format
  35. fk_country integer DEFAULT NULL, -- Optional id of original country
  36. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  37. )ENGINE=innodb;