text: import Sequelize, { Model } from 'sequelize';
  
  class Deliveryman extends Model{
    static init(sequelize){
      super.init({
        name: Sequelize.STRING,
        email: Sequelize.STRING
      }, {
        sequelize
      });
      return this;
    }
  
    static associate(models){
      this.belongsTo(models.File, { foreignKey: 'avatar_id' })
    }
  }
  
  export default Deliveryman;
  