donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

donau-0002.sql.in (1269B)


      1 --
      2 -- This file is part of TALER
      3 -- Copyright (C) 2024 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 BEGIN;
     18 
     19 SELECT _v.register_patch('donau-0002', NULL, NULL);
     20 SET search_path TO donau;
     21 
     22 CREATE DOMAIN gnunet_hashcode
     23   AS BYTEA
     24   CHECK(LENGTH(VALUE) = 32);
     25 
     26 CREATE TYPE taler_amount
     27   AS
     28   (val INT8
     29   ,frac INT4
     30   );
     31 COMMENT ON TYPE taler_amount
     32   IS 'Stores an amount, fraction is in units of 1/100000000 of the base value';
     33 
     34 #include "0002-donation_units.sql"
     35 #include "0002-donau_charities.sql"
     36 #include "0002-donau_history.sql"
     37 #include "0002-donau_receipts_issued.sql"
     38 #include "0002-donau_receipts_submitted.sql"
     39 #include "0002-donau_sign_keys.sql"
     40 
     41 COMMIT;