llx_deplacement-deplacement.sql 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. -- ============================================================================
  2. -- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. -- Copyright (C) 2009-2012 Regis Houssin <regis.houssin@inodbox.com>
  4. -- Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
  5. --
  6. -- This program is free software; you can redistribute it and/or modify
  7. -- it under the terms of the GNU General Public License as published by
  8. -- the Free Software Foundation; either version 3 of the License, or
  9. -- (at your option) any later version.
  10. --
  11. -- This program is distributed in the hope that it will be useful,
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. -- GNU General Public License for more details.
  15. --
  16. -- You should have received a copy of the GNU General Public License
  17. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  18. --
  19. -- ============================================================================
  20. create table llx_deplacement
  21. (
  22. rowid integer AUTO_INCREMENT PRIMARY KEY,
  23. ref varchar(30) DEFAULT NULL, -- Ref donation (TODO change to NOT NULL)
  24. entity integer DEFAULT 1 NOT NULL, -- multi company id
  25. datec datetime NOT NULL,
  26. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  27. dated datetime,
  28. fk_user integer NOT NULL,
  29. fk_user_author integer,
  30. fk_user_modif integer, -- utilisateur qui a modifie l'info
  31. type varchar(12) NOT NULL,
  32. fk_statut integer DEFAULT 1 NOT NULL,
  33. km real,
  34. fk_soc integer,
  35. fk_projet integer DEFAULT 0,
  36. note_private text,
  37. note_public text,
  38. extraparams varchar(255) -- for stock other parameters with json format
  39. )ENGINE=innodb;