https://github.com/gabrielu3/database-cellphone-enterprise
SQL Database Implementation for a fictional enterprise that sells cell phones
https://github.com/gabrielu3/database-cellphone-enterprise
data database plpgsql postgresql postgresql-database script sql trigger
Last synced: about 1 year ago
JSON representation
SQL Database Implementation for a fictional enterprise that sells cell phones
- Host: GitHub
- URL: https://github.com/gabrielu3/database-cellphone-enterprise
- Owner: GabrielU3
- Created: 2025-02-18T20:53:42.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-27T03:16:16.000Z (over 1 year ago)
- Last Synced: 2025-04-14T03:07:14.477Z (about 1 year ago)
- Topics: data, database, plpgsql, postgresql, postgresql-database, script, sql, trigger
- Language: PLpgSQL
- Homepage:
- Size: 678 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
=== DESCRIPTION ===
This repository contains the scripts used to implement a database project for a fictitious company whose main product is the sale of cell phones.
This database created for the corresponding fictitious company is capable of storing the main information necessary for the operation of that company.
Such as:
- Customer Data
- Employee Data
- Cell Phone Stock
- Stock of Cell Phone Parts
- Information and data on orders placed by customers
- Information about different departments of the company
- Information about cell phone support requests requested by the customer
Note: Since the project was done for the database course at my college in Brazil, most of it was written in Portuguese-BR.
Note2: The project was implemented in PostgreSQL
=== Entities ===
The main entities/tables implemented in the database are:
- Orders
- Customers
- Employees
- Departments
- Cell phones
- Cell Phone Models
- Cell Phone Parts
- Support Request
=== Files and Scripts ===
Documentação.pdf: Contains documentation regarding the creation and implementation of the database project, with relevant information, such as the entity relationship model and the relational model.
main_database.sql: Contains the main SQL for implementing the created database
triggers.sql: Contains some stored procedures(functions), triggers and views created for better database functioning
inserts.sql: Contains some inserts created to test the operation of the database
queries.sql: Contains some queries requested by the teacher at the time to test the functioning of the database