Skip to main content

Charity APIs and Schemas

Charity APIs

APIs and Microservices

Database Schemas

Diagram examples

Charities Table

ColumnTypeDescription
charity_idintegerPrimary key for the charity
charity_namestringName of the charity
descriptionstringDescription of the charity
categorystringCategory of the charity (e.g. education, health, environment)
locationstringLocation of the charity
websitestringWebsite of the charity
created_atdatetimeTimestamp of when the charity was added to the database
updated_atdatetimeTimestamp of when the charity was last updated

Donations Table

ColumnTypeDescription
donation_idintegerPrimary key for the donation
charity_idintegerForeign key to the charities table for the charity that received the donation
donor_idintegerForeign key to the donors table for the donor who made the donation
amountdecimalAmount of the donation
created_atdatetimeTimestamp of when the donation was added to the database
updated_atdatetimeTimestamp of when the donation was last updated

Reviews Table

ColumnTypeDescription
review_idintegerPrimary key for the review
charity_idintegerForeign key to the charities table for the charity that was reviewed
reviewer_idintegerForeign key to the reviewers table for the reviewer who wrote the review
ratingintegerRating given to the charity (e.g. 1-5 stars)
commentstringOptional comment left by the reviewer
created_atdatetimeTimestamp of when the review was added to the database
updated_atdatetimeTimestamp of when the review was last updated

Reviewers Table

ColumnTypeDescription
reviewer_idintegerPrimary key for the reviewer
namestringName of the reviewer
emailstringEmail address of the reviewer
passwordstringHashed password of the reviewer
created_atdatetimeTimestamp of when the reviewer account was created
updated_atdatetimeTimestamp of when the reviewer account was last updated