import DataTypes from 'sequelize';

export default (sequelize) => {
    sequelize.define(
        'bodyTypes',
        {
            id: {
                allowNull: false,
                autoIncrement: true,
                primaryKey: true,
                type: DataTypes.INTEGER,
            },
            name: {
                allowNull: false,
                type: DataTypes.STRING,
            }
        },
        {
            tableName: 'body_types',
            timestamps: true,
        }
    );
};