The need to create dynamic fields that are flexible is essential for modern day applications as different needs and scenerios tend to arise which will make some operations i.e. changing database structure to accomodate new and existing structures; very expensive.
This application is an approach in providing a solution to the above mentioned problem.
There are 3 tables in the database used here
This stores the allowed datatypes for the fields being created
This stores the risk name and the fields/attributes for this type of risk
This stores all the risks and their their data as it matches the associated risk type
git clone https://github.com/solababs/risk_management_app.gitcd risk_management_app/virtualenv -p python3 envsource env/bin/activatepip3 install -r requirements.txt- Edit settings in
risk_management_app/config/settings.ini python manage.py migratepython manage.py runserver
To create Entity Relationship Diagram of models run the following command
python manage.py graph_models -a -I Risks,RiskTypes,FieldTypes -o Risks_ERD.png
- Run
pytest -v
- Django Rest Framework
- React JS
- Postgres
- Babatunde Olusola
