llx_actioncomm_resources.sql 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. -- ============================================================================
  2. -- Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net>
  3. -- Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
  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. --
  18. -- ============================================================================
  19. -- Table used for relations between an action event and a resource (in most cases
  20. -- a 'user', but can also be a 'resource' like a room, or a hardware)
  21. -- ============================================================================
  22. create table llx_actioncomm_resources
  23. (
  24. rowid integer AUTO_INCREMENT PRIMARY KEY,
  25. fk_actioncomm integer NOT NULL, -- Id into llx_actioncomm
  26. element_type varchar(50) NOT NULL, -- Type of resource ('user', 'resource')
  27. fk_element integer NOT NULL, -- Id into table llx_user or llx_resource
  28. answer_status varchar(50) NULL,
  29. mandatory smallint,
  30. transparency smallint default 1 -- Used to say if event is 1=OPAQUE=busy or 0=TRANSPARENT
  31. ) ENGINE=innodb;