https://github.com/keanteng/trading-database
🔍 A Study On Trading Company Database
https://github.com/keanteng/trading-database
database database-management inventory json python sqlite synthetic-data trading-and-supply
Last synced: 6 months ago
JSON representation
🔍 A Study On Trading Company Database
- Host: GitHub
- URL: https://github.com/keanteng/trading-database
- Owner: keanteng
- License: mit
- Created: 2024-08-23T15:05:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T12:51:42.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T21:27:58.104Z (over 1 year ago)
- Topics: database, database-management, inventory, json, python, sqlite, synthetic-data, trading-and-supply
- Language: Jupyter Notebook
- Homepage:
- Size: 2.64 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trading Company Database With Python SQLite


[](https://opensource.org/licenses/MIT)
To create databases for inventory management system, especially goods trading company dataset. In this project, I aim to create database and store them on SQLite using Python. The objective is to understand the flow of data in a relational database and such understanding is crucial when we are working on project such as inventory management, sales tracking and more.
The data make use of the Python [faker](https://faker.readthedocs.io/) library to create fake details and information. All the data are identified by a cryptographic id to ensure no duplicates and unique.
The json version and database version of the file is provided. To ensure no error in recreating all the data, the generation steps should follow the `.ipynb` notebook naming order.
## File Structure
```txt
|.
└── generators/
├── databaase/
│ └── database.db
├── json_data/
│ └── *.json
└── *.ipynb
```
## Deploy Locally
Using Bash Terminal:
```python
git clone https://github.com/keanteng/trading-database
```
## Types of Table
|Index| Table | Note |
|---|----------|----------|
|1| Employee | All the employees information for the company |
|2| Categories | Categories on the products the company sell |
|3| Products | Products the company sell |
|4| Pricings | Products selling price - support variable pricing, SKUs |
|5| Customers | Company's customers |
|6| Orders | Orders created by customers |
|7| Order Items | Orders item from the orders |
|8| Payments | Payment details for the orders |
|9| Shippings | Shippingdetails for the orders |