Spaces:
Running
on
Zero
Running
on
Zero
File size: 324 Bytes
ee3a6ac a746d34 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class Team(Base):
__tablename__ = "teams"
id = Column(Integer, primary_key=True)
name = Column(String, unique=True)
def __repr__(self):
return f"Team(name={self.name})" |