Skip to content

Conversation

@wd-alejandroescobedogarcia
Copy link
Collaborator

tbd

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description Of Change

Todos

@papandreou papandreou changed the base branch from sequelize-core-papandreou4 to main August 7, 2024 06:21
@papandreou papandreou changed the base branch from main to sequelize-core-papandreou4 August 7, 2024 06:31
progress with target

progress with add fk's

normalization logic for 1-1 relationships

progress

make sure both foreignkey and foreignkeys are not used at the same time

add foreignkey to omit

add tests for composite foreign keys in belongs to

kinda works?

belongsTo with tests

add sourcekey to helper

add and comment tests to has one

support for composite get¨

create indexes properly without reference

change test names

create composite key constraint

rename to foreignKeyConstraints

chore: add more tests and cleanup to branch (#5)

* add composite foreign key constraints with sync

* change composite fkey constraint name generation logic to be similar to other sequelize keys

* change composite fkey constraint name generation logic to be similar to other sequelize keys

* add more test cases

* add more tests for composite key constraints creation

* clean up a bit

* change variable name to avoid collision in options that doesnt appear in model definition .-.

* add extra teest for custom fk name

* more tests and cleanup

* more cleanup

remove commented tests
first test with hasOne fixed*

cleanup

remove one more = null definition

use targetKeyField as getter
@wd-alejandroescobedogarcia wd-alejandroescobedogarcia force-pushed the alex/latest-sequelize-core-composite-key-support branch from e5b20b7 to 13b751a Compare August 8, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants