Closed leibowitz closed 2 years ago
I approved this PR but it seems to be failing on type checks:
Error: src/property.ts(77,54): error TS2339: Property 'tableName' does not exist on type 'TableNameWithSchema | ModelType<any, any>'.
Error: src/property.ts(77,54): error TS2339: Property 'tableName' does not exist on type 'TableNameWithSchema | ModelType<any, any>'.
Where is the type definition coming from? Looks like it's wrong somewhere
Update: I think it's due to the ModelType
, which doesn't seem to have tableName
attribute – not sure if that's actually to be supported (when is model referring to ModelType vs TableNameWithSchema?)
I'm a bit out of my depth on the type thing. And this PR is quite old. Feel free to fix or close if you don't want to invest more time into this change
:tada: This PR is included in version 2.1.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Solve issue when foreign key is not defined as a reference, but a relationship exists Fix #50