Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oshkoshbagoshh/fcc-bash-salon-scheduler
Bash program that interacts with a Postgresql Database for FCC
https://github.com/oshkoshbagoshh/fcc-bash-salon-scheduler
Last synced: 19 days ago
JSON representation
Bash program that interacts with a Postgresql Database for FCC
- Host: GitHub
- URL: https://github.com/oshkoshbagoshh/fcc-bash-salon-scheduler
- Owner: oshkoshbagoshh
- License: mit
- Created: 2024-06-11T20:21:44.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T20:27:12.000Z (7 months ago)
- Last Synced: 2024-10-16T19:40:05.139Z (2 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Salon Appointment Scheduler
This project is a simple bash script that interacts with a PostgreSQL database to manage salon appointments. It allows users to select a service, enter their phone number, and schedule an appointment.
## Features
- Display a list of available services
- Prompt users to select a service
- Check if the user is an existing customer by phone number
- Add new customers to the database
- Schedule appointments for customers## Database Schema
The database consists of three tables:
1. **customers**
- `customer_id` (SERIAL PRIMARY KEY)
- `name` (VARCHAR NOT NULL)
- `phone` (VARCHAR UNIQUE NOT NULL)2. **services**
- `service_id` (SERIAL PRIMARY KEY)
- `name` (VARCHAR NOT NULL)3. **appointments**
- `appointment_id` (SERIAL PRIMARY KEY)
- `customer_id` (INT REFERENCES customers(customer_id))
- `service_id` (INT REFERENCES services(service_id))
- `time` (VARCHAR NOT NULL)