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
560GrinssFamilypendingSamuelansahkwame548@gmail.com2026-10-08 20:53:09
559ExdousOtheransweredPhilip Nyamekye.Ghana2026-09-27 11:40:11
558ExdousChurchanswerednullnull2026-09-27 11:40:10
557Be a warrior 💪Churchanswerednullnull2026-09-27 10:09:33
556Be a warrior 💪Personalanswerednull Evans ThompsonnullGhana2026-09-27 10:09:23

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