Do you have to use exactly one schema.ts?
I'm thinking about splitting up app logic schema and auth logic into two different schemas and I'm wondering whether those can be two files or if I will have to put them all in one file.
2 Replies
There has to be one top level schema.ts, but it is config-as-code, so you can import other files from
schema.ts
- so you can split your logic into multiple files and import it from schema.ts
.
Does that help? Hopefully I'm understanding properly, but want to double check.To add to @nipunn's suggestion, you can use Object spread to include multiple tables: