add maxkb toggle
This commit is contained in:
11
models.py
11
models.py
@@ -2,10 +2,17 @@ from tortoise.models import Model
|
||||
from tortoise import fields
|
||||
|
||||
class PresetCode(Model):
|
||||
"""预设代码数据库模型"""
|
||||
id = fields.IntField(pk=True)
|
||||
query = fields.CharField(max_length=255, unique=True)
|
||||
code = fields.TextField()
|
||||
|
||||
|
||||
class Meta:
|
||||
table = "preset_codes"
|
||||
|
||||
|
||||
class Setting(Model):
|
||||
key = fields.CharField(max_length=100, pk=True)
|
||||
value = fields.BooleanField()
|
||||
|
||||
class Meta:
|
||||
table = "settings"
|
||||
|
||||
Reference in New Issue
Block a user