PostgreSQL Schema
The Insight Service reads and writes one table in the shared FloatMe RDS PostgreSQL cluster (ebdb), through a main pool for writes and a replica pool for reads. Connection, secret, and VPC details are in Infrastructure.
FloatMeAPI_employmentinfomodel
Django-managed table owned by the FloatMe monolith. A user may have several rows; the service treats the highest id as the current record.
| Column | Go field | Description |
|---|---|---|
|
|
Auto-increment primary key; |
|
|
FloatMe user ID (Django foreign-key column) |
|
|
Employer name; matched against Pave income descriptions in Pave V1 selection |
|
|
Free-text pay type (hourly, salary); stored and returned, not used in prediction |
|
|
|
|
|
Anchor payday date for the FloatMe V1 cadence calculation |
Source: pkg/employment/repository.go, pkg/employment/employment.go
Access Patterns
| Operation | Pool | Callers |
|---|---|---|
|
Replica |
Payday prediction; feeder and replay feeder (pay-frequency gate); employment create and update (previous pay frequency); |
|
Replica |
None |
|
Main |
|
|
Main |
|
Source: pkg/employment/repository.go
Delete is idempotent: deleting a user with no rows succeeds.