VForWaTer / metacatalog

Modular metadata management platform for environmental data.
https://vforwater.github.io/metacatalog
GNU General Public License v3.0
3 stars 1 forks source link

Create BaseClass for all metacatalog models #276

Open mmaelicke opened 1 year ago

mmaelicke commented 1 year ago

We should create a Base class for all metacatalog models (inheriting from sqlalchemy.DeclarativeBase). All models share the same declarative base anyway, so implementation should be straightforward. The idea is, that all models have a UUID, a to_dict method and a from_dict method. @AlexDo1 any thoughts on this?

AlexDo1 commented 1 year ago

I think that is a good idea as this would remove a lot of redundancy and would make the (basic) functionalities of metacatalog models more clear (especially the to_dict and from_dict methods).