Skip to content

Use SQLAlchemy Declarative API for ORM Models

Kevin Morris requested to merge kevr/aurweb:pu_declarative into pu

The Declarative API is more modern and common than the classical mapping API which is currently used. The declarative API allows us to more easily customize ORM model attributes, like constraints and table arguments.

Now, aurweb.models.declarative.Base should be the base class of all aurweb ORM models.

In addition, this MR adds the PackageVote model.

Edited by Kevin Morris

Merge request reports