text: /* jshint indent: 2 */
  
  module.exports = function(sequelize, DataTypes) {
    return sequelize.define('Article', {
      ArticleID: {
        type: DataTypes.INTEGER,
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
      },
      UserID: {
        type: DataTypes.INTEGER,
        allowNull: false,
        references: {
          model: 'UserInfo',
          key: 'UserID'
        }
      },
      Title: {
        type: DataTypes.STRING,
        allowNull: false
      },
      Content: {
        type: DataTypes.TEXT,
        allowNull: false
      },
      PostDate: {
        type: DataTypes.DATE,
        allowNull: false
      }
    }, {
      tableName: 'Article'
    });
  };
  