const mongoose = require('mongoose');

const departmentSchema = new mongoose.Schema(
  {
    departmentCode: {
      type: String,
      required: true,
      unique: true,
      trim: true
    },
    departmentName: {
      type: String,
      required: true,
      trim: true
    }
  },
  { timestamps: true }
);

module.exports = mongoose.model('Department', departmentSchema);

