import { DataTypes } from 'sequelize';
export default (sequelize) => sequelize.define('correspondence_documents', {
  correspondence_id: { type: DataTypes.INTEGER, allowNull: false },
  document_id:       { type: DataTypes.INTEGER, allowNull: false },
}, { indexes: [{ unique:true, fields:['correspondence_id','document_id'] }] });
