an api is written on /api/read/teams to read team data, display the team details of a particular user to themselves on a page called /my-team
details
create a schema for Lead
model Lead {
id Int @id
user User @relation(fields: [userId], references: [id])
team Team @relation(fields: [teamId], references: [id])
userId String
teamId Int
}
create a page /my-team to read the team data(team name, lead and members) and show it to the user
an api is written on /api/read/teams to read team data, display the team details of a particular user to themselves on a page called /my-team
details