Created
May 10, 2022 15:49
-
-
Save Joaopcamposs/2c000ed942404d9d6b2588c4acd2a594 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# models.py | |
from sqlalchemy.schema import Column | |
from sqlalchemy.types import String, Integer | |
from database import Base | |
class User(Base): | |
__tablename__ = "users" | |
id = Column(Integer, primary_key=True, index=True, autoincrement=True) | |
name = Column(String) | |
email = Column(String) | |
password = Column(String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment