Zhengyang Cui
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
1 deletions
-
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" |
|
|
|
) |
|
|
|