数据库中uid类型改成BigInteger

This commit is contained in:
John Smith 2022-06-03 13:47:22 +08:00
parent aac9f62a70
commit 1075b458aa

View File

@ -6,6 +6,6 @@ import models.database
class BilibiliUser(models.database.OrmBase):
__tablename__ = 'bilibili_users'
uid = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True)
uid = sqlalchemy.Column(sqlalchemy.BigInteger, primary_key=True) # 创建表后最好手动改成unsigned
avatar_url = sqlalchemy.Column(sqlalchemy.String(100))
update_time = sqlalchemy.Column(sqlalchemy.DateTime)