090c562553
This allows the inbox system to be separate from Person, allowing other kinds of objects to have inboxes too. Much like there's FollowerSet which works separately from Tickets, and will allow to have follower sets for projects, users, etc. too. Inboxes are made independent from Person users because I'm going to give Projects inboxes too.
36 lines
783 B
Text
36 lines
783 B
Text
Person
|
|
ident Int64
|
|
login Text
|
|
passphraseHash ByteString
|
|
email Text
|
|
verified Bool
|
|
verifiedKey Text
|
|
verifiedKeyCreated UTCTime
|
|
resetPassKey Text
|
|
resetPassKeyCreated UTCTime
|
|
about Text
|
|
inbox InboxId
|
|
|
|
UniquePersonIdent ident
|
|
UniquePersonLogin login
|
|
UniquePersonEmail email
|
|
|
|
Inbox
|
|
|
|
InboxItemLocal
|
|
person PersonId
|
|
inbox InboxId
|
|
activity Int64
|
|
item Int64
|
|
|
|
UniqueInboxItemLocal person activity
|
|
UniqueInboxItemLocalItem item
|
|
|
|
InboxItemRemote
|
|
person PersonId
|
|
inbox InboxId
|
|
activity Int64
|
|
item Int64
|
|
|
|
UniqueInboxItemRemote person activity
|
|
UniqueInboxItemRemoteItem item
|