You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request adding support for nullable FKs. At least in Postgres, a FK that's nullable doesn't reference any PK and is therefore valid. This would allow mapping optional relations to the entities, as sometimes it's required.
protectedfun <U:AbstractDbColumn<T, *>, V : Any?> U.nullableForeignKey(
references:AbstractDbColumn<V, *>,
fkName:String? = null,
): U=this.also {
kotysaForeignKeys.add(ForeignKey(mapOf(this to references), fkName))
}
maybe something like this?
If the feature is already possible to implement, please tell, because I couldn't find it in the documentation
The text was updated successfully, but these errors were encountered:
I would like to request adding support for nullable FKs. At least in Postgres, a FK that's nullable doesn't reference any PK and is therefore valid. This would allow mapping optional relations to the entities, as sometimes it's required.
maybe something like this?
If the feature is already possible to implement, please tell, because I couldn't find it in the documentation
The text was updated successfully, but these errors were encountered: