Models - russelmahmud/ecommerce-example GitHub Wiki
Customer
-
first_name
- Type: String
- Description: First name of customer
-
last_name
- Type: String
- Description: Last name of customer
-
username
- Type: String
- Description: Unique username
-
email
- Type: Email
- Description: Email address of customer
-
password
- Type: String
- Description: Hashed password
Product
-
name
- Type: String
- Description: Name of the product
-
quantity
- Type: Integer
- Description: Available quantity in stock
-
unit_price
- Type: Decimal
- Descriptions: Unit price
Cart
-
checked_out
- Type: Boolean
- Description: Boolean specifying weather cart's been checked out or not
-
timestamp
- Type: DateTime
- Description: Last modified at
CartItem
-
cart
- Type: Cart
- Description: Foreign key to Cart model
-
product
- Type: Product
- Description: Foreign key to Product model
-
quantity
- Type: Integer
- Description: Available quantity in stock
-
unit_price
- Type: Decimal
- Descriptions: Unit price
-
total_price
- Type: Decimal
- Descriptions: Total price = quantity * unit_price
-
timestamp
- Type: DateTime
- Description: Last modified at