-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
26 lines (19 loc) · 695 Bytes
/
models.py
File metadata and controls
26 lines (19 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from sqlalchemy import Column, Integer, String
from database import Base
class ChatList(Base):
__tablename__ = "chatlist"
idx = Column(Integer, primary_key=True, index=True)
userID = Column(String)
chatID = Column(String)
chatList = Column(String)
lastChat = Column(String)
class LoginList(Base):
__tablename__ = "loginlist"
idx = Column(Integer, primary_key=True, index=True)
userID = Column(String, unique=True, index=True)
password = Column(String)
class FriendList(Base):
__tablename__ = "friendlist"
idx = Column(Integer, primary_key=True, index=True)
userID = Column(String, index=True)
friend = Column(String)