Add generic fields

This commit is contained in:
Laurent Destailleur 2020-04-05 03:59:23 +02:00
parent 5583ad9c38
commit 87ff94fc64
3 changed files with 11 additions and 1 deletions

View File

@ -226,3 +226,7 @@ ALTER TABLE llx_categorie_website_page ADD INDEX idx_categorie_website_page_fk_w
ALTER TABLE llx_categorie_website_page ADD CONSTRAINT fk_categorie_website_page_categorie_rowid FOREIGN KEY (fk_categorie) REFERENCES llx_categorie (rowid);
ALTER TABLE llx_categorie_website_page ADD CONSTRAINT fk_categorie_website_page_website_page_rowid FOREIGN KEY (fk_website_page) REFERENCES llx_website_page (rowid);
ALTER TABLE llx_categorie ADD COLUMN date_creation datetime;
ALTER TABLE llx_categorie ADD COLUMN tms timestamp;
ALTER TABLE llx_categorie ADD COLUMN fk_user_creat integer;
ALTER TABLE llx_categorie ADD COLUMN fk_user_modif integer;

View File

@ -31,6 +31,10 @@ create table llx_categorie
color varchar(8), -- color
fk_soc integer DEFAULT NULL, -- not used by default. Used when option CATEGORY_ASSIGNED_TO_A_CUSTOMER is set.
visible tinyint DEFAULT 1 NOT NULL, -- determine if the products are visible or not
date_creation datetime, -- date creation
tms timestamp, -- date modification
fk_user_creat integer, -- user making creation
fk_user_modif integer, -- user making last change
import_key varchar(14) -- Import key
)ENGINE=innodb;

View File

@ -20,9 +20,11 @@ CREATE TABLE llx_mymodule_myobject(
entity INTEGER DEFAULT 1 NOT NULL,
label VARCHAR(255),
qty INTEGER,
status INTEGER,
date_creation DATETIME NOT NULL,
tms TIMESTAMP,
fk_user_create INTEGER,
fk_user_modif INTEGER,
status INTEGER,
import_key VARCHAR(14)
-- END MODULEBUILDER FIELDS
) ENGINE=innodb;