2002-05-03 23:56:46 +02:00
|
|
|
-- ===================================================================
|
2007-07-09 09:15:59 +02:00
|
|
|
-- Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2018-10-27 14:43:12 +02:00
|
|
|
-- Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
2002-05-03 23:56:46 +02:00
|
|
|
--
|
|
|
|
|
-- 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
|
2002-05-03 23:56:46 +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/>.
|
2002-05-03 23:56:46 +02:00
|
|
|
--
|
|
|
|
|
-- ===================================================================
|
|
|
|
|
|
|
|
|
|
create table llx_fichinter
|
|
|
|
|
(
|
2012-03-16 16:01:45 +01:00
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
|
fk_soc integer NOT NULL,
|
|
|
|
|
fk_projet integer DEFAULT 0, -- projet auquel est rattache la fiche
|
|
|
|
|
fk_contrat integer DEFAULT 0, -- contrat auquel est rattache la fiche
|
|
|
|
|
ref varchar(30) NOT NULL, -- number
|
2014-09-18 18:02:22 +02:00
|
|
|
ref_ext varchar(255),
|
2022-05-17 22:50:42 +02:00
|
|
|
ref_client varchar(255), -- customer intervention number
|
2012-03-16 16:01:45 +01:00
|
|
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
2020-10-08 12:29:01 +02:00
|
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2012-03-16 16:01:45 +01:00
|
|
|
datec datetime, -- date de creation
|
|
|
|
|
date_valid datetime, -- date de validation
|
2014-09-19 11:03:07 +02:00
|
|
|
datei date, -- date de livraison du bon d'intervention
|
|
|
|
|
fk_user_author integer, -- user making creation
|
2017-07-24 11:53:57 +02:00
|
|
|
fk_user_modif integer, -- user making last change
|
|
|
|
|
fk_user_valid integer, -- user validating record
|
2012-03-16 16:01:45 +01:00
|
|
|
fk_statut smallint DEFAULT 0,
|
2015-12-04 11:09:05 +01:00
|
|
|
dateo date, -- date de début d'intervention
|
|
|
|
|
datee date, -- date de fin d'intervention
|
2015-12-15 11:46:56 +01:00
|
|
|
datet date, -- date de terminaison de l'intervention
|
2012-03-16 16:01:45 +01:00
|
|
|
duree real, -- duree totale de l'intervention
|
|
|
|
|
description text,
|
|
|
|
|
note_private text,
|
|
|
|
|
note_public text,
|
|
|
|
|
model_pdf varchar(255),
|
2017-10-19 11:14:31 +02:00
|
|
|
last_main_doc varchar(255), -- relative filepath+filename of last main generated document
|
2017-07-24 11:53:57 +02:00
|
|
|
import_key varchar(14),
|
|
|
|
|
extraparams varchar(255) -- for other parameters with json format
|
2011-02-24 10:57:02 +01:00
|
|
|
)ENGINE=innodb;
|