I have attached a user schema (see below)
I would like to save a list of tunes for each user
How to do it?
For example
For email I used the EmailStr type
What to add in this line of code
Tune: Indexed()
from uuid import UUID, uuid4
from beanie import Document, Indexed
from pydantic import Field, EmailStr
class User(Document):
user_id: UUID = Field(default_factory=uuid4)
username: Indexed(str, unique=True)
email: Indexed(EmailStr, unique=True)
hashed_password: str
Tune: Indexed()