llx_socpeople.sql 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. -- ============================================================================
  2. -- Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
  3. -- Copyright (C) 2008 Laurent Destailleur <eldy@users.sourceforge.net>
  4. -- Copyright (C) 2005-2010 Regis Houssin <regis.houssin@inodbox.com>
  5. -- Copyright (C) 2020 Open-Dsi <support@open-dsi.fr>
  6. --
  7. -- This program is free software; you can redistribute it and/or modify
  8. -- it under the terms of the GNU General Public License as published by
  9. -- the Free Software Foundation; either version 3 of the License, or
  10. -- (at your option) any later version.
  11. --
  12. -- This program is distributed in the hope that it will be useful,
  13. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. -- GNU General Public License for more details.
  16. --
  17. -- You should have received a copy of the GNU General Public License
  18. -- along with this program. If not, see <https://www.gnu.org/licenses/>.
  19. --
  20. -- ============================================================================
  21. create table llx_socpeople
  22. (
  23. rowid integer AUTO_INCREMENT PRIMARY KEY,
  24. datec datetime,
  25. tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  26. fk_soc integer, -- lien vers la societe
  27. entity integer DEFAULT 1 NOT NULL, -- multi company id
  28. ref_ext varchar(255), -- reference into an external system (not used by dolibarr)
  29. civility varchar(6),
  30. lastname varchar(50),
  31. firstname varchar(50),
  32. address varchar(255),
  33. zip varchar(25),
  34. town varchar(255),
  35. fk_departement integer,
  36. fk_pays integer DEFAULT 0,
  37. birthday date,
  38. poste varchar(255),
  39. phone varchar(30),
  40. phone_perso varchar(30),
  41. phone_mobile varchar(30),
  42. fax varchar(30),
  43. email varchar(255),
  44. socialnetworks text DEFAULT NULL, -- json with socialnetworks
  45. --jabberid varchar(255),
  46. --skype varchar(255),
  47. --twitter varchar(255), --
  48. --facebook varchar(255), --
  49. --linkedin varchar(255), --
  50. --instagram varchar(255), --
  51. --snapchat varchar(255), --
  52. --googleplus varchar(255), --
  53. --youtube varchar(255), --
  54. --whatsapp varchar(255), --
  55. photo varchar(255),
  56. no_email smallint NOT NULL DEFAULT 0, -- deprecated. Use table llx_mailing_unsubscribe instead
  57. priv smallint NOT NULL DEFAULT 0,
  58. fk_prospectcontactlevel varchar(12), -- prospect level (in llx_c_prospectcontactlevel)
  59. fk_stcommcontact integer DEFAULT 0 NOT NULL, -- commercial statut
  60. fk_user_creat integer DEFAULT 0, -- user qui a creel'enregistrement
  61. fk_user_modif integer,
  62. note_private text,
  63. note_public text,
  64. default_lang varchar(6),
  65. canvas varchar(32), -- type of canvas if used (null by default)
  66. import_key varchar(14),
  67. statut tinyint DEFAULT 1 NOT NULL
  68. )ENGINE=innodb;