import { DataTypes } from 'sequelize';
export default (sequelize) => sequelize.define('vw_correspondence_summary', {
  correspondence_id: { type: DataTypes.INTEGER, primaryKey: true },
  project_id:        { type: DataTypes.INTEGER },
  corr_no:           { type: DataTypes.STRING(100) },
  subject:           { type: DataTypes.STRING(255) },
  status:            { type: DataTypes.STRING(50) },
  latest_version_no: { type: DataTypes.INTEGER },
  created_at:        { type: DataTypes.DATE },
  updated_at:        { type: DataTypes.DATE },
}, { timestamps: false, freezeTableName: true });
