Skip to content

Commit

Permalink
Working on unique resource flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozgulbas committed Sep 28, 2024
1 parent 1266efb commit c5db32a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wei/types/resource_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class AssetBase(SQLModel):
id: str = SQLField(default_factory=lambda: str(ulid.new()), primary_key=True)
name: str = SQLField(default="", nullable=False)
module_name: str = SQLField(default="", nullable=True)
unique_resource: bool = SQLField(
default=True, nullable=False
) # New flag to determine uniqueness


class Asset(AssetBase, table=True):
Expand Down

0 comments on commit c5db32a

Please sign in to comment.