add maxkb toggle

This commit is contained in:
2026-04-27 08:57:18 -06:00
parent c2549cf3cc
commit e1af34a986
3 changed files with 32 additions and 6 deletions

View File

@@ -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"