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>
|
2012-12-30 15:13:49 +01:00
|
|
|
-- Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.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
|
2011-08-03 03:13:30 +02:00
|
|
|
-- along with this program. If not, see <http://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
|
|
|
|
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
|
|
|
|
tms timestamp,
|
|
|
|
|
datec datetime, -- date de creation
|
|
|
|
|
date_valid datetime, -- date de validation
|
|
|
|
|
datei date, -- date de livraison du bon d'intervention
|
|
|
|
|
fk_user_author integer, -- createur de la fiche
|
|
|
|
|
fk_user_valid integer, -- valideur de la fiche
|
|
|
|
|
fk_statut smallint DEFAULT 0,
|
|
|
|
|
duree real, -- duree totale de l'intervention
|
|
|
|
|
description text,
|
|
|
|
|
note_private text,
|
|
|
|
|
note_public text,
|
|
|
|
|
model_pdf varchar(255),
|
|
|
|
|
extraparams varchar(255) -- for stock other parameters with json format
|
2009-05-02 16:26:54 +02:00
|
|
|
|
2011-02-24 10:57:02 +01:00
|
|
|
)ENGINE=innodb;
|