dbml icon indicating copy to clipboard operation
dbml copied to clipboard

Add schema name for the junction table of many-to-many relationship

Open baolequoc opened this issue 3 years ago • 0 comments

Summary

  • Add schema name for the junction table:
Ref schema.table1.column1 <> schema.table2.column2 → will create a junction table: "schema"."table1_table2"
Ref schema1.table1.column1 <> schema2.table2.column2 → will create a junction table "schema1"."table1_table2"

Issue

(issue link here)

Lasting Changes (Technical)

  • Add schema name for buildTableManyToMany
  • Add schema name for buildForeignKeyManyToMany
  • Add new test for many to many relationships

Checklist

Please check directly on the box once each of these are done

  • [ ] Documentation (if necessary)
  • [x] Tests (integration test/unit test)
  • [ ] Integration Tests Passed
  • [ ] Code Review

baolequoc avatar Aug 17 '22 05:08 baolequoc