@ai-devtools/dbspec-windows-x64 0.7.14 → 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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbspec
3
- Version: 0.7.14
3
+ Version: 0.7.16
4
4
  Summary: DBSpec: CLI/TUI for database design (Excel as DSL)
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dbspec"
7
- version = "0.7.14"
7
+ version = "0.7.16"
8
8
  description = "DBSpec: CLI/TUI for database design (Excel as DSL)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -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 -%}
Binary file
package/package.json CHANGED
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "version": "0.7.14"
27
+ "version": "0.7.16"
28
28
  }