21 lines
324 B
Python
21 lines
324 B
Python
from sqlalchemy import Column
|
|
from sqlalchemy import Integer
|
|
from sqlalchemy import String
|
|
|
|
from app.db.session import Base
|
|
|
|
|
|
class Item(Base):
|
|
|
|
__tablename__ = "items"
|
|
|
|
id = Column(
|
|
Integer,
|
|
primary_key=True,
|
|
index=True
|
|
)
|
|
|
|
title = Column(
|
|
String,
|
|
nullable=False
|
|
) |