team_rank_club.js 1.1 KB
/* jshint indent: 2 */
module.exports = function (sequelize, DataTypes) {
    return sequelize.define('team_rank_club', {
        id: {
            type: DataTypes.INTEGER(11),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        team_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        points: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        ranking: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        previous_points: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        position_changed: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        updated_at: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        created_at: {
            type: DataTypes.DATE,
            allowNull: false,
            defaultValue: sequelize.literal('CURRENT_TIMESTAMP')
        }
    }, {
        tableName: 'team_rank_club'
    });
};
//# sourceMappingURL=team_rank_club.js.map