project_info.js 1.18 KB
/* indent size: 2 */

module.exports = app => {
  const DataTypes = app.Sequelize;

  const Model = app.model.define('project_info', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    project_title: {
      type: DataTypes.STRING(255),
      allowNull: false
    },
    project_description: {
      type: DataTypes.STRING(255),
      allowNull: false
    },
    config_name: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    test_url: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    product_url: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    developer_name: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    technology: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    create_at: {
      type: DataTypes.DATE,
      allowNull: true
    },
    update_at: {
      type: DataTypes.DATE,
      allowNull: true
    },
    del_flag:{
      type: DataTypes.STRING(255),
      allowNull: false,
      defaultValue: 'n'
    }
  }, {
    tableName: 'project_info'
  });

  Model.associate = function() {

  }

  return Model;
};