fa1eaf64e0
- Maven multi-module project (parent + domain + service + api) - AbstractTenantEntity with Hibernate @Filter for multi-tenancy (explicit getters/setters, Java 25 compatible) - TenantContext ThreadLocal for request-scoped tenant isolation - 8 JPA entities: Club, Member, Strain, Batch, Distribution, MonthlyQuota, StockMovement, User - ComplianceConstants with CanG §19 limits (25g/day adult, 50g/month adult, 30g/month under-21, 10% THC cap) - ComplianceService: checkDistributionAllowed() with fail-fast sequential CanG checks - Unit tests TC-001→TC-025: 25/25 passing, 100% line+branch coverage on ComplianceService (JaCoCo 0.8.13) - Flyway V1__initial_schema.sql: all 8 tables + indexes - docker-compose.yml: PostgreSQL 16 local dev - application-local.properties: local profile configuration Closes #1 #2 #3 #4 #5 #6 #7 #8 #9 #10
23 lines
479 B
YAML
23 lines
479 B
YAML
version: '3.9'
|
|
|
|
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
container_name: cannamanage-db-local
|
|
environment:
|
|
POSTGRES_DB: cannamanage
|
|
POSTGRES_USER: cannamanage
|
|
POSTGRES_PASSWORD: dev_password_change_in_prod
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata_local:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U cannamanage"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 5
|
|
|
|
volumes:
|
|
pgdata_local:
|