llx_holiday.sql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. -- ===================================================================
  2. -- Copyright (C) 2012 Laurent Destailleur <eldy@users.sourceforge.net>
  3. --
  4. -- This program is free software; you can redistribute it and/or modify
  5. -- it under the terms of the GNU General Public License as published by
  6. -- the Free Software Foundation; either version 3 of the License, or
  7. -- (at your option) any later version.
  8. --
  9. -- This program is distributed in the hope that it will be useful,
  10. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. -- GNU General Public License for more details.
  13. --
  14. -- You should have received a copy of the GNU General Public License
  15. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. --
  17. -- ===================================================================
  18. CREATE TABLE llx_holiday
  19. (
  20. rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY,
  21. entity integer DEFAULT 1 NOT NULL, -- Multi company id
  22. fk_user integer NOT NULL,
  23. fk_user_create integer,
  24. fk_type integer NOT NULL,
  25. date_create DATETIME NOT NULL,
  26. description VARCHAR( 255 ) NOT NULL,
  27. date_debut DATE NOT NULL,
  28. date_fin DATE NOT NULL,
  29. halfday integer DEFAULT 0, -- 0=start morning and end afternoon, -1=start afternoon end afternoon, 1=start morning and end morning, 2=start afternoon and end morning
  30. statut integer NOT NULL DEFAULT '1',
  31. fk_validator integer NOT NULL,
  32. date_valid DATETIME DEFAULT NULL,
  33. fk_user_valid integer DEFAULT NULL,
  34. date_refuse DATETIME DEFAULT NULL,
  35. fk_user_refuse integer DEFAULT NULL,
  36. date_cancel DATETIME DEFAULT NULL,
  37. fk_user_cancel integer DEFAULT NULL,
  38. detail_refuse varchar( 250 ) DEFAULT NULL,
  39. note_private text,
  40. note_public text,
  41. tms timestamp
  42. )
  43. ENGINE=innodb;