[claudesquad] update from 'database' on 22 Jul 25 13:45 EDT (paused)

This commit is contained in:
2025-07-22 13:45:24 -04:00
parent 90fa76b864
commit 168137d463
34 changed files with 3252 additions and 0 deletions

30
scripts/init-db.sql Normal file
View File

@@ -0,0 +1,30 @@
-- Initialize PostgreSQL database for Software Release Management
-- This script runs during container initialization
-- Create additional users if needed
-- CREATE USER srm_app WITH PASSWORD 'secure_password';
-- GRANT CONNECT ON DATABASE software_release_management TO srm_app;
-- Enable UUID extension if needed in the future
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Enable PostGIS extension if geographical features are needed
-- CREATE EXTENSION IF NOT EXISTS postgis;
-- Set timezone
SET timezone = 'UTC';
-- Create schema for application (optional, using public by default)
-- CREATE SCHEMA IF NOT EXISTS srm;
-- Grant permissions
-- GRANT USAGE ON SCHEMA public TO srm_app;
-- GRANT CREATE ON SCHEMA public TO srm_app;
-- Log initialization
DO $$
BEGIN
RAISE NOTICE 'Database initialized for Software Release Management';
RAISE NOTICE 'Version: PostgreSQL %', version();
RAISE NOTICE 'Current time: %', NOW();
END $$;

23
scripts/servers.json Normal file
View File

@@ -0,0 +1,23 @@
{
"Servers": {
"1": {
"Name": "Software Release Management",
"Group": "Servers",
"Host": "postgres",
"Port": 5432,
"MaintenanceDB": "postgres",
"Username": "postgres",
"PassFile": "/tmp/pgpassfile",
"SSLMode": "prefer",
"SSLCert": "<STORAGE_DIR>/.postgresql/postgresql.crt",
"SSLKey": "<STORAGE_DIR>/.postgresql/postgresql.key",
"SSLCompression": 0,
"Timeout": 10,
"UseSSHTunnel": 0,
"TunnelHost": "",
"TunnelPort": "22",
"TunnelUsername": "",
"TunnelAuthentication": 0
}
}
}