Skip to content
New issue

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

БД #40

Closed
maxim1770 opened this issue Feb 7, 2023 · 0 comments
Closed

БД #40

maxim1770 opened this issue Feb 7, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@maxim1770
Copy link
Owner

maxim1770 commented Feb 7, 2023

  • Пример ForeignKey & primary_key docs

  • SQLAlchemy one-to-one relation, primary as foreign key

  • Подумать над тем чтобы в ForeignKey заменить строку на SomeModel.id

    • но так возможно будут ошибки импортов
    • можно писать как строку так же, я думаю
@maxim1770 maxim1770 added the documentation Improvements or additions to documentation label Feb 7, 2023
maxim1770 added a commit that referenced this issue Feb 7, 2023
…oreignKey(SomeModel.id)

- но так возможно будут ошибки импортов
Подробнее про БД тут:
#40
(issues)

Случайно увидел это тут:
https://stackoverflow.com/questions/24475645/sqlalchemy-one-to-one-relation-primary-as-foreign-key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant