mock create drawing
This commit is contained in:
@@ -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",
|
||||
),
|
||||
]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user