10 lines
301 B
Python
10 lines
301 B
Python
from sqlalchemy import Boolean, Column, String, Text
|
|
|
|
from app.models.base import BaseModel
|
|
|
|
|
|
class Item(BaseModel):
|
|
"""Item model for database"""
|
|
name = Column(String(255), nullable=False, index=True)
|
|
description = Column(Text, nullable=True)
|
|
is_active = Column(Boolean, default=True) |