sqlmodel
sqlmodel copied to clipboard
SQL databases in Python, designed for simplicity, compatibility, and robustness.
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
`id: Optional[int] = Field(default=None, sa_column=mapped_column('id', Integer, primary_key=True))` #573
~~…to let the user define additional `sqlalchemy.orm.ForeignKey` attributes, such as `ondelete` and `onupdate`, for foreign keys defined in a base model.~~ **UPD YuriiMotov:** Currently we can specify `foreign_key` as an...
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start)...
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
### First Check - [X] I added a very descriptive title to this issue. - [X] I used the GitHub search to find a similar issue and didn't find it....
Currently, when `max_length` is specified in a `Field`, it has no real effect on the corresponding SQL schema (#126, #746). As pointed out by @chris-beedie, this is because the configured...
### Privileged issue - [X] I'm @tiangolo or he asked me directly to create an issue here. ### Issue Content In md file `\sqlmodel\docs\tutorial\create-db-and-table.md`, line 485, there is a internal...