text: const { Sequelize, Model, DataTypes } = require('sequelize');
  
  class Category extends Model {}
  
  Category.init({
    id: {
      type: DataTypes.INTEGER,
      autoIncrement: true,
      primaryKey: true,
    },
    name: {
      type: DataTypes.STRING,
      allowNull: false
    },
    createdAt: {
      type: DataTypes.DATE,
      field: 'created_at'
    },
    updatedAt: {
      type: DataTypes.DATE,
      field: 'updated_at'
    },
    deletedAt: {
      type: DataTypes.DATE,
      field: 'deleted_at'
    }
  }, {
    modelName: 'category',
    paranoid: true,
    underscored: true,
    freezeTableName: true,
    sequelize: global.sequelize
  });
  
  module.exports = Category;
  