llx_socpeople.sql 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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@capnetworks.com>
  5. --
  6. -- This program is free software; you can redistribute it and/or modify
  7. -- it under the terms of the GNU General Public License as published by
  8. -- the Free Software Foundation; either version 3 of the License, or
  9. -- (at your option) any later version.
  10. --
  11. -- This program is distributed in the hope that it will be useful,
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. -- GNU General Public License for more details.
  15. --
  16. -- You should have received a copy of the GNU General Public License
  17. -- along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. --
  19. -- ============================================================================
  20. create table llx_socpeople
  21. (
  22. rowid integer AUTO_INCREMENT PRIMARY KEY,
  23. datec datetime,
  24. tms timestamp,
  25. fk_soc integer, -- lien vers la societe
  26. entity integer DEFAULT 1 NOT NULL, -- multi company id
  27. ref_ext varchar(128), -- reference into an external system (not used by dolibarr)
  28. civility varchar(6),
  29. lastname varchar(50),
  30. firstname varchar(50),
  31. address varchar(255),
  32. zip varchar(25),
  33. town varchar(255),
  34. fk_departement integer,
  35. fk_pays integer DEFAULT 0,
  36. birthday date,
  37. poste varchar(80),
  38. phone varchar(30),
  39. phone_perso varchar(30),
  40. phone_mobile varchar(30),
  41. fax varchar(30),
  42. email varchar(255),
  43. jabberid varchar(255),
  44. skype varchar(255),
  45. photo varchar(255),
  46. no_email smallint NOT NULL DEFAULT 0,
  47. priv smallint NOT NULL DEFAULT 0,
  48. fk_user_creat integer DEFAULT 0, -- user qui a creel'enregistrement
  49. fk_user_modif integer,
  50. note_private text,
  51. note_public text,
  52. default_lang varchar(6),
  53. canvas varchar(32), -- type of canvas if used (null by default)
  54. import_key varchar(14),
  55. statut tinyint DEFAULT 1 NOT NULL
  56. )ENGINE=innodb;