Problem when inserting new record

Hello guys, when I'm trying to insert new record, I'm getting this PG error

null value in column "id" of relation "MagicLinks" violates not-null constraint

and in my schema, I have id: uuid('id').primaryKey().defaultRandom()

what am I doing wrong?

Thanks
Was this page helpful?