File size: 346 Bytes
39af4d2
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from pydantic import BaseModel, EmailStr
from typing import Optional, List

class User(BaseModel):
    id: Optional[str] = None  # Will be generated by the database
    email: EmailStr
    password: str  # In a real app, this would be hashed
    software_experience: Optional[List[str]] = None
    hardware_experience: Optional[List[str]] = None