Skip to content

Commit

Permalink
fix(models); remove faulty pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Oct 27, 2024
1 parent 5d9ddcb commit c252680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Organization(SQLModel, table=True):
__tablename__ = "organizations"
id: int = Field(None, primary_key=True)
name: str = Field(..., min_length=5, max_length=100, nullable=False, unique=True)
telegram_id: Union[str, None] = Field(None, pattern=r"^@[a-zA-Z0-9_-]+$", nullable=True)
telegram_id: Union[str, None] = Field(None, nullable=True)


class Webhook(SQLModel, table=True):
Expand Down

0 comments on commit c252680

Please sign in to comment.