ms_appversion.ts 1.9 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
    return sequelize.define('ms_appversion', {
      Id: {
        type: DataTypes.INTEGER(11),
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
      },
      App_Code: {
        type: DataTypes.STRING(20),
        allowNull: false
      },
      App_Name: {
        type: DataTypes.STRING(20),
        allowNull: false
      },
      Sys_Code: {
        type: DataTypes.STRING(10),
        allowNull: false
      },
      Sys_Name: {
        type: DataTypes.STRING(20),
        allowNull: false
      },
      Version_Code: {
        type: DataTypes.STRING(40),
        allowNull: false
      },
      Version_Type: {
        type: DataTypes.STRING(30),
        allowNull: false
      },
      Version_Content: {
        type: DataTypes.STRING(5000),
        allowNull: true
      },
      Package_Url: {
        type: DataTypes.STRING(500),
        allowNull: true
      },
      Package_Weight: {
        type: DataTypes.STRING(100),
        allowNull: true
      },
      Publish_Time: {
        type: DataTypes.DATE,
        allowNull: true
      },
      Update_Time:{
        type: DataTypes.DATE,
        allowNull: true
      },
      Version_Num:{
        type: DataTypes.STRING(50),
        allowNull: true
      },
      IsActive:{
        type: DataTypes.BOOLEAN,
        allowNull: true
      },
      Update_Way:
      {
        type: DataTypes.STRING(4),
        allowNull: true
      },
      Download_Way:{
        type: DataTypes.STRING(4),
        allowNull: true
      },
      IsShow:{
        type: DataTypes.BOOLEAN,
        allowNull: true
      },
      Sys_Version:{
        type: DataTypes.INTEGER(8),
        allowNull: true
      },
      Promoter_Id:{
        type: DataTypes.INTEGER(8),
        allowNull: true
      }
    },
    {
      tableName: 'ms_appversion'
    });
  };