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
97Lord Jesus Christ, make me to be what you created me for.PersonalansweredN/AN/A2025-09-10 06:11:41
96Prayer for success in my AcedemicsWorkansweredFranklynPapua New Guinea 🇵🇬2025-09-08 07:03:50
95God 🙏 give me workPersonalansweredChinenyenwa NwakwuruokeNigeria2025-09-06 12:31:55
94God 🙏 give me workPersonalanswerednullnull2025-09-06 12:31:54
93SalvationFamilyanswerednullnull2025-09-04 04:34:27

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