text: -- RedefineTables
  PRAGMA foreign_keys=OFF;
  CREATE TABLE "new_Order" (
      "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
      "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" DATETIME NOT NULL,
      "userId" INTEGER NOT NULL,
      "state" INTEGER NOT NULL DEFAULT 0,
      CONSTRAINT "Order_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
  );
  INSERT INTO "new_Order" ("createdAt", "id", "updatedAt", "userId") SELECT "createdAt", "id", "updatedAt", "userId" FROM "Order";
  DROP TABLE "Order";
  ALTER TABLE "new_Order" RENAME TO "Order";
  PRAGMA foreign_key_check;
  PRAGMA foreign_keys=ON;
  