Church Cashbook Data Schema Manual
Site-wide configuration and security limits.
Purpose
TODO — will be completed once DDL is provided.
Key columns
- TODO
Constraints & invariants
- TODO
Operational notes
- TODO
ERD
Relationships
To be completed.
Columns
See DDL below.
Indexes
See DDL below.
Constraints
See DDL below.
Operational notes / invariants
- To be completed.
DDL
-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Feb 25, 2026 at 12:02 PM
-- Server version: 8.0.40
-- PHP Version: 8.3.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `church_accounts`
--
-- --------------------------------------------------------
--
-- Table structure for table `site_settings`
--
CREATE TABLE `site_settings` (
`setting_key` varchar(80) NOT NULL,
`setting_value` varchar(255) NOT NULL,
`updated_by_user_id` int UNSIGNED DEFAULT NULL,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `site_settings`
--
ALTER TABLE `site_settings`
ADD PRIMARY KEY (`setting_key`),
ADD KEY `idx_site_settings_updated_by` (`updated_by_user_id`);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `site_settings`
--
ALTER TABLE `site_settings`
ADD CONSTRAINT `fk_site_settings_updated_by` FOREIGN KEY (`updated_by_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;