feat: 将flask改造成fastapi
This commit is contained in:
22
models.py
Normal file
22
models.py
Normal file
@@ -0,0 +1,22 @@
|
||||
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String
|
||||
from sqlalchemy.orm import relationship
|
||||
|
||||
from database import Base
|
||||
# from .database import Base
|
||||
|
||||
class User(Base):
|
||||
__tablename__ = "users"
|
||||
|
||||
id = Column(Integer, primary_key=True)
|
||||
wxid = Column(String)
|
||||
openId = Column(String)
|
||||
sex = Column(String) #性别
|
||||
country = Column(String) #"CN"
|
||||
province = Column(String) #"Hubei"
|
||||
sourceStr = Column(String) #:"通过朋友验证消息添加"
|
||||
usertype = Column(String)
|
||||
nickname = Column(String) #昵称
|
||||
wxaccount = Column(String) #微信号
|
||||
remark = Column(String) #备注
|
||||
smallhead = Column(String) #头像
|
||||
|
||||
Reference in New Issue
Block a user