fix: foreign key + tests: TrackedField