mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
add Term SQLAlchemy ORM model
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
fb21015811
commit
29db2ee513
2 changed files with 45 additions and 0 deletions
15
aurweb/models/term.py
Normal file
15
aurweb/models/term.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue