Summary
TimeEntry.teCompId is NOT NULL but has no FK to Company, and no check that it matches the customer's company. Denormalization is fine for query performance, but without validation inconsistent rows can be stored.
Related
See also: issue for teCustId/company validation on create.
Acceptance criteria
Source
Code review backlog (2026-06-23)
Summary
TimeEntry.teCompIdis NOT NULL but has no FK toCompany, and no check that it matches the customer's company. Denormalization is fine for query performance, but without validation inconsistent rows can be stored.Related
See also: issue for teCustId/company validation on create.
Acceptance criteria
Source
Code review backlog (2026-06-23)