| Field Name | Field Type | Comment | Required | Default | Min | Max | Nested Schema |
|---|---|---|---|---|---|---|---|
| unit | ObjectID | True | |||||
| id_stock | ObjectID | False | null | ||||
| 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 | ||||
| selling_price | Number | False | 0 | ||||
| inventory_price | Number | False | 0 | ||||
| isAsset | Boolean | False | false | ||||
| asset_quantity | Number | False | 0 | ||||
| cuttoff_date | String | False | () => moment().format('YYYY-MM-DD') | ||||
| cuttoff_at | String | False | () => moment().format() | ||||
| _id | ObjectID | False | |||||
| __v | Number | False |