include time restriction
All checks were successful
release-tag / release-image (push) Successful in 42s
All checks were successful
release-tag / release-image (push) Successful in 42s
This commit is contained in:
@@ -25,18 +25,21 @@ class PeriodEnum(str, Enum):
|
||||
twoyears = "1 - 2 Jahre"
|
||||
longterm = "mehr als zwei Jahre"
|
||||
|
||||
|
||||
class RegistrationBase(SQLModel):
|
||||
email: EmailStr = Field(unique=True, index=True, max_length=255)
|
||||
email: EmailStr = Field(max_length=255)
|
||||
first_name: str
|
||||
last_name: str
|
||||
birthday: date
|
||||
voice: VoiceEnum
|
||||
duration: PeriodEnum
|
||||
|
||||
number_of_attempts: int
|
||||
|
||||
|
||||
class RegistrationCreate(RegistrationBase):
|
||||
pass
|
||||
|
||||
|
||||
class Registration(RegistrationBase, table=True):
|
||||
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
|
||||
timestamp: datetime = Field(default_factory=func.now)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user