Ecommer
Ecommer
0..1 0..1
id int
name string
email string *
updateById int
avatar string
status UserStatus
totpSecret string
*
roleId int
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
updatedAt datetime
Brand
0..1
id int
logo string
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
BrandTranslation
id int
*
brandId int
*
languageId int
name string
description string
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
CartItem
id int
quanlity int
*
skuId int
*
userId int
createdAt datetime
updatedAt datetime
ProductSKUSnapshot
id int
productName String
price float
images string[]
skuValue string
*
skuId int
*
orderId int
createdAt datetime
Order
0..1
id int
*
userId int
status OrderStatus
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
Review
id int
content string
rating int
*
productId int
*
userId int
createdAt datetime
updatedAt datetime
PaymentTransaction
id int
gateway string
transactionDate datetime
accountNumber string
subAccount string
amountIn int
amountOut int
accumulated int
code string
transactionContent string
referenceNumber string
body string
createdAt datetime
Message
id int
*
fromUserId int
*
toUserId int
content string
readAt datetime
ProductsCategories
*
product_id int
*
category_id int
SkusVariantOptions
PermissionsRoles *
sku_id Int
*
permission_id Int *
variant_option_id Int
*
role_id Int
Language
0..1 0..1
id int
name string
email string *
updateById int
avatar string
status UserStatus
totpSecret string
*
roleId int
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
updatedAt datetime
Brand
0..1
id int
logo string
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
BrandTranslation
id int
*
brandId int
*
languageId int
name string
description string
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
CartItem
id int
quanlity int
*
skuId int
*
userId int
createdAt datetime
updatedAt datetime
ProductSKUSnapshot
id int
productName String
price float
images string[]
skuValue string
*
skuId int
*
orderId int
createdAt datetime
Order
0..1
id int
*
userId int
status OrderStatus
*
createById int
*
updateById int
deletedAt datetime
createdAt datetime
updatedAt datetime
Review
id int
content string
rating int
*
productId int
*
userId int
createdAt datetime
updatedAt datetime
PaymentTransaction
id int
gateway string
transactionDate datetime
accountNumber string
subAccount string
amountIn int
amountOut int
accumulated int
code string
transactionContent string
referenceNumber string
body string
createdAt datetime
Message
id int
*
fromUserId int
*
toUserId int
content string
readAt datetime
ProductsCategories
*
product_id int
*
category_id int
SkusVariantOptions
PermissionsRoles *
sku_id Int
*
permission_id Int *
variant_option_id Int
*
role_id Int
Enum OrderStatus {
PENDING_CONFIRMATION
PENDING_PICKUP
PENDING_DELIVERY
DELIVERED
RETURNED
CANCELLED
}
Enum VerificationCode {
REGISTER
FORGOT_PASSWORD
}
Enum UserStatus {
ACTIVE
BLOCKED
}