nighthawkcoders / flask_2025

This project is a web application for managing Classroom instruction and operations. It is built using Flask, SQLAlchemy, and other requirements.txt dependencies.
https://flask2025.nighthawkcodingsociety.com/
0 stars 12 forks source link

Db tables creations #15

Closed varunm532 closed 4 months ago

varunm532 commented 4 months ago

This pull request includes the code to creating tables and table relations. It also contains some db changes code which is used to create a "test" api endpoint . To test it, first you would need to bulk update the stock table by using the data in the csv file: stocks_table_exp.csv. Then the first thing to run is _initilize_user to create a new user in the StockUser table. A possible post request of postman:{"uid":"niko","quantity":10,"symbol": "AAPL"}. All db change are found in the model/user.py file image

image

image

image

bulk insert in stocks table

image

run first