From d43ae4d57d9274fb522896eb5cc48bb3190bce32 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Mon, 10 Feb 2025 01:06:24 +0800 Subject: [PATCH] =?UTF-8?q?feat(tarot):=20=E7=A7=BB=E9=99=A4=E7=89=8C?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E6=AE=B5=E7=9A=84=E5=94=AF=E4=B8=80=E6=80=A7?= =?UTF-8?q?=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了 `tarot.py` 中的 `name` 字段,移除了 `unique=True` 约束,以允许重复的牌名。 --- src/clover_sqlite/models/tarot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clover_sqlite/models/tarot.py b/src/clover_sqlite/models/tarot.py index 73e49f7..fcdcbdf 100644 --- a/src/clover_sqlite/models/tarot.py +++ b/src/clover_sqlite/models/tarot.py @@ -58,7 +58,7 @@ class MajorArcanaLog(Model): id = fields.IntField(pk=True) user_id = fields.CharField(max_length=255, description="用户id") ints = fields.CharField(max_length=64,description="正逆") - name = fields.CharField(max_length=64, unique=True, description="牌名") + name = fields.CharField(max_length=64, description="牌名") meaning = fields.TextField(description="正位/逆位含义") image = fields.CharField(max_length=255, description="图片文件名") create_time = fields.DateField(auto_now_add=True)