Skip to content

Commit

Permalink
fix: updated provider db model to make name unique
Browse files Browse the repository at this point in the history
  • Loading branch information
pehlicd committed Jun 5, 2024
1 parent 23e2018 commit 4454564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keep/api/models/db/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Provider(SQLModel, table=True):
id: str = Field(default=None, primary_key=True)
tenant_id: str = Field(foreign_key="tenant.id")
name: str
name: str = Field(unique=True)
description: Optional[str]
type: str
installed_by: str
Expand Down

0 comments on commit 4454564

Please sign in to comment.