creating the first user, where disableSignUp is true
Hi, are there any suggestions on how to do this? I've created the DB schema fine but with this off and no API in place yet I was hoping there'd be a CLI command
2 Replies
You can use the db adapter to seed the database with the admin user.
I'm using drizzle-orm and I've created a seed.ts file, which I then ran using
"bun run server/src/db/seed.ts"
.
If you use a different adapter then you'll need to check their docs on seeding the database.
Here is the script:
amazing, thank you for sharing this!