import db from "./src/lib/db.js"; console.log("Checking projects table structure:"); const tableInfo = db.prepare("PRAGMA table_info(projects)").all(); console.log(JSON.stringify(tableInfo, null, 2)); // Check if created_at and updated_at columns exist const hasCreatedAt = tableInfo.some((col) => col.name === "created_at"); const hasUpdatedAt = tableInfo.some((col) => col.name === "updated_at"); console.log("\nColumn existence check:"); console.log("created_at exists:", hasCreatedAt); console.log("updated_at exists:", hasUpdatedAt);