@ai-devtools/dbspec-windows-x64 0.7.15 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dbspec/_internal/base_library.zip +0 -0
- package/bin/dbspec/_internal/dbspec.egg-info/PKG-INFO +1 -1
- package/bin/dbspec/_internal/pyproject.toml +1 -1
- package/bin/dbspec/_internal/src/resources/sqlalchemy_templates/model.py.j2 +3 -0
- package/bin/dbspec/dbspec.exe +0 -0
- package/package.json +1 -1
|
Binary file
|
|
@@ -268,6 +268,9 @@ class {{ table.class_name }}({{ base_class }}):
|
|
|
268
268
|
|
|
269
269
|
{% for col in table.columns %}
|
|
270
270
|
{{ col.attr_name }}: Mapped[{{ col.python_type if col.python_type else "Any" }}] = mapped_column(
|
|
271
|
+
{% if col.attr_name != col.name %}
|
|
272
|
+
{{ col.name | py_repr }},
|
|
273
|
+
{% endif %}
|
|
271
274
|
{{ col.sa_type }},
|
|
272
275
|
{% set col_args = [] -%}
|
|
273
276
|
{% if col.fk_target -%}
|
package/bin/dbspec/dbspec.exe
CHANGED
|
Binary file
|
package/package.json
CHANGED