DBSchema
DBSchema
Layouts
1. ~Layout with Sample Tools 1
Tables
test.filters [ 1 ] 2
test.musics [ 1 ] 2
test.orders [ 1 ] 2
test.users [ 1 ] 3
~Layout with Sample Tools 15-06-2023 by DbSchema.com - Wise Coders
l
l
ria
ria
aT
aT
product
cart Relationship
em
m
orders
he
users Relationship
ch
_id objectId
c
Relationship
_id objectId checkoutOrder object
bS
bS
name string user objectId
D
D
img string date date
email string __v int
musics phoneNo string name string
password string paymentId string
cart object contactNo int
musics Relationship
wishlist object
Relationship
_id objectId orders array
name string createdAt date
Obj
duration string updatedAt date
year string __v int
checkoutOrder
artist array[string]
language string items array[object]
img string order_total int
Obj
Obj
price int discount int
lyric string total int
cart wishlist
__v int
cart_total int items array[object]
l
l
ria
ria
discount int
Ary
total int
aT
aT
items array[object]
items
m
em
product object
he
ch
qty int
Ary
Ary
c
_id objectId
bS
bS
D
D
items items
product objectId product objectId
Obj
qty int _id objectId
_id objectId
product
discount int
_id objectId
name string
duration string
filters year string
artist array[string]
language string
filters
img string
_id objectId price int
languages array[object] lyric string
artists array[string] __v int
__v int
l
l
ria
ria
aT
aT
Ary
em
em
languages
ch
ch
name string
bS
bS
img string
D
D
~Layout with Sample Tools
Collection filters
* Pk _id objectId
* languages array[object]
* languages.name string
* languages.img string
* artists array[string]
* __v int
Indexes
Pk _id_ _id
Collection musics
* Pk _id objectId
* name string
* duration string
* year string
* artist array[string]
* language string
* img string
* price int
* lyric string
* __v int
Indexes
Pk _id_ _id
Collection orders
* Pk _id objectId
* checkoutOrder object
* checkoutOrder.items array[object]
* checkoutOrder.items.product object
* checkoutOrder.items.product.discount int
* checkoutOrder.items.product._id objectId
* checkoutOrder.items.product.name string
* checkoutOrder.items.product.duration string
* checkoutOrder.items.product.year string
* checkoutOrder.items.product.artist array[string]
* checkoutOrder.items.product.language string
* checkoutOrder.items.product.img string
* checkoutOrder.items.product.price int
* checkoutOrder.items.product.lyric string
* checkoutOrder.items.product.__v int
* checkoutOrder.items.qty int
* checkoutOrder.items._id objectId
* checkoutOrder.order_total int
* checkoutOrder.discount int
* checkoutOrder.total int
* user objectId
* date date
* __v int
Collection orders
name string
paymentId string
contactNo int
Indexes
Pk _id_ _id
Relationships
Vir Relationship ( checkoutOrder.items.product._id ) ref musics ( _id )
Vir Relationship ( user ) ref users ( _id )
Collection users
* Pk _id objectId
* name string
* img string
* Unq email string
* phoneNo string
* password string
* cart object
* cart.cart_total int
* cart.discount int
* cart.total int
cart.items array[object]
* cart.items.product objectId
* cart.items.qty int
* cart.items._id objectId
* wishlist object
* wishlist.items array[object]
* wishlist.items.product objectId
* wishlist.items._id objectId
* orders array
* createdAt date
* updatedAt date
* __v int
Indexes
Pk _id_ _id
Unq email_1 email
Relationships
Vir Relationship ( cart.items.product ) ref musics ( _id )
Vir Relationship ( wishlist.items.product ) ref musics ( _id )
Vir Relationship ( orders ) ref orders ( _id )