Describe the bug
omymodels unable to generate SQLModel code with Arrays.
To Reproduce
Steps to reproduce the behavior:
Run
from omymodels import create_models
ddl = """
CREATE TABLE test_table (
id SERIAL PRIMARY KEY,
names TEXT[]
);
"""
result = create_models(ddl, models_type='sqlmodel')['code']
print(result)
Will receive the following error -
TypeError: string indices must be integers, not 'str'
Expected behavior
SQLModel code generates without errors.
Desktop (please complete the following information):
- OS: MacOS
- Version [e.g. 22]