NEW: add table to store product relation with thirdparty

This commit is contained in:
Florian HENRY 2023-12-28 13:10:23 +01:00
parent 6d0ca0be81
commit 381cb6982c
2 changed files with 28 additions and 26 deletions

View file

@ -20,9 +20,10 @@
--
-- ============================================================================
CREATE TABLE llx_c_product_thirdparty_relation_type(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
code varchar(24) NOT NULL,
label varchar(128),
active tinyint default 1 NOT NULL
) ENGINE=innodb;
CREATE TABLE llx_c_product_thirdparty_relation_type
(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
code varchar(24) NOT NULL,
label varchar(128),
active tinyint default 1 NOT NULL
) ENGINE = innodb;

View file

@ -20,23 +20,24 @@
--
-- ============================================================================
CREATE TABLE llx_product_thirdparty(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
fk_product integer NOT NULL,
fk_soc integer NOT NULL,
fk_product_thirdparty_relation_type integer NOT NULL,
date_start datetime,
date_end datetime,
fk_project integer,
description text,
note_public text,
note_private text,
date_creation datetime NOT NULL,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
fk_user_creat integer NOT NULL,
fk_user_modif integer,
last_main_doc varchar(255),
import_key varchar(14),
model_pdf varchar(255),
status integer DEFAULT 1 NOT NULL
) ENGINE=innodb;
CREATE TABLE llx_product_thirdparty
(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
fk_product integer NOT NULL,
fk_soc integer NOT NULL,
fk_product_thirdparty_relation_type integer NOT NULL,
date_start datetime,
date_end datetime,
fk_project integer,
description text,
note_public text,
note_private text,
date_creation datetime NOT NULL,
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
fk_user_creat integer NOT NULL,
fk_user_modif integer,
last_main_doc varchar(255),
import_key varchar(14),
model_pdf varchar(255),
status integer DEFAULT 1 NOT NULL
) ENGINE = innodb;