feat: alembic migration added

This commit is contained in:
2025-06-04 21:43:39 -04:00
parent a91469257b
commit ccb934986f
21 changed files with 348 additions and 9 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ def get_items(db: Session, skip: int = 0, limit: int = 10):
return db.query(models.Item).offset(skip).limit(limit).all()
def create_item(db: Session, item: schemas.ItemCreate):
def create_item(db: Session, item: schemas.Item):
db_item = models.Item(**item.model_dump())
db.add(db_item)
db.commit()