Add UniquePersonInbox to persistent model; each user has their own unique inbox
This commit is contained in:
parent
71ab1c4459
commit
f70aa42060
2 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,7 @@ Person
|
|||
UniquePersonIdent ident
|
||||
UniquePersonLogin login
|
||||
UniquePersonEmail email
|
||||
UniquePersonInbox inbox
|
||||
|
||||
OutboxItem
|
||||
person PersonId
|
||||
|
|
|
@ -593,6 +593,8 @@ changes hLocal ctx =
|
|||
-- 104
|
||||
, addUnique "InboxItemRemote" $
|
||||
Unique "UniqueInboxItemRemote" ["inbox", "activity"]
|
||||
-- 105
|
||||
, addUnique "Person" $ Unique "UniquePersonInbox" ["inbox"]
|
||||
]
|
||||
|
||||
migrateDB :: MonadIO m => Text -> HashidsContext -> ReaderT SqlBackend m (Either Text (Int, Int))
|
||||
|
|
Loading…
Reference in a new issue