Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ Firebase database table structure
- [Wallets](/wallets)
- [Applicants](/applicants)
- [task-dependency](/task-dependency/)
- [onboarding-extension-requests](/onboarding-extension-requests)
98 changes: 98 additions & 0 deletions onboarding-extension-requests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@

### Onboarding Extension Request Firestore collection model

Comment on lines +1 to +3
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick (assertive)

Consider Adding a Top-Level Heading
While the file begins with a level-3 heading, markdown best practices (and tools such as markdownlint MD041) suggest that the first line should be a top-level (level-1) heading. For better structure and readability, consider replacing the current heading with a level-1 heading (e.g., # Onboarding Extension Request Firestore Collection Model).

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

2-2: First line in a file should be a top-level heading
null

(MD041, first-line-heading, first-line-h1)

```json
{
"id": "String",
"type": "String",
"userId": "String",
"state": "String",
"oldEndsOn": "number",
"newEndsOn": "number",
"message": "String",
"createdAt": "Timestamp",
"updatedAt": "Timestamp",
"lastModifiedBy": "String",
"reason": "String",
"requestedBy": "String",
"requestedNumber": "number"
}
```

#### Fields

| Field | Type | Description |
| ------------- | --------- | ------------------------------------------------------------------------|
| id | String | Unique identifier for the document. |
| userId | String | The id of the user who created the request. |
| state | String | The state of the request like APPROVED, REJECTED, PENDING. |
| oldEndsOn | number | Old deadline of the onboarding task in millisecond. |
| newEndsOn | number | New deadline of the onboarding task in millisecond. |
| message | String | The message provided by superuser while approving or rejecting request. |
| createdAt | Timestamp | Unix timestamp for the creation time of the request. |
| updatedAt | Timestamp | Unix timestamp for the last update time of the request. |
| lastModifiedBy| String | The id of the superuser or request owner who processed the request. |
| reason | String | The reason for the extension request. |
| requestedBy | String | The username of the user who created the request. |
| requestNumber | number | The current request number of onboarding extension request. |
| type | String | The type of request, i.e., ONBOARDING. |

### Example data

#### Example for PENDING state

```json
{
"id": "VYSTHeIERJlEtQdpViWo",
"createdAt": 1741328586836,
"updatedAt": 1741328586836,
"type": "ONBOARDING",
"state": "PENDING",
"userId": "7bTCwaMgEnKSumhenkwj",
"requestedBy": "mridul-khandelwal-1",
"oldEndsOn": 1743683053755,
"newEndsOn": 1744115053755,
"reason": "testing",
"requestNumber": 1
}
```

#### Example for APPROVED state

```json
{
"id": "Vv5IPkhghnNyjPYhw6Ws",
"createdAt": 1738686977925,
"type": "ONBOARDING",
"userId": "p86xesKNsxic6uFe6SZi",
"requestedBy": "mohit-ramani-1",
"oldEndsOn": 1740584089491,
"requestNumber": 1,
"reason": "test 2",
"newEndsOn": 1741132800000,
"lastModifiedBy": "65QiTlqudZfDk3i5W9WO",
"state": "APPROVED",
"message": "super-user message for testing",
"updatedAt": 1738830512066
}
```

#### Example for REJECTED state

```json
{
"id": "Vv5IPkhghnNyjPYhw6Ws",
"createdAt": 1738686977925,
"type": "ONBOARDING",
"userId": "p86xesKNsxic6uFe6SZi",
"requestedBy": "mohit-ramani-1",
"oldEndsOn": 1740584089491,
"requestNumber": 1,
"reason": "test 2",
"newEndsOn": 1741132800000,
"lastModifiedBy": "65QiTlqudZfDk3i5W9WO",
"state": "REJECTED",
"message": "super-user message for testing",
"updatedAt": 1738830512066
}
```