import DataTypes from 'sequelize';

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