season_rank.js 886 字节
module.exports = function (sequelize, DataTypes) {
    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
        }
    });
};
//# sourceMappingURL=season_rank.js.map