A single collection can represent shortened URLs (e.g., ShortUrl).
| Field | Type | Description |
|---|---|---|
| id | String | Unique ID |
| originalUrl | String | Original URL |
| shortCode | String | Unique shortcode |
| createdAt | DateTime | Creation |
| expiresAt | DateTime | Expiration dat |
id
_id / ObjectId or a mapped string).originalUrl
shortCode
createdAt
expiresAt
This collection store registered users for authentication and ownership tracking
| Field | Type | Description |
|---|---|---|
| userID | String | Unique User ID |
| username | String | User Name |
| password | String | User Password |
userID
_userID a mapped string).username
password
shortCode