feat: 代码生成新增字段唯一性配置

This commit is contained in:
insistence
2025-02-18 16:10:57 +08:00
parent 2a486dc01e
commit fd07ad088c
13 changed files with 26 additions and 14 deletions

View File

@@ -137,7 +137,7 @@
{% for column in columns %}
{% set field = column.python_field %}
{% if column.insert and not column.pk %}
{% if column.usable_column or column.super_column %}
{% if column.usable_column or not column.super_column %}
{% set parentheseIndex = column.column_comment.find("") %}
{% set comment = column.column_comment[:parentheseIndex] if parentheseIndex != -1 else column.column_comment %}
{% set dictType = column.dict_type %}

View File

@@ -160,7 +160,7 @@
{% for column in columns %}
{% set field = column.python_field %}
{% if column.insert and not column.pk %}
{% if column.usable_column or column.super_column %}
{% if column.usable_column or not column.super_column %}
{% set parentheseIndex = column.column_comment.find("") %}
{% set comment = column.column_comment[:parentheseIndex] if parentheseIndex != -1 else column.column_comment %}
{% set dictType = column.dict_type %}