Church Cashbook
Data Schema Manual
Manual home Return to Church Cashbook

Table: gift_aid_claims

Gift Aid claim batches for HMRC submission, including status and sign-off metadata.

Purpose

Stores one row per Gift Aid claim batch for a church and financial year. The row tracks governance state (draft → ready → signed off → submitted) and timestamps for key milestones.

Relationships

Columns

Indexes

See DDL below.

Constraints

Operational notes / invariants

DDL

CREATE TABLE `gift_aid_claims` (
  `id` int UNSIGNED NOT NULL,
  `church_id` int UNSIGNED NOT NULL,
  `fy_start_year` int NOT NULL,
  `status` enum('DRAFT','READY','SIGNED_OFF','SUBMITTED') NOT NULL DEFAULT 'DRAFT',
  `signed_off_by` int UNSIGNED DEFAULT NULL,
  `signed_off_at` datetime DEFAULT NULL,
  `submitted_at` datetime DEFAULT NULL,
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;