-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Boolean values are often unnecessary if an action timestamp conveys the information. For example, we currently use a boolean isSubscribed field on subscriptions to convey whether the subscription is active. Instead, an unsubscribedAt timestamp would convey more information:
- If it's present, the user is unsubscribed
- If it's not present, the user is subscribed
- The
updatedAtandunsubscribedAtfields can convey different information (theunsubscribedAttimestamp is a definite action taken at a specific time, theupdatedAtvalue is updated whenever a record changes).