llx_emailcollector_emailcollector.sql 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. -- Copyright (C) 2018 Laurent Destailleur <eldy@users.sourceforge.net>
  2. --
  3. -- This program is free software: you can redistribute it and/or modify
  4. -- it under the terms of the GNU General Public License as published by
  5. -- the Free Software Foundation, either version 3 of the License, or
  6. -- (at your option) any later version.
  7. --
  8. -- This program is distributed in the hope that it will be useful,
  9. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. -- GNU General Public License for more details.
  12. --
  13. -- You should have received a copy of the GNU General Public License
  14. -- along with this program. If not, see https://www.gnu.org/licenses/.
  15. CREATE TABLE llx_emailcollector_emailcollector(
  16. -- BEGIN MODULEBUILDER FIELDS
  17. rowid integer AUTO_INCREMENT PRIMARY KEY NOT NULL,
  18. entity integer DEFAULT 1 NOT NULL,
  19. ref varchar(128) NOT NULL,
  20. label varchar(255),
  21. description text,
  22. host varchar(255),
  23. port varchar(10) DEFAULT '993',
  24. hostcharset varchar(16) DEFAULT 'UTF-8',
  25. login varchar(128),
  26. acces_type integer DEFAULT 0,
  27. oauth_service varchar(128),
  28. password varchar(128),
  29. source_directory varchar(255) DEFAULT 'Inbox' NOT NULL,
  30. target_directory varchar(255),
  31. maxemailpercollect integer DEFAULT 100,
  32. datelastresult datetime,
  33. codelastresult varchar(16),
  34. lastresult text,
  35. datelastok datetime,
  36. note_public text,
  37. note_private text,
  38. date_creation datetime NOT NULL,
  39. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  40. fk_user_creat integer NOT NULL,
  41. fk_user_modif integer,
  42. position INTEGER NOT NULL DEFAULT 0,
  43. import_key varchar(14),
  44. status integer NOT NULL
  45. -- END MODULEBUILDER FIELDS
  46. ) ENGINE=innodb;