Skip to content
Snippets Groups Projects
Commit fe87b7b4 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Work on personalized attributes

parent 1db4e22d
No related branches found
No related tags found
No related merge requests found
......@@ -19,5 +19,4 @@
-- ============================================================================
ALTER TABLE llx_extra_fields ADD UNIQUE INDEX idx_extra_fields_name (name, entity);
ALTER TABLE llx_extra_fields ADD UNIQUE INDEX idx_extra_fields_name (object, entity, name);
......@@ -24,14 +24,14 @@ create table llx_extra_fields
tms timestamp,
entity integer DEFAULT 1 NOT NULL, -- multi company id
object varchar(64) NOT NULL,
assign integer,
name varchar(64) NOT NULL,
object varchar(64) NOT NULL, -- type of link 'invoice', 'order', 'proposal', 'supplier_invoice', 'supplier_order'
name varchar(64) NOT NULL, -- code name of field
label varchar(64) NOT NULL,
format varchar(8) NOT NULL,
format varchar(8) NOT NULL, -- date, string, integer, float
fieldsize integer,
maxlength integer,
options varchar(45),
rank integer
options varchar(255),
rank integer,
assign integer -- ???
)type=innodb;
......@@ -22,13 +22,13 @@ create table llx_extra_fields_values
(
rowid integer AUTO_INCREMENT PRIMARY KEY,
tms timestamp,
entity integer DEFAULT 1 NOT NULL, -- multi company id
entity integer DEFAULT 1 NOT NULL, -- multi company id
datec datetime,
datem datetime,
fk_object integer NOT NULL,
fk_extra_fields integer NOT NULL,
value varchar(255),
fk_object integer NOT NULL, -- id of object (rowid of proposal, order, invoice...)
fk_extra_fields integer NOT NULL, -- key to attribute definition
value varchar(255), -- value of attribute
fk_user_create integer,
fk_user_modif integer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment