diff --git a/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/AccountTransaction.sq b/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/AccountTransaction.sq index 77e8013..e495e45 100644 --- a/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/AccountTransaction.sq +++ b/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/AccountTransaction.sq @@ -53,6 +53,12 @@ CREATE TABLE IF NOT EXISTS AccountTransaction ( isReversal INTEGER AS Boolean NOT NULL ); +CREATE INDEX idx_AccountTransaction_bankId +ON AccountTransaction (bankId); + +CREATE INDEX idx_AccountTransaction_accountId +ON AccountTransaction (accountId); + insertTransaction: INSERT INTO AccountTransaction( @@ -163,6 +169,12 @@ CREATE TABLE IF NOT EXISTS Holding ( buyingDate TEXT ); +CREATE INDEX idx_Holding_bankId +ON Holding (bankId); + +CREATE INDEX idx_Holding_accountId +ON Holding (accountId); + insertHolding: INSERT INTO Holding( diff --git a/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/Bank.sq b/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/Bank.sq index 5c8c3cc..9d186e7 100644 --- a/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/Bank.sq +++ b/composeApp/src/commonMain/sqldelight/net/codinux/banking/ui/Bank.sq @@ -111,6 +111,9 @@ CREATE TABLE IF NOT EXISTS BankAccount ( includeInAutomaticAccountsUpdate INTEGER AS Boolean NOT NULL ); +CREATE INDEX idx_BankAccount_bankId +ON BankAccount (bankId); + insertBankAccount: INSERT INTO BankAccount( @@ -165,6 +168,9 @@ CREATE TABLE IF NOT EXISTS TanMethod ( allowedTanFormat TEXT NOT NULL ); +CREATE INDEX idx_TanMethod_bankId +ON TanMethod (bankId); + insertTanMethod: INSERT INTO TanMethod( @@ -214,6 +220,9 @@ CREATE TABLE IF NOT EXISTS TanMedium ( validTo TEXT ); +CREATE INDEX idx_TanMedium_bankId +ON TanMedium (bankId); + insertTanMedium: INSERT INTO TanMedium(