Prayer Journal Database Setup

Connected to PostgreSQL server successfully!

Database 'engrprimusapps_journal' already exists.

Table 'prayers' already exists with all required fields.

Indexes created successfully!

Trigger for auto-updating timestamp created successfully!

Sample data already exists in the database.

Table Structure:

ColumnTypeNullableDefault
idintegerNonextval('prayers_id_seq'::regclass)
titlecharacter varyingNoNone
contenttextNoNone
categorycharacter varyingNoNone
statuscharacter varyingYes'pending'::character varying
date_createdtimestamp without time zoneNoNone
date_answeredtimestamp without time zoneYesNone
notestextYesNone
created_attimestamp without time zoneYesCURRENT_TIMESTAMP
updated_attimestamp without time zoneYesCURRENT_TIMESTAMP
namecharacter varyingYesNone
countrycharacter varyingYesNone

Sample Data:

IDTitleCategoryStatusNameCountryDate Created
29Prayer for healing from strokeHealthpendingJusticeGhana2025-07-21 09:16:13
28Prayer for healing from strokeHealthpendingJusticeGhana2025-07-21 09:16:12
27Prayer requestFamilypendingmelanie mihCameroon2025-07-21 09:05:43
26Pray requestPersonalansweredN/AN/A2025-07-21 04:16:06
25Pray requestPersonalpendingArnold MwelaZambia2025-07-21 04:16:05

Database Statistics:

Setup Complete!

Your Prayer Journal database is ready to use with name and country fields!

Next Steps:

API Usage Examples:

// Create prayer with name and country
POST /prayers.php
{
    "title": "Prayer for Peace",
    "content": "Praying for world peace",
    "category": "World",
    "name": "John Doe",
    "country": "Nigeria"
}

// Get prayers by country
GET /prayers.php?country=Nigeria

// Get countries with prayer counts
GET /prayers.php?countries