Skip to content

Instantly share code, notes, and snippets.

@Joaopcamposs
Created May 10, 2022 15:49
Show Gist options
  • Save Joaopcamposs/2c000ed942404d9d6b2588c4acd2a594 to your computer and use it in GitHub Desktop.
Save Joaopcamposs/2c000ed942404d9d6b2588c4acd2a594 to your computer and use it in GitHub Desktop.
# 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