general: SQLAlchemy models addition

Following issue #1790 I introduce new models.
You can keep it on single line.