I have a table with "types"
that looks like this :
Common, Rare, Mythic, New
and an "item"
table that has a type as a foreign key. In fact Common are common to all of types except New. Instead of doing a 0..n relation I wanted to put what's common on all columns except "New"
Is it possible through Laravel Eloquent or is it just a bad practice to try like this?
Thanks you!
答案 0 :(得分:0)
Following points should be considered about ENUM usage:
ENUMs work best when
When not to use ENUM
I hope these points will help you.