python - How to add countless identical fields to a model?
大家讲道理
大家讲道理 2017-05-18 10:58:46
0
2
540

I have a model and want to add pictures describing it. The number of pictures is not fixed. Is there any way other than association?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
巴扎黑

Stored using mongodb, the attribute fields of each record are dynamic and can be added or deleted as you like. For specific examples, please refer to the dynamic attributes of e-commerce products, different sizes, colors, etc.

伊谢尔伦

If you don’t want to be related, you must have redundant fields
Weigh the pros and cons of each based on your actual business

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!