@ai-devtools/dbspec-linux-x64 1.1.12 → 1.2.0

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: 1.1.12
3
+ Version: 1.2.0
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
@@ -124,6 +124,7 @@ src/storage/init_resources.py
124
124
  src/storage/init_templates.py
125
125
  src/storage/init_validation.py
126
126
  src/storage/paths.py
127
+ src/storage/removed_fields.py
127
128
  src/storage/sheets.py
128
129
  src/storage/config_creators/__init__.py
129
130
  src/storage/config_creators/conditional_formatting.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dbspec"
7
- version = "1.1.12"
7
+ version = "1.2.0"
8
8
  description = "DBSpec: CLI/TUI for database design (Excel as DSL)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -31,7 +31,7 @@
31
31
  - `emit_typing_imports` - режим typing-импортов (`auto|minimal|full`)
32
32
 
33
33
  Поля колонок:
34
- - `name`, `attr_name`, `sa_type`, `python_type`, `nullable`, `is_pk`, `is_unique`, `fk_target`, `server_default`, `description`, `sequence`
34
+ - `name`, `attr_name`, `sa_type`, `python_type`, `nullable`, `is_pk`, `fk_target`, `server_default`, `description`, `sequence`
35
35
 
36
36
  Поля связей:
37
37
  - `attr_name`, `python_type`, `target_class`, `back_populates`, `fk_columns`
@@ -73,9 +73,6 @@ from ..{{ common_dir_name }}.base import metadata
73
73
  {% if col.disable_autoincrement -%}
74
74
  {% set _ = col_args.append('autoincrement=False') -%}
75
75
  {% endif -%}
76
- {% if col.is_unique -%}
77
- {% set _ = col_args.append('unique=True') -%}
78
- {% endif -%}
79
76
  {% if col.nullable -%}
80
77
  {% set _ = col_args.append('nullable=True') -%}
81
78
  {% else -%}
@@ -310,9 +307,6 @@ class {{ table.class_name }}({{ base_class }}):
310
307
  {% if col.disable_autoincrement -%}
311
308
  {% set _ = col_args.append('autoincrement=False') -%}
312
309
  {% endif -%}
313
- {% if col.is_unique -%}
314
- {% set _ = col_args.append('unique=True') -%}
315
- {% endif -%}
316
310
  {% if col.nullable -%}
317
311
  {% set _ = col_args.append('nullable=True') -%}
318
312
  {% else -%}
package/bin/dbspec/dbspec CHANGED
Binary file
package/package.json CHANGED
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "version": "1.1.12"
27
+ "version": "1.2.0"
28
28
  }