Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NameDBO

DTO

  •  Message
    (Immutable)
  • Primary key: Message ID
  • Foreign key: CreatedBy (UserGroup)
  • RecipientType (string)
  • Recipients (gzip-blob)
  • Subject
  • S3 File Handle
  • CreatedOn
 
  • Foreign key:
parent
  • replyTo (Message ID
(question)
  • )
  • ID (derived from ID generator)
  • CreatedBy (principal ID) (upon creation filled in for the authenticated user)
  • RecipientBundle
    • List of recipient IDs
  • Subject (string, optional)
  • S3 File Handle
  • CreatedOn
  • ReplyTo (optional)
  •  Message thread
  • Primary key: Thread ID
  • Foreign key: Message ID
 
  •  ThreadObjectLink
  • Foreign key: Thread ID
  • Unique key: Object ID, Object type
 
  •  Message votes
  • Primary key: Message ID
  • Up votes
  • Down votes
TBD
  •  MessageStatus
  • Foreign key: Message ID
  • Foreign key: Recipient ID (UserGroup)
  • States: UNREAD, READ, ARCHIVED
  • ID
  • Recipient
  • State
  •  MessageSettings
  • Foreign key: User ID (UserGroup)
  • Blob of settings
  • Etag
  • ID
  • Notification levels
    • Update to an owned entity
    • Update to some favorite entity
    • Team
    • Message from user
    • Mail to everyone
    • Etc...
  • Message receipt email (if more than one)
  • Auto-mark mail as read if forwarded to email
  •  MessageBundle
 Bundles the Message and Message Status
  •  RecipientBundle
 
  • RecipientType
    • May be a principal, entity, ...
  • Array of IDs
    • All IDs must be valid (404 otherwise)

...