You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
338 B
Python
17 lines
338 B
Python
from settings.config import SQLACHEMY
|
|
from sqlalchemy import Table
|
|
from sqlalchemy.orm import declarative_base
|
|
|
|
Base = declarative_base()
|
|
|
|
class ViewedNews(Base):
|
|
"""
|
|
Viewed news model class.
|
|
"""
|
|
__table__ = Table(
|
|
"viewed_news",
|
|
Base.metadata,
|
|
autoload=True,
|
|
autoload_with=SQLACHEMY
|
|
)
|