team_rank_club.ts 930 字节
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  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'
  });
};