mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 16:56:56 +00:00
refactor/use view_id instead of view_fk as the AccountAccess UniqueIndex
This commit is contained in:
parent
840f9016d2
commit
a98c56e97f
@ -27,7 +27,7 @@ class AccountAccess extends LongKeyedMapper[AccountAccess] with IdPK with Create
|
||||
object view_fk extends MappedLongForeignKey(this, ViewDefinition)
|
||||
}
|
||||
object AccountAccess extends AccountAccess with LongKeyedMetaMapper[AccountAccess] {
|
||||
override def dbIndexes: List[BaseIndex[AccountAccess]] = UniqueIndex(bank_id, account_id, view_fk, user_fk, consumer_id) :: super.dbIndexes
|
||||
override def dbIndexes: List[BaseIndex[AccountAccess]] = UniqueIndex(bank_id, account_id, view_id, user_fk, consumer_id) :: super.dbIndexes
|
||||
def findAllBySystemViewId(systemViewId:ViewId)= AccountAccess.findAll(
|
||||
By(AccountAccess.view_id, systemViewId.value)
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user