2005-08-21 14:24:33 +02:00
|
|
|
-- ===========================================================================
|
|
|
|
|
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
|
|
--
|
|
|
|
|
-- This program is free software; you can redistribute it and/or modify
|
|
|
|
|
-- it under the terms of the GNU General Public License as published by
|
2013-01-16 15:36:08 +01:00
|
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
2005-08-21 14:24:33 +02:00
|
|
|
-- (at your option) any later version.
|
|
|
|
|
--
|
|
|
|
|
-- This program is distributed in the hope that it will be useful,
|
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
-- GNU General Public License for more details.
|
|
|
|
|
--
|
|
|
|
|
-- You should have received a copy of the GNU General Public License
|
2019-09-23 21:55:30 +02:00
|
|
|
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2005-08-21 14:24:33 +02:00
|
|
|
--
|
|
|
|
|
-- ===========================================================================
|
|
|
|
|
|
|
|
|
|
create table llx_projet_task_time
|
|
|
|
|
(
|
|
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
2014-03-16 20:37:43 +01:00
|
|
|
fk_task integer NOT NULL,
|
2015-03-05 13:48:57 +01:00
|
|
|
task_date date, -- only the day
|
|
|
|
|
task_datehour datetime, -- day + hour
|
2015-03-10 15:34:48 +01:00
|
|
|
task_date_withhour integer DEFAULT 0, -- 0 by default, 1 if date was entered with start hour
|
2006-01-15 00:44:59 +01:00
|
|
|
task_duration double,
|
2022-01-07 12:19:03 +01:00
|
|
|
fk_product integer NULL,
|
2005-08-21 14:24:33 +02:00
|
|
|
fk_user integer,
|
2014-03-16 20:37:43 +01:00
|
|
|
thm double(24,8),
|
2015-10-26 15:21:22 +01:00
|
|
|
invoice_id integer DEFAULT NULL, -- If we need to invoice each line of timespent, we can save invoice id here
|
|
|
|
|
invoice_line_id integer DEFAULT NULL, -- If we need to invoice each line of timespent, we can save invoice line id here
|
2022-06-20 02:10:27 +02:00
|
|
|
intervention_id integer DEFAULT NULL, -- If we need to have an intervention line for each line of timespent, we can save intervention id here
|
|
|
|
|
intervention_line_id integer DEFAULT NULL, -- If we need to have an intervention line of timespent line, we can save intervention line id here
|
2016-11-19 02:16:12 +01:00
|
|
|
import_key varchar(14), -- Import key
|
2020-10-08 10:13:44 +02:00
|
|
|
datec datetime, -- date creation time
|
2020-10-08 12:29:01 +02:00
|
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, -- last modification date
|
2017-01-31 14:00:53 +01:00
|
|
|
note text -- A comment
|
2011-02-24 10:57:02 +01:00
|
|
|
)ENGINE=innodb;
|