2008-02-11 14:38:46 +00:00
|
|
|
-- ============================================================================
|
2011-08-29 10:59:08 +00:00
|
|
|
-- Copyright (C) 2008-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
|
|
-- Copyright (C) 2011 Regis Houssin <eldy@users.sourceforge.net>
|
2008-02-11 14:38:46 +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
|
2008-02-11 14:38:46 +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/>.
|
2008-02-11 14:38:46 +00:00
|
|
|
--
|
|
|
|
|
-- ============================================================================
|
|
|
|
|
-- Table used for relations between elements of different types:
|
|
|
|
|
-- invoice-propal, propal-order, etc...
|
|
|
|
|
-- ============================================================================
|
|
|
|
|
|
|
|
|
|
create table llx_element_element
|
|
|
|
|
(
|
2024-03-07 19:27:51 +00:00
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
2009-12-11 10:17:58 +00:00
|
|
|
fk_source integer NOT NULL,
|
2024-03-07 19:27:51 +00:00
|
|
|
sourcetype varchar(64) NOT NULL,
|
2009-12-11 10:17:58 +00:00
|
|
|
fk_target integer NOT NULL,
|
2024-04-29 09:29:32 +00:00
|
|
|
targettype varchar(64) NOT NULL,
|
2026-08-04 16:25:43 +00:00
|
|
|
relationtype varchar(64) DEFAULT NULL,
|
|
|
|
|
fk_user_creat integer, -- User id making creation
|
|
|
|
|
date_creation datetime, -- Creation date
|
|
|
|
|
fk_user_modif integer, -- User id making last change
|
|
|
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP -- Last modification date
|
2011-02-24 09:57:02 +00:00
|
|
|
) ENGINE=innodb;
|