增加历史版本数据migrate文件

main
RogerWork 2 weeks ago
parent a7b2405198
commit f78ac867c1
  1. 29
      product/migrations/0003_prdhistory.py

@ -0,0 +1,29 @@
# Generated by Django 4.2.7 on 2025-06-12 01:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0002_prditem_update_at'),
]
operations = [
migrations.CreateModel(
name='PrdHistory',
fields=[
('id', models.AutoField(primary_key=True, serialize=False)),
('prd_id', models.IntegerField(help_text='对应版本的id', verbose_name='对应版本的id')),
('history_doc_link', models.TextField(help_text='历史产品原型链接', verbose_name='历史产品原型链接')),
('update_at', models.DateField(help_text='最后更新日期', verbose_name='最后更新日期')),
('is_delete', models.BooleanField(default=False, help_text='删除状态', verbose_name='删除状态')),
],
options={
'verbose_name': '历史文档列表',
'verbose_name_plural': '历史文档列表',
'db_table': 'prd_history',
'db_table_comment': '历史文档列表',
},
),
]
Loading…
Cancel
Save