mirror of
https://github.com/sstent/AICyclingCoach.git
synced 2026-01-25 16:41:58 +00:00
12 lines
410 B
Python
12 lines
410 B
Python
from sqlalchemy import Column, String
|
|
from sqlalchemy.orm import relationship
|
|
from .base import BaseModel
|
|
|
|
class User(BaseModel):
|
|
__tablename__ = "users"
|
|
|
|
username = Column(String(100), nullable=False, unique=True)
|
|
email = Column(String(255), nullable=True)
|
|
|
|
# Note: Relationship removed as Plan model doesn't have user_id field
|
|
# plans = relationship("Plan", back_populates="user") |