'Django get new table entry and create new table if the column value is unique

I am currently studying django and trying to create a backend to manage IOT devices and show their status on a webpage and looking for some guidance / best practice methods.

I have a table called iot_devices with first column sensor_id and second column sensor_type and some other data columns. Is it possible in django to create a new table dynamically whenever new and unique value sensor_id arrives with the value as the table name?

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source