llx_hrm_job_user-hrm.sql 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. -- Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
  2. -- Copyright (C) 2021 Greg Rastklan <greg.rastklan@atm-consulting.fr>
  3. -- Copyright (C) 2021 Jean-Pascal BOUDET <jean-pascal.boudet@atm-consulting.fr>
  4. --
  5. -- This program is free software: you can redistribute it and/or modify
  6. -- it under the terms of the GNU General Public License as published by
  7. -- the Free Software Foundation, either version 3 of the License, or
  8. -- (at your option) any later version.
  9. --
  10. -- This program is distributed in the hope that it will be useful,
  11. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. -- GNU General Public License for more details.
  14. --
  15. -- You should have received a copy of the GNU General Public License
  16. -- along with this program. If not, see https://www.gnu.org/licenses/.
  17. CREATE TABLE llx_hrm_job_user(
  18. -- BEGIN MODULEBUILDER FIELDS
  19. rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
  20. -- ref varchar(128) NOT NULL,
  21. description text,
  22. date_creation datetime NOT NULL,
  23. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  24. fk_contrat integer,
  25. fk_user integer,
  26. fk_job integer NOT NULL,
  27. date_start datetime,
  28. date_end datetime,
  29. abort_comment varchar(255),
  30. note_public text,
  31. note_private text,
  32. fk_user_creat integer,
  33. fk_user_modif integer
  34. -- END MODULEBUILDER FIELDS
  35. ) ENGINE=innodb;