openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
20 stars 2 forks source link

🗃️(backend) store Order images through DocumentImage model #871

Closed kernicPanel closed 2 days ago

kernicPanel commented 3 days ago

Purpose

Currently, we are storing order images (organization logo) into json field as base64 encoded string. This is weird as it takes a lot of space in database then we duplicate images in each certificate where they are used.

That's why, we decide to stop that and store Order images in a DocumentImage.