Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Clinical-Genomics_statina /statina /models /database /user.py
| from datetime import datetime | |
| from typing import Literal, Optional | |
| import secrets | |
| from pydantic import BaseModel, EmailStr | |
| inactive_roles = [ | |
| "unconfirmed", | |
| "inactive", | |
| ] | |
| class User(BaseModel): | |
| username: str | |
| email: EmailStr | |
| added: datetime | |
| role: Literal[ | |
| "unconfirmed", | |
| "inactive", | |
| "R", | |
| "RW", | |
| "admin", | |
| ] | |
| hashed_password: str | |
| verification_hex: str = secrets.token_urlsafe(64) | |
Xet Storage Details
- Size:
- 455 Bytes
- Xet hash:
- 7d0c87b5ed23f15683fd1552d6a926bebbefb0e82eb17af36944308c9826f0fe
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.