text: /*
    Warnings:
  
    - You are about to drop the column `booksId` on the `transactions` table. All the data in the column will be lost.
  
  */
  -- RedefineTables
  PRAGMA foreign_keys=OFF;
  CREATE TABLE "new_transactions" (
      "id" TEXT NOT NULL PRIMARY KEY,
      "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" DATETIME NOT NULL,
      "userId" TEXT NOT NULL,
      FOREIGN KEY ("userId") REFERENCES "users" ("id") ON DELETE CASCADE ON UPDATE CASCADE
  );
  INSERT INTO "new_transactions" ("id", "userId", "createdAt", "updatedAt") SELECT "id", "userId", "createdAt", "updatedAt" FROM "transactions";
  DROP TABLE "transactions";
  ALTER TABLE "new_transactions" RENAME TO "transactions";
  PRAGMA foreign_key_check;
  PRAGMA foreign_keys=ON;
  