add Term SQLAlchemy ORM model

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-05-30 22:28:43 -07:00
parent fb21015811
commit 29db2ee513
2 changed files with 45 additions and 0 deletions

15
aurweb/models/term.py Normal file
View file

@ -0,0 +1,15 @@
from sqlalchemy.orm import mapper
from aurweb.schema import Terms
class Term:
def __init__(self,
Description: str = None, URL: str = None,
Revision: int = None):
self.Description = Description
self.URL = URL
self.Revision = Revision
mapper(Term, Terms)