Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /fief-dev_fief /fief /models /permission.py
| from sqlalchemy import String | |
| from sqlalchemy.orm import Mapped, mapped_column | |
| from fief.models.base import Base | |
| from fief.models.generics import CreatedUpdatedAt, UUIDModel | |
| class Permission(UUIDModel, CreatedUpdatedAt, Base): | |
| __tablename__ = "permissions" | |
| name: Mapped[str] = mapped_column(String(length=255), nullable=False) | |
| codename: Mapped[str] = mapped_column( | |
| String(length=255), nullable=False, unique=True | |
| ) | |
| def __repr__(self) -> str: | |
| return f"Permission(id={self.id}, name={self.name}, codename={self.codename})" | |
Xet Storage Details
- Size:
- 563 Bytes
- Xet hash:
- 2ab037939a9297b231c3e088ad9c7f82bf419ed834950dd16dd34d27a74e7f2c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.