unique=True) email = fields.CharField(max_length=128, unique=True) class Meta: table = "auth_users" indexes = ("username", "user_status") class UserUpdateRequest(pydantic_model_creator( cls=AuthUsers, name="UserUpdateRequest", exclude=("username", "password",), exclude_readonly=True, op...
(user_id: int): return await Chirp_Pydantic.from_queryset(Chirp.filter(user_id=user_id)) @app.post("/chirps", response_model=Chirp_Pydantic) async def create_chirp(chirp: ChirpIn_Pydantic): chirp_obj = await Chirp.create(**chirp.dict(exclude_unset=True)) return await Chirp_Pydantic....