"""module of Department model class"""
from .base_model import BaseModel, db


class Department(BaseModel):
    """Department Model class"""
    __tablename__ = 'department'

    department_id = db.Column(db.Integer(), primary_key=True)
    name = db.Column(db.String(100), nullable=False, unique=True)
    description = db.Column(db.String(1000))

    def __str__(self):
        return '<Department: {}>'.format(self.name)

"""module of Department model class"""
from .base_model import BaseModel, db


class Department(BaseModel):
    """Department Model class"""
    __tablename__ = 'department'

    department_id = db.Column(db.Integer(), primary_key=True)
    name = db.Column(db.String(100), nullable=False, unique=True)
    description = db.Column(db.String(1000))

    def __str__(self):
        return '<Department: {}>'.format(self.name)

module of Department model class Department Model class