Migrations won't run

It might be because it's 2 AM, but I have been trying to change my project's structure now that it's growing bigger and bigger, and I decided to separate the schema into multiple files, so now I have UserModel.ts, ProjectModel.ts, etc... Then I made a schema.ts, where I tried this:

import * as user from './UserModel.ts'
import * as project from './ProjectModel.ts'
export const schema = {
  ...user,
  ...project,
}


Which seemed to work because I got types, but whenever I run drizzle-kit generate:pg, it shows me "0 tables", and nothing is created, I tried exporting default, just exporting them all, nothing seems to work, any ideas? Probably gonna go to bed and figure it out but it's been driving me insane for the past hour or so
Was this page helpful?