14 lines
349 B
Python
14 lines
349 B
Python
from sqlalchemy import Column, Integer, String, Text
|
|
|
|
from app.models.base import Base
|
|
|
|
|
|
class Exercise(Base):
|
|
__tablename__ = "exercises"
|
|
|
|
id = Column(Integer, primary_key=True)
|
|
name = Column(String(100), unique=True, nullable=False)
|
|
body_part = Column(String(50))
|
|
equipment = Column(String(100))
|
|
description = Column(Text)
|