1st commit

This commit is contained in:
Aritra Banik
2024-02-03 16:37:29 +05:30
commit a27f498e2b
167 changed files with 97897 additions and 0 deletions

3
src/a3pkg/mics.nim Normal file
View File

@@ -0,0 +1,3 @@
import
./models,
../a3c/[cart, products, users]

46
src/a3pkg/models.nim Normal file
View File

@@ -0,0 +1,46 @@
import times
type
User* = object
## User is the user model
id*: int
firstName*: string
lastName*: string
email*: string
password*: string
createdAt*: DateTime
updatedAt*: DateTime
accessLevel*: int
Products* = object
## Product is the product model
id*: int
name*: string
description*: string
productType*: string
pageName*: string
price*: float
createdAt*: DateTime
updatedAt*: DateTime
picURL*: string
quantity*: int
Cart* = object
## Cart is the cart model
id*: int
userId*: int
productId*: int
quantity*: int
createdAt*: DateTime
updatedAt*: DateTime
Orders* = object
## Orders is the orders model
id*: int
userId*: int
productId*: int
quantity*: int
createdAt*: DateTime
updatedAt*: DateTime
orderStatus*: string
orderDate*: DateTime