feat: Implement user tracking in projects
- Added user tracking features to the projects module, including: - Database schema updates to track project creator and assignee. - API enhancements for user management and project filtering by user. - UI components for user assignment in project forms and listings. - New query functions for retrieving users and filtering projects. - Security integration with role-based access and authentication requirements. chore: Create utility scripts for database checks and project testing - Added scripts to check the structure of the projects table. - Created tests for project creation and user tracking functionality. - Implemented API tests to verify project retrieval and user assignment. fix: Update project creation and update functions to include user tracking - Modified createProject and updateProject functions to handle user IDs for creator and assignee. - Ensured that project updates reflect the correct user assignments and timestamps.
This commit is contained in:
13
check-columns.mjs
Normal file
13
check-columns.mjs
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user