initial commit
This commit is contained in:
8
backend/models.py
Normal file
8
backend/models.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from sqlalchemy import Column, Integer, String
|
||||
from database import Base
|
||||
|
||||
class Item(Base):
|
||||
__tablename__ = "items"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
title = Column(String, nullable=False)
|
||||
Reference in New Issue
Block a user