You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to buy and sell backend from scratch. jk. Buy and Sell backend will be very similar to Lost and Found. (Find the similarities).
Task Overview
In this task, you need to update the tables.sql file with new required tables and create /backend/backend/buy_sell.py which will contain pypika queries for the backend. You need to copy the queries from lost.py and rename functions, table names, and also have a type parameter to be able to distinguish between buy and sell tables.
Tasks
Update tables.sql file:
Add new tables for buy and sell functionalities.
Create a new file:/backend/backend/buy_sell.py.
Copy the queries from lost.py.
Rename the functions and table names to correspond to buy and sell operations.
Add a new parameter type to each function to distinguish between buy and sell tables(and their corresponding image tables).
You need to buy and sell backend from scratch. jk. Buy and Sell backend will be very similar to Lost and Found. (Find the similarities).
Task Overview
In this task, you need to update the
tables.sql
file with new required tables and create/backend/backend/buy_sell.py
which will contain pypika queries for the backend. You need to copy the queries fromlost.py
and rename functions, table names, and also have atype
parameter to be able to distinguish between buy and sell tables.Tasks
Update
tables.sql
file:Create a new file:
/backend/backend/buy_sell.py
.lost.py
.type
to each function to distinguish between buy and sell tables(and their corresponding image tables).Type Parameter
The
type
parameter should be:0
for queries on the buy table.1
for queries on the sell table.Example
Before (in
lost.py
):After (in
buy_sell.py
):Note: Pull requests (PRs) on branches other than backend will be closed.
The text was updated successfully, but these errors were encountered: