2008-02-11 15:38:46 +01:00
|
|
|
-- ============================================================================
|
2011-08-29 12:59:08 +02:00
|
|
|
-- Copyright (C) 2008-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
|
|
|
-- Copyright (C) 2011 Regis Houssin <eldy@users.sourceforge.net>
|
2008-02-11 15:38:46 +01: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
|
2008-02-11 15:38:46 +01: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/>.
|
2008-02-11 15:38:46 +01:00
|
|
|
--
|
|
|
|
|
-- ============================================================================
|
|
|
|
|
-- Table used for relations between elements of different types:
|
|
|
|
|
-- invoice-propal, propal-order, etc...
|
|
|
|
|
-- ============================================================================
|
|
|
|
|
|
|
|
|
|
create table llx_element_element
|
|
|
|
|
(
|
|
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
2009-12-11 11:17:58 +01:00
|
|
|
fk_source integer NOT NULL,
|
2011-08-29 12:59:08 +02:00
|
|
|
sourcetype varchar(32) NOT NULL,
|
2009-12-11 11:17:58 +01:00
|
|
|
fk_target integer NOT NULL,
|
2011-08-29 12:59:08 +02:00
|
|
|
targettype varchar(32) NOT NULL
|
2011-02-24 10:57:02 +01:00
|
|
|
) ENGINE=innodb;
|
2008-02-11 15:38:46 +01:00
|
|
|
|