Tomei SSO Package
npm i
.env file
npm run start:dev
DATABASE_URL and SHADOW_DATABASE_URL in your project .env file
SHADOW_DATABASE_URL to it
create-sso-user.sql as an example to create the user and grant privileges
schema.prisma file
npx prisma migrate dev --name --preview-feature --create-only to create the migration. The migration will be created in the migrations folder.
latin1 from utf8mb4 and remove COLLATE phrase.please also add it to the create-sso-user.sql file for references
npx prisma migrate deploy to run the migration
npx prisma generate to generate the prisma client