feat: add PostgreSQL database integration for projects

- Add SQLx with Postgres support and migration system
- Create projects table with status enum and auto-updated timestamps
- Implement database queries and API response conversion layer
- Add Justfile commands for database management and seeding
- Integrate health checks for both Bun and database connectivity
This commit is contained in:
2026-01-06 01:53:49 -06:00
parent 5fc7277cd7
commit b4c708335b
11 changed files with 1235 additions and 90 deletions
+6 -1
View File
@@ -55,8 +55,13 @@ RUN cargo chef cook --release --recipe-path recipe.json
COPY Cargo.toml Cargo.lock ./
COPY src/ ./src/
# Copy frontend client assets for embedding
# Copy SQLx offline cache and migrations for compile-time macros
COPY .sqlx/ ./.sqlx/
COPY migrations/ ./migrations/
# Copy frontend assets for embedding
COPY --from=frontend /build/build/client ./web/build/client
COPY --from=frontend /build/build/prerendered ./web/build/prerendered
# Build with real assets
RUN cargo build --release && \