How can I design a Django Model with existing rows in one of the column?
I have a challenge with designing Django model that has existing rows in one of the column as shown below:-
Gaming device in use | Gaming Tax on GGR | Tax Rate |
---|---|---|
No of shop/places | ||
No of slot machines | ||
Total Value |
I have tried to create one Model with column attributes as fields but I don't figure out how to put number of shops/places and number of slot machines in my Model.
- Look at the column types and create a model class with the same column name and types.
- Run the python manage.py makemigrations
- Run the python manage.py migrate
- Add new columns (number_of_shops and number_of_slot_machines)
- Run the python manage.py makemigrations
- Run the python manage.py migrate