♻️ Remove redundant field in inherited class (#1520)

This commit is contained in:
Zhengyang Cui
2025-03-19 08:52:49 -04:00
committed by GitHub
parent 521e6e4eda
commit 54ca043e27

View File

@@ -75,7 +75,6 @@ class ItemUpdate(ItemBase):
# Database model, database table inferred from class name
class Item(ItemBase, table=True):
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
title: str = Field(max_length=255)
owner_id: uuid.UUID = Field(
foreign_key="user.id", nullable=False, ondelete="CASCADE"
)