spinlud / sequelize-typescript-generator

71 stars 27 forks source link

Set the schema automatically from the generated #37

Open gagantous opened 2 years ago

gagantous commented 2 years ago

Hi guys!

I have problem with the generated entity file which not included the schema name. My corp. used postgresql database and when we generated the file, and tried to use the entity, we had the problem because the DBA didnt set the default schema in postgresql which resulted and error because the table could not be find table.

Is there a reason why the generated file for postgresql database didnt include the schema name like below image ?

Regards.

Gagantous

image

mplawless commented 1 year ago

I think I have a PR that will set this. The purpose of it was to allow [schema].[tableName] format in MSSQL, but I think it will output the schema for Postgres too.

42