import { DataTypes } from 'sequelize';
export default (sequelize) => sequelize.define('vw_drawing_latest_revision', {
  drawing_id:     { type: DataTypes.INTEGER, primaryKey: true },
  project_id:     { type: DataTypes.INTEGER },
  drawing_no:     { type: DataTypes.STRING(100) },
  title:          { type: DataTypes.STRING(255) },
  discipline:     { type: DataTypes.STRING(50) },
  status:         { type: DataTypes.STRING(50) },
  latest_rev_no:  { type: DataTypes.STRING(50) },
  latest_file:    { type: DataTypes.STRING(500) },
  updated_at:     { type: DataTypes.DATE },
}, { timestamps: false, freezeTableName: true });
