season_rank.ts 767 字节
module.exports = function(sequelize:any, DataTypes:any) {
    return sequelize.define('season_rank', {
      season_id: {
        type: DataTypes.INTEGER,
        allowNull: false,
        primaryKey: true,
        comment: "integer"
      },
      promotions:  {
        type: DataTypes.JSON,
        allowNull: true,
        comment: "升降级列表"
      },
      tables:{
        type: DataTypes.JSON,
        allowNull: true,
        comment: "积分项"
      },
      updated_at: {
        type: DataTypes.BIGINT,
        allowNull: true,
        get(){
          return moment(this.getDataValue('updated_at')).format('YYYY-MM-DD HH:mm:ss');
        }
      },
      created_at: {
        type: DataTypes.DATE,
        allowNull: true
      }
    });
  };