Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database model #7

Open
michalhosna opened this issue Jan 12, 2018 · 3 comments
Open

Database model #7

michalhosna opened this issue Jan 12, 2018 · 3 comments
Assignees
Labels
backend You know, PHP, that stuff
Milestone

Comments

@michalhosna
Copy link
Contributor

michalhosna commented Jan 12, 2018

Create database model based upon our discussion.

@michalhosna michalhosna added the backend You know, PHP, that stuff label Jan 12, 2018
@michalhosna michalhosna added this to the 1. Meetup milestone Jan 12, 2018
@michalhosna
Copy link
Contributor Author

michalhosna commented Feb 9, 2018

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:

PHPstorm

In phpstorm there are getter/setter generator and doctrine annotation generator wich can really ease up this work.

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
Copy link
Contributor Author

michalhosna commented Feb 9, 2018

Example entity:
20ea89e

Notes:

  • ItemType, Type is not a keyword, this entity is for "Type of item" so ItemType is full name.

  • Before submiting entity try to run

bin/console doctrine:mapping:info

@michalhosna
Copy link
Contributor Author

Also see:

This was referenced Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend You know, PHP, that stuff
Projects
None yet
Development

No branches or pull requests

3 participants