add user_session
This commit is contained in:
parent
9b4a6a3ad5
commit
b2eba19fb1
3 changed files with 83 additions and 7 deletions
|
|
@ -34,5 +34,13 @@ class Webpage(Base):
|
|||
description = Column(String)
|
||||
|
||||
|
||||
class UserSession(Base):
|
||||
__tablename__ = "user_session"
|
||||
|
||||
id = Column(BigInteger, primary_key=True, index=True)
|
||||
user_id = Column(String, index=True)
|
||||
session_id = 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