vanilophp / product

Product Module for Vanilo (or any Laravel app)
https://vanilo.io
MIT License
18 stars 8 forks source link

Column type for 'stock' should be integer #9

Closed yoeriboven closed 4 years ago

yoeriboven commented 4 years ago

The current column type for stock is decimal. Any specific reason for this?

The admin panel already prevents using decimals through browser validation.

The reason I'd change this is because when you edit a product it will say: stock: 13.0000 which looks messy.

Why not use an unsignedMediumInteger instead?