| 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 | ||||
| isAsset | Boolean | False | false | ||||
| asset_quantity | Number | False | 0 | ||||
| history[].diff | Number | False | 0 | ||||
| history[].id_transaction | ObjectID | False | null | ||||
| history[].created_at | String | False | () => moment().format() | ||||
| history | Array | False | |||||
| cutoff[].date | String | False | |||||
| cutoff[].quantity | Number | False | |||||
| cutoff[].price | Number | False | |||||
| cutoff[]._id | ObjectID | False | |||||
| cutoff | Array | False | |||||
| timestamps.created_at | String | False | () => moment().format() | ||||
| timestamps.created_by | ObjectID | False | |||||
| _id | ObjectID | False | |||||
| __v | Number | False |