Skip to content

SEDENYS/planit-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ PlanIt Database Dump

This repository contains a PostgreSQL database dump (planit_dump.sql) for the PlanIt project β€” a personal planning and recommendation app.

The dump includes the full schema and minimal seed data for development, testing, or educational purposes.


πŸ“š Project Overview

PlanIt is a full-stack web application built with:

  • πŸ”Ή Frontend: React
  • πŸ”Ή Backend: Node.js + Express
  • πŸ”Ή Database: PostgreSQL

This SQL dump was generated from a live Render database using PostgreSQL 16.


πŸ’Ύ What's Included

  • βœ… Full table structure (CREATE TABLE, SEQUENCES, constraints)
  • βœ… Foreign key relationships and validation checks
  • βœ… Initial seed data (admin user + login)
  • ❌ No owner/privileges
  • ❌ No CREATE DATABASE or DROP DATABASE statements
  • πŸ“Ž Format: Plain SQL with INSERT statements (not COPY), UTF-8 encoded

πŸš€ How to Restore

Make sure you have PostgreSQL 16 or later installed.

1. Create an empty database

createdb planit

2. Import the dump

psql -d planit -f planit_dump.sql

πŸ‘€ Demo Credentials

This dump includes a sample admin account:

Email:    planit@mail.com
Password: (stored as bcrypt hash)
Role:     admin

⚠️ These credentials are for demonstration only. Do not use in production.


🧭 Entity Relationship Diagram

This diagram shows the structure of the database and relationships between tables:

PlanIt ER Diagram


πŸ›‘οΈ License & Usage

This repository is intended for educational and demonstration purposes. You are welcome to use it as a reference or foundation for your own projects.


🀝 Contributions

Suggestions and pull requests are welcome!

If you're building something similar and want to collaborate β€” feel free to reach out.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published