blivechat/models/bilibili.py

12 lines
377 B
Python
Raw Normal View History

2022-02-15 00:18:46 +08:00
# -*- coding: utf-8 -*-
import sqlalchemy
import models.database
class BilibiliUser(models.database.OrmBase):
__tablename__ = 'bilibili_users'
2022-06-03 13:47:22 +08:00
uid = sqlalchemy.Column(sqlalchemy.BigInteger, primary_key=True) # 创建表后最好手动改成unsigned
2022-02-15 00:18:46 +08:00
avatar_url = sqlalchemy.Column(sqlalchemy.String(100))
update_time = sqlalchemy.Column(sqlalchemy.DateTime)