Skip to content

Commit 6613f6d

Browse files
authored
Fix the SQLAlchemy Item class
1 parent 6526319 commit 6613f6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ Add a vector column
138138
from pgvector.sqlalchemy import Vector
139139

140140
class Item(Base):
141+
__tablename__ = "items"
142+
id: Mapped[int] = mapped_column(primary_key=True)
141143
embedding = mapped_column(Vector(3))
142144
```
143145

0 commit comments

Comments
 (0)