branch
Documentation for the branch database schema.
Fields
| Field | Data Type | Usage |
|---|---|---|
| companyId | ObjectId | Unique reference to company. |
| name | String | The name or title of the branch. |
| regionalOffice | ObjectId | Stores the regional office data. |
| code | String | Stores the code data. |
| companyEsiCode | String | Stores the company esi code data. |
| address | String | Stores the address data. |
| country | String | Stores the country data. |
| city | String | Stores the city data. |
| state | String | Timestamp/Date for state. |
| postalCode | Number | Stores the postal code data. |
| contactPerson | String | Stores the contact person data. |
| contactNumber | String | Stores the contact number data. |
String | Primary email address. | |
| openingDate | String | Timestamp/Date for openingDate. |
| numberofEmployees | Number | Stores the numberof employees data. |
| remarks | String | Detailed notes or remarks. |
| branchManager | ObjectId | Stores the branch manager data. |
| regionManager | ObjectId | Stores the region manager data. |
| isDeleted | Boolean | Stores the is deleted data. |
| status | Boolean | Timestamp/Date for status. |
| deletedBy | ObjectId | Stores the deleted by data. |
| deletedTime | Date | Timestamp/Date for deletedTime. |