issues
search
jocafernanro
/
wishlist-backend-app
0
stars
0
forks
source link
Create Product Model
#10
Open
jocafernanro
opened
1 year ago
jocafernanro
commented
1 year ago
Define the Product model in the backend
AC1. The product model has fields for ProductID, WishlistID, Name, Links, Photo, Comments, Priority and Quantity
Field
Data
ProductID
Integer, Auto-incremented primary key
WishlistID
Integer, Foreign key referencing Wishlist(WishlistID)
Name
String, Product title
Links
List of String (Optional)
Photo
BLOB (Optional)
Comments
String (Optional)
Priority
Integer (Required)
Quantity
Integer (Required)
AC2. The Product model can be properly mapped to a database table
Define the Product model in the backend