llx_projet_task_time.sql 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. -- ===========================================================================
  2. -- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  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. -- ===========================================================================
  18. create table llx_projet_task_time
  19. (
  20. rowid integer AUTO_INCREMENT PRIMARY KEY,
  21. fk_task integer NOT NULL,
  22. task_date date, -- only the day
  23. task_datehour datetime, -- day + hour
  24. task_date_withhour integer DEFAULT 0, -- 0 by default, 1 if date was entered with start hour
  25. task_duration double,
  26. fk_product integer NULL,
  27. fk_user integer,
  28. thm double(24,8),
  29. invoice_id integer DEFAULT NULL, -- If we need to invoice each line of timespent, we can save invoice id here
  30. invoice_line_id integer DEFAULT NULL, -- If we need to invoice each line of timespent, we can save invoice line id here
  31. intervention_id integer DEFAULT NULL, -- If we need to have an intervention line for each line of timespent, we can save intervention id here
  32. intervention_line_id integer DEFAULT NULL, -- If we need to have an intervention line of timespent line, we can save intervention line id here
  33. import_key varchar(14), -- Import key
  34. datec datetime, -- date creation time
  35. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- last modification date
  36. note text -- A comment
  37. )ENGINE=innodb;