2006-05-06 08:12:49 +00:00
|
|
|
-- ===================================================================
|
|
|
|
|
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
|
|
|
|
-- Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
2018-10-27 12:43:12 +00:00
|
|
|
-- Copyright (C) 2009 Regis Houssin <regis.houssin@inodbox.com>
|
2006-05-06 08:12:49 +00: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 14:36:08 +00:00
|
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
2006-05-06 08:12:49 +00: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 19:55:30 +00:00
|
|
|
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2006-05-06 08:12:49 +00:00
|
|
|
--
|
|
|
|
|
--
|
2014-04-23 11:10:08 +00:00
|
|
|
-- Table with list of document templates for document generation (odt/pdf/...)
|
2006-05-06 08:12:49 +00:00
|
|
|
-- ===================================================================
|
|
|
|
|
|
2006-05-06 13:57:20 +00:00
|
|
|
create table llx_document_model
|
2006-05-06 08:12:49 +00:00
|
|
|
(
|
2009-12-10 13:08:19 +00:00
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
|
|
|
|
nom varchar(50),
|
|
|
|
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
2020-06-01 14:44:22 +00:00
|
|
|
type varchar(64) NOT NULL,
|
2009-12-10 13:08:19 +00:00
|
|
|
libelle varchar(255),
|
2025-10-02 08:35:28 +00:00
|
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2009-12-10 13:08:19 +00:00
|
|
|
description text
|
2011-02-24 09:57:02 +00:00
|
|
|
)ENGINE=innodb;
|
2009-04-27 20:37:50 +00:00
|
|
|
|
2025-10-02 08:35:28 +00:00
|
|
|
--
|
2009-04-27 20:37:50 +00:00
|
|
|
-- List of codes for the field entity
|
|
|
|
|
--
|
|
|
|
|
-- 1 : first company document model
|
|
|
|
|
-- 2 : second company document model
|
|
|
|
|
-- 3 : etc...
|
2019-09-23 19:55:30 +00:00
|
|
|
--
|