add webpage info
This commit is contained in:
parent
e4d2e64ce7
commit
959fd1ac86
5 changed files with 83 additions and 8 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from sqlalchemy import BigInteger, Column, MetaData, String, Float, Text, Index
|
||||
from sqlalchemy import BigInteger, Column, MetaData, String, Float, Text, Index, Integer
|
||||
from sqlalchemy.orm import DeclarativeBase
|
||||
from sqlalchemy.orm import sessionmaker
|
||||
from sqlalchemy import create_engine
|
||||
|
|
@ -26,5 +26,13 @@ Index(
|
|||
)
|
||||
|
||||
|
||||
class Webpage(Base):
|
||||
__tablename__ = "webpage"
|
||||
|
||||
id = Column(String, primary_key=True, index=True)
|
||||
n = Column(Integer, index=True)
|
||||
description = Column(String)
|
||||
|
||||
|
||||
engine = create_engine(settings.DATABASE_URL)
|
||||
Session = sessionmaker(autocommit=False, autoflush=False, bind=engine)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue