You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
473 B
14 lines
473 B
from tortoise.models import Model
|
|
from tortoise import fields
|
|
from datetime import datetime
|
|
|
|
|
|
class HotQuestion(Model):
|
|
id = fields.IntField(pk=True, description="ID")
|
|
title = fields.CharField(max_length=255, description="问题")
|
|
num = fields.IntField(default=0, description="次数")
|
|
update_time = fields.DatetimeField(auto_now=True, description="更新时间")
|
|
|
|
class Meta:
|
|
table = "hot_question"
|
|
table_description = "热门问题表" |