llx_events.sql 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. -- ========================================================================
  2. -- Copyright (C) 2008 Laurent Destailleur <eldy@users.sourceforge.net>
  3. -- Copyright (C) 2009 Regis Houssin <regis@dolibarr.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 2 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 <http://www.gnu.org/licenses/>.
  17. --
  18. -- ========================================================================
  19. -- This table logs all dolibarr security events
  20. -- Content of this table is not managed by users but by Dolibarr
  21. -- trigger interface_20_all_Logevents.
  22. -- ========================================================================
  23. create table llx_events
  24. (
  25. rowid integer AUTO_INCREMENT PRIMARY KEY,
  26. tms timestamp, -- date creation/modification
  27. type varchar(32) NOT NULL, -- action type
  28. entity integer DEFAULT 1 NOT NULL, -- multi company id
  29. dateevent datetime, -- date event
  30. fk_user integer, -- id user
  31. description varchar(250) NOT NULL, -- full description of action
  32. ip varchar(32) NOT NULL, -- ip
  33. user_agent varchar(255) NULL, -- user agent
  34. fk_object integer -- id of related object
  35. ) ENGINE=innodb;
  36. --
  37. -- List of codes for the field entity
  38. --
  39. -- 1 : first company events
  40. -- 2 : second company events
  41. -- 3 : etc...
  42. --