18 lines
498 B
Python
18 lines
498 B
Python
from sqlalchemy import Column, Integer, String, Float, Text
|
|
|
|
from app.models.base import Base
|
|
|
|
|
|
class User(Base):
|
|
__tablename__ = "users"
|
|
|
|
id = Column(Integer, primary_key=True)
|
|
username = Column(String(50), unique=True, nullable=False)
|
|
password_hash = Column(String(255), nullable=False)
|
|
display_name = Column(String(100))
|
|
medical_notes = Column(Text)
|
|
goals = Column(Text)
|
|
equipment = Column(Text)
|
|
vital_stats = Column(Text)
|
|
created_at = Column(String(20))
|