mirror of
https://github.com/RYDE-WORK/full-stack-fastapi-template.git
synced 2026-01-19 13:13:25 +08:00
♻️ Remove redundant field in inherited class (#1520)
This commit is contained in:
parent
521e6e4eda
commit
54ca043e27
@ -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…
x
Reference in New Issue
Block a user