""" Dimension Models
"""

from sqlalchemy import Column, Integer, String, Boolean, DateTime
from sqlalchemy.orm import relationship
from db.database import Base


class DimensionModel(Base):
    __tablename__ = "dimensions"

    _id = Column(Integer, primary_key=True, autoincrement=True)
    name = Column(String(25), unique=True)
    created_at = Column(DateTime)
    is_active = Column(Boolean)
    questions = relationship('QuestionModel', back_populates="dimension")
