llx_mailing-mailing.sql 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. -- ========================================================================
  2. -- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. -- Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
  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. -- redaction : 0
  20. -- valide : 1
  21. -- approuve : 2
  22. -- envoye : 3
  23. create table llx_mailing
  24. (
  25. rowid integer AUTO_INCREMENT PRIMARY KEY,
  26. statut smallint DEFAULT 0, --
  27. titre varchar(128), -- Ref of mailing
  28. entity integer DEFAULT 1 NOT NULL, -- multi company id
  29. sujet varchar(128), -- Sujet of mailing
  30. body mediumtext,
  31. bgcolor varchar(8), -- Backgroud color of mailing
  32. bgimage varchar(255), -- Backgroud image of mailing
  33. cible varchar(60),
  34. nbemail integer,
  35. email_from varchar(160), -- Email address of sender
  36. email_replyto varchar(160), -- Email address for reply
  37. email_errorsto varchar(160), -- Email addresse for errors
  38. tag varchar(128) NULL,
  39. date_creat datetime, -- creation date
  40. date_valid datetime, --
  41. date_appro datetime, --
  42. date_envoi datetime, -- date d'envoi
  43. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  44. fk_user_creat integer, -- user creator
  45. fk_user_valid integer, -- user validator
  46. fk_user_appro integer, -- not used
  47. extraparams varchar(255), -- for stock other parameters with json format
  48. joined_file1 varchar(255),
  49. joined_file2 varchar(255),
  50. joined_file3 varchar(255),
  51. joined_file4 varchar(255)
  52. )ENGINE=innodb;