vapor-community / postgresql-provider

PostgreSQL Provider for the Vapor web framework.
MIT License
70 stars 19 forks source link

Support creating Foreign Key constraints on the Models #16

Closed diefer91 closed 7 years ago

diefer91 commented 7 years ago

When defining a model object that has a relation (.parent, .child...), this relation is created in the PostgreSQL database a a regular int, with no Foreign Key constraints. If the referential integrity is very important, the user should be able to define that this property must be a Foreign Key.

vzsg commented 7 years ago

Fluent 2 resolved this.