Mongoose Docs for SyubhatStock model
undefined
| Field Name |
Field Type |
Comment |
Required |
Default |
Min |
Max |
Nested Schema |
| unit |
ObjectID |
|
True |
|
|
|
|
| id_goods |
ObjectID |
|
False |
null |
|
|
|
| id_drugs |
ObjectID |
|
False |
null |
|
|
|
| batch_number |
String |
|
False |
null |
|
|
|
| expiry_date |
String |
|
False |
null |
|
|
|
| package |
String |
|
False |
null |
|
|
|
| quantity |
Number |
|
False |
0 |
|
|
|
| price |
Number |
|
False |
0 |
|
|
|
| history[].diff |
Number |
|
False |
0 |
|
|
|
| history[].id_transaction |
ObjectID |
|
False |
null |
|
|
|
| history[].created_at |
String |
|
False |
() => moment().format() |
|
|
|
| history |
Array |
|
False |
|
|
|
|
| timestamps.created_at |
String |
|
False |
() => moment().format() |
|
|
|
| timestamps.created_by |
ObjectID |
|
False |
|
|
|
|
| _id |
ObjectID |
|
False |
|
|
|
|
| __v |
Number |
|
False |
|
|
|
|