We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With a table defined in the schema as so:
export const warehouseOffices = pgTable( 'warehouse_offices', { officeId: integer('office_id') .notNull() .references(() => offices.id), warehouseId: integer('warehouse_id') .notNull() .references(() => warehouses.id), }, (table) => { return { pk: primaryKey({ columns: [table.officeId, table.warehouseId] }), }; } );
The generated .dbml doesn't include any refs for this table:
.dbml
refs
table warehouse_offices { office_id integer [not null] warehouse_id integer [not null] indexes { (office_id, warehouse_id) [pk] } }
I need to add these lines to the resulting .dbml:
ref: warehouse_offices.warehouse_id - warehouses.id ref: warehouse_offices.office_id - offices.id
The text was updated successfully, but these errors were encountered:
What version of the ORM are you using? Do you know if this worked in a previous version?
Sorry, something went wrong.
No branches or pull requests
With a table defined in the schema as so:
The generated
.dbml
doesn't include anyrefs
for this table:I need to add these lines to the resulting
.dbml
:The text was updated successfully, but these errors were encountered: