4 ms·
They already have a quantity domain... it's called "integer". While I agree that domains are important and should be utilized, I hope your examples are exaggera
by NoMoreNicksLeft 13y ago
They already have a quantity domain... it's called "integer". While I agree that domains are important and should be utilized, I hope your examples are exaggerations.
- ericcholis 13y agoI love the idea of domains, but quantity does seem to be a poor use case.
- joevandyk 13y agoYou could use use a domain to ensure a quantity can't be less than zero.
- NoMoreNicksLeft 13y agoThis is also called "unsigned int". Postgres has those.
- callesgg 13y agoI guess quantity was a poor example but I would disagree about it being the same as integer. And integer is a hole number. Nothing else can be inferred from knowing that something is a integer.