Drizzle doesn't know how to serialize a bigint

When using a defaultValue for a bigint like this:
storage: bigint('storage', {mode: 'bigint'}).default(262144000n).notNull(), // 250mb in bytes

I will ge the following error when generating the schema:
TypeError: Do not know how to serialize a BigInt

I am using postgresql
Solution
Try without the n ? I guess it is only a JS thing right?
Was this page helpful?