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
200Prayer for helpPersonalpendingCharles PhilipNigeria2025-11-05 08:13:04
199Prayer for helpPersonalpendingCharles PhilipNigeria2025-11-05 08:13:03
198Prayer for helpPersonalpendingCharles PhilipNigeria2025-11-05 08:13:02
197Prayer against FearPersonalpendingChisom MabelNigeria2025-11-03 23:00:44
196Prayer against FearPersonalpendingChisom MabelNigeria2025-11-03 23:00:44

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