Tag
Stored in the tags collection. createdAt and updatedAt are maintained automatically.
Returned by GET /tag, POST /tag, GET /tag/:id, PUT /tag/:id.
| Field | Type | Notes |
|---|---|---|
name | string | required |
description | string | |
color | string | default oklch(0.985 0.001 106.423) |
company | ObjectId -> Company | |
createdBy | ObjectId -> Member | |
updatedBy | ObjectId -> Member | |
_id | ObjectId | default "6a95712f932657988a91c0db" |
createdAt | date | set once |
updatedAt | date |