| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/*id(.:format) |
| route-controller | pull_requests |
| route-action | show |
| fetch-nonce | v2:9c2f8a4a-fe69-9e44-cf99-3284f92c9cd2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A8BA:222268:7808CD:A8A5D5:6AFE148A |
| html-safe-nonce | 6db6c38a412c8a4a21c2d4b741eea82fd58056a6c135b484495bd3f87e292460 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEJBOjIyMjI2ODo3ODA4Q0Q6QThBNUQ1OjZBRkUxNDhBIiwidmlzaXRvcl9pZCI6IjgxNjA0NzM4MDg3NzYzMzY1MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1da61270dcd81008a93b25b169698fa68c19e018496445e959bacc540c56e758 |
| hovercard-subject-tag | pull_request:2435822046 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/fastapi/sqlmodel/pull/1337 |
| twitter:image | https://opengraph.githubassets.com/b5c3bf9e6abb45f4fa82c435068a6846f4080f5451b9cfedc880ec63d91152c9/fastapi/sqlmodel/pull/1337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5c3bf9e6abb45f4fa82c435068a6846f4080f5451b9cfedc880ec63d91152c9/fastapi/sqlmodel/pull/1337 |
| og:image:alt | I add a IntEnum type decorator which I used in my private project.
I wish it helps!
import enum
class HeroStatus(enum.IntEnum):
ACTIVE = 1
DISABLE = 2
from sqlmodel import IntEnum
clas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sunkunxi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af |
| turbo-cache-control | no-cache |
| go-import | github.com/fastapi/sqlmodel git https://github.com/fastapi/sqlmodel.git |
| octolytics-dimension-user_id | 156354296 |
| octolytics-dimension-user_login | fastapi |
| octolytics-dimension-repository_id | 399495186 |
| octolytics-dimension-repository_nwo | fastapi/sqlmodel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 399495186 |
| octolytics-dimension-repository_network_root_nwo | fastapi/sqlmodel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 05539640a34afe6142a519483d78ddd766a1304a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/fastapi/sqlmodel/pull/1337#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow&source=header-repo&source_repo=fastapi%2Fsqlmodel |
| Reload | https://github.com/fastapi/sqlmodel/pull/1337 |
| Reload | https://github.com/fastapi/sqlmodel/pull/1337 |
| Reload | https://github.com/fastapi/sqlmodel/pull/1337 |
| fastapi | https://github.com/fastapi |
| sqlmodel | https://github.com/fastapi/sqlmodel |
| Code | https://github.com/fastapi/sqlmodel |
| Issues1 (1) | https://github.com/fastapi/sqlmodel/issues |
| Pull requests53 (53) | https://github.com/fastapi/sqlmodel/pulls |
| Discussions | https://github.com/fastapi/sqlmodel/discussions |
| Actions | https://github.com/fastapi/sqlmodel/actions |
| Projects | https://github.com/fastapi/sqlmodel/projects |
| Security and quality | https://github.com/fastapi/sqlmodel/security |
| Insights | https://github.com/fastapi/sqlmodel/insights |
| https://github.com/fastapi/sqlmodel |
| sunkunxi | https://github.com/sunkunxi |
| fastapi:main | https://github.com/fastapi/sqlmodel/tree/main |
| sunkunxi:feat/IntEnum | https://github.com/sunkunxi/sqlmodel/tree/feat/IntEnum |
| Conversation | https://github.com/fastapi/sqlmodel/pull/1337 |
| Commits13 (13) | https://github.com/fastapi/sqlmodel/pull/1337/commits |
| Checks | https://github.com/fastapi/sqlmodel/pull/1337/checks |
| Files changed | https://github.com/fastapi/sqlmodel/pull/1337/files |
| ✨ Add IntEnum type that allows storing values of enum as integers in database | https://github.com/fastapi/sqlmodel/pull/1337#top |
| sunkunxi | https://github.com/sunkunxi |
| fastapi:main | https://github.com/fastapi/sqlmodel/tree/main |
| sunkunxi:feat/IntEnum | https://github.com/sunkunxi/sqlmodel/tree/feat/IntEnum |
|
| https://github.com/sunkunxi |
| sunkunxi | https://github.com/sunkunxi |
| Apr 3, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#issue-2968199454 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/sunkunxi |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
| https://github.com/svlandeg |
| svlandeg | https://github.com/svlandeg |
| Apr 4, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#event-17125699167 |
| https://github.com/svlandeg |
| svlandeg | https://github.com/svlandeg |
|
feature
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Afeature |
| Apr 4, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#event-17125699712 |
| https://github.com/sunkunxi |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
| https://github.com/svlandeg |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
| https://github.com/sunkunxi |
| sunkunxi | https://github.com/sunkunxi |
| Apr 10, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-2791723307 |
| @KunxiSun | https://github.com/KunxiSun |
| here | https://github.com/fastapi/sqlmodel/pull/1340 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/YuriiMotov |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/YuriiMotov |
| YuriiMotov | https://github.com/YuriiMotov |
|
waiting
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Awaiting |
| Sep 9, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#event-19582939428 |
| https://github.com/sunkunxi |
| sunkunxi | https://github.com/sunkunxi |
| Sep 22, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-3317670992 |
| @KunxiSun | https://github.com/KunxiSun |
| these tests | https://github.com/fastapi/sqlmodel/blob/c5085b6349889f4d7fabedc2d5fc02224045cad5/tests/test_enums.py#L38-L55 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
waiting
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Awaiting |
| Sep 22, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#event-19832140013 |
| https://github.com/YuriiMotov |
| YuriiMotov | https://github.com/YuriiMotov |
|
Oct 8, 2025
| https://github.com/fastapi/sqlmodel/pull/1337#pullrequestreview-3315842198 |
|
View reviewed changes
| https://github.com/fastapi/sqlmodel/pull/1337/files |
| YuriiMotov | https://github.com/YuriiMotov |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/fastapi/sqlmodel/pull/1337#pullrequestreview-3315842198 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/YuriiMotov |
| YuriiMotov | https://github.com/YuriiMotov |
| Oct 8, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#event-20169359851 |
| https://github.com/AlanBogarin |
| AlanBogarin | https://github.com/AlanBogarin |
| Dec 6, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-3619366882 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
conflicts
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts |
| Dec 28, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#event-21769720115 |
| https://github.com/apps/github-actions |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
| https://github.com/AlanBogarin |
| AlanBogarin | https://github.com/AlanBogarin |
| Dec 29, 2025 | https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-3696614860 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
conflicts
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts |
| Jan 8, 2026 | https://github.com/fastapi/sqlmodel/pull/1337#event-21926391045 |
| https://github.com/sunkunxi |
| sunkunxi | https://github.com/sunkunxi |
|
Jan 31, 2026
| https://github.com/fastapi/sqlmodel/pull/1337#ref-issue-995776922 |
|
How to make enum column to work with SQLModel?
#96
| https://github.com/fastapi/sqlmodel/issues/96 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Sep 21, 2026 | https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-5767955661 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
conflicts
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts |
| Sep 21, 2026 | https://github.com/fastapi/sqlmodel/pull/1337#event-31561200916 |
| September 23, 2026 18:05 | https://github.com/fastapi/sqlmodel/pull/1337#commits-pushed-a7ad22e |
| feat: add IntEnum for sqltypes | https://github.com/fastapi/sqlmodel/pull/1337/commits/a7ad22e7ace1e97ec260c8c24a6d6e14aa137395 |
| a7ad22e | https://github.com/fastapi/sqlmodel/pull/1337/commits/a7ad22e7ace1e97ec260c8c24a6d6e14aa137395 |
| fix: type lint check | https://github.com/fastapi/sqlmodel/pull/1337/commits/fa3d5853e747564a59be286e695472891edc8d81 |
| fa3d585 | https://github.com/fastapi/sqlmodel/pull/1337/commits/fa3d5853e747564a59be286e695472891edc8d81 |
|
| https://github.com/marketplace/pre-commit-ci |
| 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks | https://github.com/fastapi/sqlmodel/pull/1337/commits/b2a2ec448544a4f4da88ba5e7af8989b56838419 |
| b2a2ec4 | https://github.com/fastapi/sqlmodel/pull/1337/commits/b2a2ec448544a4f4da88ba5e7af8989b56838419 |
| fix: sqltypes lint check | https://github.com/fastapi/sqlmodel/pull/1337/commits/fcf2614e9d876c4560899b161152b5e824bf0e91 |
| fcf2614 | https://github.com/fastapi/sqlmodel/pull/1337/commits/fcf2614e9d876c4560899b161152b5e824bf0e91 |
|
| https://github.com/marketplace/pre-commit-ci |
| 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks | https://github.com/fastapi/sqlmodel/pull/1337/commits/9775560852c153a1794590f4aab12e7ffe47de6a |
| 9775560 | https://github.com/fastapi/sqlmodel/pull/1337/commits/9775560852c153a1794590f4aab12e7ffe47de6a |
| doc: no class docstring like other s | https://github.com/fastapi/sqlmodel/pull/1337/commits/0a4dd7dc549b32459ba326d401d5bac7345cf6f7 |
| 0a4dd7d | https://github.com/fastapi/sqlmodel/pull/1337/commits/0a4dd7dc549b32459ba326d401d5bac7345cf6f7 |
| perfomance: add cache and remove warning | https://github.com/fastapi/sqlmodel/pull/1337/commits/d0cd18eacc950fd7c050768a0ca61b5a9a28ef56 |
| d0cd18e | https://github.com/fastapi/sqlmodel/pull/1337/commits/d0cd18eacc950fd7c050768a0ca61b5a9a28ef56 |
|
| https://github.com/sunkunxi |
|
| https://github.com/YuriiMotov |
| Apply suggestions from code review | https://github.com/fastapi/sqlmodel/pull/1337/commits/18b8bac190256b22db85ef00549704aeb77c4088 |
| 18b8bac | https://github.com/fastapi/sqlmodel/pull/1337/commits/18b8bac190256b22db85ef00549704aeb77c4088 |
|
| https://github.com/sunkunxi |
| test: add sa_type to BaseModel.int_enum_field | https://github.com/fastapi/sqlmodel/pull/1337/commits/ea4083d788a02a24e6c7dd03d6fb1ae58fdb4817 |
| ea4083d | https://github.com/fastapi/sqlmodel/pull/1337/commits/ea4083d788a02a24e6c7dd03d6fb1ae58fdb4817 |
|
| https://github.com/sunkunxi |
| update: Uses SmallInteger type for IntEnum | https://github.com/fastapi/sqlmodel/pull/1337/commits/a9a45fa62bc2534107f2a94924be3182e9e8a01c |
| a9a45fa | https://github.com/fastapi/sqlmodel/pull/1337/commits/a9a45fa62bc2534107f2a94924be3182e9e8a01c |
|
| https://github.com/sunkunxi |
| test: Adds tests for integer enum fields | https://github.com/fastapi/sqlmodel/pull/1337/commits/0b86f1801628f16d534eeb4171b99fce0008e490 |
| 0b86f18 | https://github.com/fastapi/sqlmodel/pull/1337/commits/0b86f1801628f16d534eeb4171b99fce0008e490 |
| https://github.com/sunkunxi |
| sunkunxi | https://github.com/sunkunxi |
| force-pushed | https://github.com/fastapi/sqlmodel/compare/a5f40060aef26ee75f74b7bf3d52cf4826a93844..0b86f1801628f16d534eeb4171b99fce0008e490 |
| a5f4006 | https://github.com/fastapi/sqlmodel/commit/a5f40060aef26ee75f74b7bf3d52cf4826a93844 |
| 0b86f18 | https://github.com/fastapi/sqlmodel/commit/0b86f1801628f16d534eeb4171b99fce0008e490 |
|
Compare
| https://github.com/fastapi/sqlmodel/compare/a5f40060aef26ee75f74b7bf3d52cf4826a93844..0b86f1801628f16d534eeb4171b99fce0008e490 |
| September 23, 2026 10:14 | https://github.com/fastapi/sqlmodel/pull/1337#event-31667330689 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
conflicts
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts |
| Sep 23, 2026 | https://github.com/fastapi/sqlmodel/pull/1337#event-31667339905 |
| pre-commit-ci-lite | https://github.com/apps/pre-commit-ci-lite |
| September 23, 2026 10:14 | https://github.com/fastapi/sqlmodel/pull/1337#commits-pushed-3d8db41 |
|
| https://github.com/marketplace/pre-commit-ci-lite |
| 🎨 Auto format | https://github.com/fastapi/sqlmodel/pull/1337/commits/3d8db41339d34ca24d57e346c7322e50e88af00f |
| 3d8db41 | https://github.com/fastapi/sqlmodel/pull/1337/commits/3d8db41339d34ca24d57e346c7322e50e88af00f |
| style: remove Optional and type ignore | https://github.com/fastapi/sqlmodel/pull/1337/commits/a69a29ba68772a783181f04d4e94ee0b1817a96e |
| a69a29b | https://github.com/fastapi/sqlmodel/pull/1337/commits/a69a29ba68772a783181f04d4e94ee0b1817a96e |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
|
conflicts
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts |
| Nov 13, 2026 | https://github.com/fastapi/sqlmodel/pull/1337#event-36051418179 |
| https://github.com/apps/github-actions |
| github-actions | https://github.com/apps/github-actions |
| Nov 13, 2026 | https://github.com/fastapi/sqlmodel/pull/1337#issuecomment-6859098338 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
| https://github.co/hiddenchars |
| https://github.com/fastapi/sqlmodel/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffastapi%2Fsqlmodel%2Fpull%2F1337 |
|
| https://github.com/YuriiMotov |
|
YuriiMotov
| https://github.com/YuriiMotov |
|
| https://github.com/fastapi/sqlmodel/pull/1337/files/64309f167953c0aa28450ced71de8c05fb1aeda4 |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
|
conflicts
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Aconflicts |
|
feature
| https://github.com/fastapi/sqlmodel/issues?q=state%3Aopen%20label%3Afeature |
| Please reload this page | https://github.com/fastapi/sqlmodel/pull/1337 |
|
| https://github.com/sunkunxi |
|
| https://github.com/svlandeg |
|
| https://github.com/AlanBogarin |
|
| https://github.com/YuriiMotov |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |