TypeError unless column is notNull

gave the following error.
Object literal may only specify known properties, and <column> does not exist in type:

schema.ts:
export const usersSchema = sqliteTable('users', {
  id: int().primaryKey({ autoIncrement: true }),
  name: text().notNull(),
  email: text().notNull().unique(),
  verified: int().notNull(),
  columnWithError: text(),
});

const user = await db
   .insert(usersSchema)
   .values({
      name: '',
      email,
      passwordHash,
      verified: 0,
      columnWithError, // NOT READ FOR SOME REASON
   })


Once I add the .notNull() the error is gone, am I doning something wrong?
Thanks.
Was this page helpful?