0.64.0
Added initial support for ForeignKey columns referencing non-primary key columns. For example:
class Manager(Table):
name = Varchar()
email = Varchar(unique=True)
class Band(Table):
manager = ForeignKey(Manager, target_column=Manager.email)Thanks to @theelderbeever for suggesting this feature, and with help testing.