skill-forge/API/app/domain/models/appeals_topics.py

14 lines
364 B
Python

from sqlalchemy import Column, Integer, VARCHAR
from sqlalchemy.orm import relationship
from app.domain.models import Base
class AppealsTopic(Base):
__tablename__ = 'appeals_topics'
id = Column(Integer, primary_key=True, autoincrement=True)
title = Column(VARCHAR(500), nullable=False)
appeals = relationship('Appeal', back_populates='topic')