2002-04-29 20:57:25 +00:00
|
|
|
-- ============================================================================
|
2003-08-04 18:19:15 +00:00
|
|
|
-- Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2013-04-11 07:15:41 +00:00
|
|
|
-- Copyright (C) 2006-2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
2013-04-03 16:54:44 +00:00
|
|
|
-- Copyright (C) 2007-2013 Regis Houssin <regis.houssin@capnetworks.com>
|
2002-04-29 20:57:25 +00:00
|
|
|
--
|
|
|
|
|
-- This program is free software; you can redistribute it and/or modify
|
|
|
|
|
-- it under the terms of the GNU General Public License as published by
|
2013-01-16 14:36:08 +00:00
|
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
2002-04-29 20:57:25 +00:00
|
|
|
-- (at your option) any later version.
|
|
|
|
|
--
|
|
|
|
|
-- This program is distributed in the hope that it will be useful,
|
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
-- GNU General Public License for more details.
|
|
|
|
|
--
|
|
|
|
|
-- You should have received a copy of the GNU General Public License
|
2011-08-03 01:13:30 +00:00
|
|
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2002-04-29 20:57:25 +00:00
|
|
|
--
|
|
|
|
|
-- ===========================================================================
|
|
|
|
|
|
|
|
|
|
create table llx_user
|
|
|
|
|
(
|
2005-07-14 17:17:31 +00:00
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
2011-05-30 08:21:40 +00:00
|
|
|
entity integer DEFAULT 1 NOT NULL, -- multi company id
|
|
|
|
|
|
2011-09-03 15:27:23 +00:00
|
|
|
ref_ext varchar(50), -- reference into an external system (not used by dolibarr)
|
|
|
|
|
ref_int varchar(50), -- reference into an internal system (used by dolibarr)
|
2011-05-30 08:21:40 +00:00
|
|
|
|
2005-07-14 17:17:31 +00:00
|
|
|
datec datetime,
|
|
|
|
|
tms timestamp,
|
2010-12-14 23:27:17 +00:00
|
|
|
login varchar(24) NOT NULL,
|
2005-07-14 17:17:31 +00:00
|
|
|
pass varchar(32),
|
2007-04-22 22:55:32 +00:00
|
|
|
pass_crypted varchar(128),
|
2011-05-30 08:21:40 +00:00
|
|
|
pass_temp varchar(32), -- temporary password when asked for forget password
|
2011-07-12 22:03:44 +00:00
|
|
|
civilite varchar(6),
|
2013-04-03 16:54:44 +00:00
|
|
|
lastname varchar(50),
|
2005-07-14 17:17:31 +00:00
|
|
|
firstname varchar(50),
|
2013-03-22 16:00:55 +00:00
|
|
|
address varchar(255), -- user personal address
|
|
|
|
|
zip varchar(25), -- zipcode
|
|
|
|
|
town varchar(50), -- town
|
|
|
|
|
fk_state integer DEFAULT 0, --
|
|
|
|
|
fk_country integer DEFAULT 0, --
|
2012-10-05 10:40:19 +00:00
|
|
|
job varchar(128),
|
2013-11-04 20:41:36 +00:00
|
|
|
skype varchar(255),
|
2005-09-13 08:05:47 +00:00
|
|
|
office_phone varchar(20),
|
|
|
|
|
office_fax varchar(20),
|
|
|
|
|
user_mobile varchar(20),
|
2005-07-14 17:17:31 +00:00
|
|
|
email varchar(255),
|
2011-06-29 10:23:32 +00:00
|
|
|
signature text DEFAULT NULL,
|
2005-07-14 17:17:31 +00:00
|
|
|
admin smallint DEFAULT 0,
|
|
|
|
|
module_comm smallint DEFAULT 1,
|
|
|
|
|
module_compta smallint DEFAULT 1,
|
2007-04-26 22:01:10 +00:00
|
|
|
fk_societe integer,
|
|
|
|
|
fk_socpeople integer,
|
|
|
|
|
fk_member integer,
|
2013-01-30 14:23:49 +00:00
|
|
|
fk_user integer, -- Hierarchic parent
|
2006-08-26 00:25:17 +00:00
|
|
|
note text DEFAULT NULL,
|
2006-08-12 19:07:14 +00:00
|
|
|
datelastlogin datetime,
|
|
|
|
|
datepreviouslogin datetime,
|
2005-07-25 15:41:50 +00:00
|
|
|
egroupware_id integer,
|
2006-06-24 15:13:29 +00:00
|
|
|
ldap_sid varchar(255) DEFAULT NULL,
|
2010-12-01 21:51:13 +00:00
|
|
|
openid varchar(255),
|
2009-04-27 20:37:50 +00:00
|
|
|
statut tinyint DEFAULT 1,
|
2010-02-13 22:20:32 +00:00
|
|
|
photo varchar(255), -- filename or url of photo
|
2013-04-11 07:15:41 +00:00
|
|
|
lang varchar(6),
|
2013-06-25 09:14:00 +00:00
|
|
|
color varchar(6),
|
|
|
|
|
accountancy_code varchar(24) NULL
|
2011-02-24 09:57:02 +00:00
|
|
|
)ENGINE=innodb;
|