feat: Add TypeScript type generation and update DTOs to use string for IDs
This commit is contained in:
+6
-16
@@ -27,6 +27,7 @@ help:
|
||||
@echo " make db-reinit - Re-initialize the database"
|
||||
@echo " make swagger - Generate swagger documentation"
|
||||
@echo " make help - Show this help message"
|
||||
@echo "" make generate-ts - Generate TypeScript types
|
||||
|
||||
# Start the database
|
||||
db-start:
|
||||
@@ -95,20 +96,9 @@ swagger:
|
||||
@swag init -g cmd/api/main.go
|
||||
@echo "Swagger documentation generated"
|
||||
|
||||
# Generate TypeScript types
|
||||
generate-ts:
|
||||
@echo "Generating TypeScript types..."
|
||||
@tygo generate
|
||||
@echo "TypeScript types generated"
|
||||
|
||||
help:
|
||||
@echo "Time Tracker Backend Makefile"
|
||||
@echo ""
|
||||
@echo "Usage:"
|
||||
@echo " make db-start - Start the PostgreSQL database container"
|
||||
@echo " make db-stop - Stop the PostgreSQL database container"
|
||||
@echo " make db-test - Test the database connection"
|
||||
@echo " make model-test - Test the database models"
|
||||
@echo " make run - Run the application"
|
||||
@echo " make build - Build the application"
|
||||
@echo " make clean - Remove build artifacts"
|
||||
@echo " make migrate - Run database migrations"
|
||||
@echo " make seed - Seed the database with initial data"
|
||||
@echo " make db-drop-users - Drop the users table"
|
||||
@echo " make db-reinit - Re-initialize the database"
|
||||
@echo " make help - Show this help message"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
packages:
|
||||
- path: github.com/timetracker/backend/dto
|
||||
- path: github.com/timetracker/backend/internal/dtos
|
||||
type_mappings:
|
||||
"time.Time": "string"
|
||||
"ulid.ULID": "string"
|
||||
Reference in New Issue
Block a user