Skip to content

Commit

Permalink
Evarisk#3189 [Accident] add: update data model reviewed
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-micka committed Jul 28, 2023
1 parent 8798ecb commit 52b24f2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD INDEX idx_digiriskdo
ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD INDEX idx_digiriskdolibarr_accident_investigation_ref (ref);
ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD INDEX idx_digiriskdolibarr_accident_investigation_status (status);
ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD INDEX idx_digiriskdolibarr_accident_investigation_fk_accident (fk_accident);
ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD INDEX idx_digiriskdolibarr_accident_investigation_fk_element (fk_element);
ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD INDEX idx_digiriskdolibarr_accident_investigation_fk_task (fk_task);
ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD UNIQUE INDEX uk_digiriskdolibarr_accident_investigation_ref (ref, entity);
ALTER TABLE llx_digiriskdolibarr_accident_investigation ADD CONSTRAINT llx_digiriskdolibarr_accident_investigation_fk_user_creat FOREIGN KEY (fk_user_creat) REFERENCES llx_user(rowid);
36 changes: 18 additions & 18 deletions sql/accident/llx_digiriskdolibarr_accident_investigation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@
-- Users involved with investigation should be added with saturne_attendants

CREATE TABLE llx_digiriskdolibarr_accident_investigation(
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
ref varchar(128) NOT NULL,
ref_ext varchar(128),
entity integer DEFAULT 1 NOT NULL,
date_creation datetime NOT NULL,
tms timestamp,
import_key varchar(14),
status smallint,
note_public text,
note_private text,
seniority_in_company varchar(255),
date_investigation_start timestamp,
victim_skills text,
circumstances text,
fk_accident integer NOT NULL,
fk_element integer NOT NULL,
fk_user_creat integer NOT NULL,
fk_user_modif integer
rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
ref varchar(128) NOT NULL,
ref_ext varchar(128),
entity integer DEFAULT 1 NOT NULL,
date_creation datetime NOT NULL,
tms timestamp,
import_key varchar(14),
status smallint,
note_public text,
note_private text,
seniority_in_company varchar(255),
date_start timestamp,
victim_skills text,
circumstances text,
fk_accident integer NOT NULL,
fk_task integer NOT NULL,
fk_user_creat integer NOT NULL,
fk_user_modif integer
) ENGINE=innodb;

0 comments on commit 52b24f2

Please sign in to comment.