import DataTypes from 'sequelize';

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