donau

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

commit d5c58f2419e35f85334ead5d08cbc7bb2c4c9a1c
parent fec66bc7750b65d76e1e44789a693e29af8f3eef
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Mon,  2 Oct 2023 19:13:34 +0200

[db] added table for submitted receipts

Diffstat:
Asrc/donaudb/0002-donau_receipts_submitted.sql | 28++++++++++++++++++++++++++++
1 file changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/donaudb/0002-donau_receipts_submitted.sql b/src/donaudb/0002-donau_receipts_submitted.sql @@ -0,0 +1,28 @@ +-- +-- This file is part of TALER +-- Copyright (C) 2014--2022 Taler Systems SA +-- +-- TALER is free software; you can redistribute it and/or modify it under the +-- terms of the GNU General Public License as published by the Free Software +-- Foundation; either version 3, or (at your option) any later version. +-- +-- TALER is distributed in the hope that it will be useful, but WITHOUT ANY +-- WARRANTY; without even the implied warranty of CHARITYABILITY 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 along with +-- TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> +-- + +CREATE TABLE receipts_submitted + (receipt_id BIGINT GENERATED BY DEFAULT AS IDENTITY UNIQUE + ,hash_tax_number BYTEA NOT NULL + ,total_amount taler_amount NOT NULL + ,year INT8 NOT NULL + ); +COMMENT ON TABLE receipts_submitted + IS 'Table containing information of the donation receips submitted from the donor.'; +COMMENT ON COLUMN receipts_submitted.hash_tax_number + IS 'The hash of the tax number and salt.'; +COMMENT ON COLUMN receipts_submitted.total_amount + IS 'The total amount over all donation receipts.';