2003-06-30 16:17:30 +02:00
|
|
|
-- ===================================================================
|
|
|
|
|
-- Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
2010-01-09 15:48:27 +01:00
|
|
|
-- Copyright (C) 2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
2014-11-06 11:20:47 +01:00
|
|
|
-- Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>
|
2003-06-30 16:17:30 +02: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 15:36:08 +01:00
|
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
2003-06-30 16:17:30 +02: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
|
2019-09-23 21:55:30 +02:00
|
|
|
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2003-06-30 16:17:30 +02:00
|
|
|
--
|
2017-05-20 10:42:45 +02:00
|
|
|
-- Table of notification done
|
2003-06-30 16:17:30 +02:00
|
|
|
-- ===================================================================
|
|
|
|
|
|
|
|
|
|
create table llx_notify
|
|
|
|
|
(
|
|
|
|
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
2020-10-08 12:29:01 +02:00
|
|
|
tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
2003-06-30 18:25:10 +02:00
|
|
|
daten datetime, -- date de la notification
|
2003-06-30 16:17:30 +02:00
|
|
|
fk_action integer NOT NULL,
|
2014-10-25 01:20:59 +02:00
|
|
|
fk_soc integer NULL,
|
2010-08-21 00:12:05 +02:00
|
|
|
fk_contact integer NULL,
|
|
|
|
|
fk_user integer NULL,
|
2014-11-06 11:20:47 +01:00
|
|
|
type varchar(16) DEFAULT 'email',
|
2016-07-15 17:05:12 +02:00
|
|
|
type_target varchar(16) NULL, -- What type of target notification was sent to ? 'tocontactid', 'touserid', 'tofixedemail'
|
2008-09-28 22:41:42 +02:00
|
|
|
objet_type varchar(24) NOT NULL,
|
2010-01-09 15:48:27 +01:00
|
|
|
objet_id integer NOT NULL,
|
|
|
|
|
email varchar(255)
|
2011-02-24 10:57:02 +01:00
|
|
|
)ENGINE=innodb;
|