Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PORT=5000
NODE_ENV=development

# Database Configuration
DATABASE_URL=postgresql://username:password@localhost:5432/construction_machinery_db
DATABASE_URL=postgresql://postgres:189633@localhost:5432/construction_machinery_db

# Session Configuration
SESSION_SECRET=your-super-secret-session-key-here
Expand Down
316 changes: 165 additions & 151 deletions backend/package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@eslint/js": "^9.31.0",
"@types/connect-pg-simple": "^7.0.3",
"@types/cors": "^2.8.19",
"@types/dotenv": "^6.1.1",
"@types/express": "^5.0.3",
"@types/express-session": "^1.18.2",
"@types/multer": "^2.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "products" ADD COLUMN "documents" JSONB;
1 change: 1 addition & 0 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ model Product {
stockQty Int @default(0)
images String[] // Array of image URLs
specs Json? // JSON field for specifications
documents Json? // Array of document objects: { name: string, url: string }
isActive Boolean @default(true)

// Foreign keys
Expand Down
Loading