Spaces:
Running
on
Zero
Running
on
Zero
from sqlalchemy import Column, Integer, String | |
from sqlalchemy.ext.declarative import declarative_base | |
from sqlalchemy import create_engine | |
Base = declarative_base() | |
class User(Base): | |
__tablename__ = 'users' | |
id = Column(Integer, primary_key=True) | |
name = Column(String) | |
email = Column(String) | |
def __repr__(self): | |
return f"User(id={self.id}, name='{self.name}', email='{self.email}')" |