text: 'use strict';
  
  module.exports = function consent(sequelize, Sequelize, schema) {
      const tableName = 'consent';
      const modelName = `${schema}_${tableName}`;
      return sequelize.define(modelName, {
          name: {
              type: Sequelize.TEXT,
              allowNull: false,
          },
          createdAt: {
              type: Sequelize.DATE,
              field: 'created_at',
          },
          deletedAt: {
              type: Sequelize.DATE,
              field: 'deleted_at',
          },
      }, {
          freezeTableName: true,
          tableName,
          schema,
          createdAt: 'createdAt',
          updatedAt: false,
          deletedAt: 'deletedAt',
          paranoid: true,
      });
  };
  