Add tx tables to WalletDbManagement

This commit is contained in:
Torkel Rogstad 2019-06-18 18:22:16 +02:00
parent b3600f4888
commit fd0af6fd20

View File

@ -1,20 +1,22 @@
package org.bitcoins.wallet.db
import org.bitcoins.db.DbManagement
import org.bitcoins.wallet.models.{
AccountTable,
AddressTable,
UTXOSpendingInfoTable
}
import slick.jdbc.SQLiteProfile.api._
import org.bitcoins.wallet.models._
sealed abstract class WalletDbManagement extends DbManagement {
private val accountTable = TableQuery[AccountTable]
private val addressTable = TableQuery[AddressTable]
private val utxoDAO = TableQuery[UTXOSpendingInfoTable]
private val utxoTable = TableQuery[UTXOSpendingInfoTable]
private val incomingTxTable = TableQuery[IncomingTransactionTable]
private val outgoingTxTable = TableQuery[OutgoingTransactionTable]
override val allTables: List[TableQuery[_ <: Table[_]]] =
List(accountTable, addressTable, utxoDAO)
List(accountTable,
addressTable,
utxoTable,
incomingTxTable,
outgoingTxTable)
}