AVCSH / savec

System of AVC
MIT License
2 stars 0 forks source link

Database model #7

Open michalhosna opened 6 years ago

michalhosna commented 6 years ago

Create database model based upon our discussion.

michalhosna commented 6 years ago

Probably good next steps would be to write doctrine entities.

I will provide sample soon.

For ID i would use UUID. For Doctrine mapping anotations.

Doctrine docs:

Money.

We have to resolve how to store prices.

One approch is to have global "basic currency", and in DB prices are stored as price*100 in basic currency (int)

Files

We have to resolve how to store files.

Probably some filesystem abstraction would be ideal. (So we could also use Object storage)

michalhosna commented 6 years ago

Example entity: https://github.com/AVCSH/savec/pull/10/commits/20ea89e07c6460bda99639f16865d21e1633e887

Notes:

michalhosna commented 6 years ago

Also see: