You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A nice option to this tool would be the ability to have types or interfaces generated that reflect relationships between tables.
For example, if I have a table of School, and each school can have zero or more Coaches, it would be great if the type generated for the Schools could reflect that relationship as follows:
export type Coach {
// all the fields for a coach
}
export type SchoolWithRelations {
// other fields for a School
coaches: Coach[]
}
I'm not sure if this is even possible, or how difficult it would be... but, thought I'd throw it out there.
The text was updated successfully, but these errors were encountered:
A nice option to this tool would be the ability to have types or interfaces generated that reflect relationships between tables.
For example, if I have a table of School, and each school can have zero or more Coaches, it would be great if the type generated for the Schools could reflect that relationship as follows:
export type Coach {
// all the fields for a coach
}
export type SchoolWithRelations {
// other fields for a School
coaches: Coach[]
}
I'm not sure if this is even possible, or how difficult it would be... but, thought I'd throw it out there.
The text was updated successfully, but these errors were encountered: