exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

0002-kyc_alerts.sql (1263B)


      1 --
      2 -- This file is part of TALER
      3 -- Copyright (C) 2014--2022 Taler Systems SA
      4 --
      5 -- TALER is free software; you can redistribute it and/or modify it under the
      6 -- terms of the GNU General Public License as published by the Free Software
      7 -- Foundation; either version 3, or (at your option) any later version.
      8 --
      9 -- TALER is distributed in the hope that it will be useful, but WITHOUT ANY
     10 -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11 -- A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     12 --
     13 -- You should have received a copy of the GNU General Public License along with
     14 -- TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15 --
     16 
     17 CREATE TABLE kyc_alerts
     18   (h_payto BYTEA PRIMARY KEY CHECK (LENGTH(h_payto)=32)
     19   ,trigger_type INT4 NOT NULL
     20   ,UNIQUE(trigger_type,h_payto)
     21   );
     22 COMMENT ON TABLE kyc_alerts
     23   IS 'alerts about completed KYC events reliably notifying other components (even if they are not running)';
     24 COMMENT ON COLUMN kyc_alerts.h_payto
     25   IS 'hash of the normalized payto://-URI for which the KYC status changed';
     26 COMMENT ON COLUMN kyc_alerts.trigger_type
     27   IS 'identifies the receiver of the alert, as the same h_payto may require multiple components to be notified';