Since in project we have this library to interact with database, we need to recreate all tables as objects in JavaScript to interact with database, please read about this and see how you can manage database structure from java script class models.
[ ] how to create tables in database based on model
[ ] see how to create relations
[x] see how to have auto numbering for id's of tables
[ ] see advanced queries example to get objects that contain other objects (ex. User is containing Role get User with Role in it etc.)
[ ] see if there's any mechanism to create constraints (allowed value lists for size [xs, m, l, xl, xll] etc.)
[x] see how it saves simple objects (role) and complex objects (for ex user he is complex because it contains role)
Since in project we have this library to interact with database, we need to recreate all tables as objects in JavaScript to interact with database, please read about this and see how you can manage database structure from java script class models.