feat: alembic migration added
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user