Browse Source

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

pull/13907/head
Zhengyang Cui 5 months ago
committed by GitHub
parent
commit
54ca043e27
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      backend/app/models.py

1
backend/app/models.py

@ -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"
)

Loading…
Cancel
Save