mock create drawing

This commit is contained in:
XIE7654
2025-07-21 22:22:32 +08:00
parent 816668530c
commit 71d5053b9c
19 changed files with 504 additions and 43 deletions

View File

@@ -0,0 +1,23 @@
# Generated by Django 5.2.1 on 2025-07-21 13:24
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("ai", "0005_image"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.RenameModel(
old_name="Image",
new_name="Drawing",
),
migrations.AlterModelTable(
name="drawing",
table="ai_drawing",
),
]

View File

@@ -332,7 +332,7 @@ class ChatMessage(CoreModel):
return self.content[:30]
class Image(CoreModel):
class Drawing(CoreModel):
user = models.ForeignKey(
settings.AUTH_USER_MODEL,
@@ -359,6 +359,6 @@ class Image(CoreModel):
buttons = models.CharField(max_length=2048, null=True, verbose_name='mj buttons 按钮')
class Meta:
db_table = 'ai_image'
db_table = 'ai_drawing'
verbose_name = 'AI 绘画表'
verbose_name_plural = verbose_name