llx_projet_task.sql 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. -- ===========================================================================
  2. -- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. -- Copyright (C) 2010 Regis Houssin <regis.houssin@inodbox.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. --
  18. -- ===========================================================================
  19. create table llx_projet_task
  20. (
  21. rowid integer AUTO_INCREMENT PRIMARY KEY,
  22. ref varchar(50),
  23. entity integer DEFAULT 1 NOT NULL, -- multi company id
  24. fk_projet integer NOT NULL,
  25. fk_task_parent integer DEFAULT 0 NOT NULL,
  26. datec datetime, -- date creation
  27. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- last modification date
  28. dateo datetime, -- date start task
  29. datee datetime, -- date end task
  30. datev datetime, -- date validation
  31. label varchar(255) NOT NULL,
  32. description text,
  33. duration_effective real DEFAULT 0,
  34. planned_workload real DEFAULT 0,
  35. progress integer DEFAULT 0, -- percentage increase
  36. priority integer DEFAULT 0, -- priority
  37. budget_amount double(24,8),
  38. fk_user_creat integer, -- user who created the task
  39. fk_user_modif integer, -- user who modify the task
  40. fk_user_valid integer, -- user who validated the task
  41. fk_statut smallint DEFAULT 0 NOT NULL,
  42. note_private text,
  43. note_public text,
  44. rang integer DEFAULT 0,
  45. model_pdf varchar(255),
  46. import_key varchar(14), -- Import key
  47. status integer DEFAULT 1 NOT NULL
  48. )ENGINE=innodb;