Custom column type

is this posible?

const intZeroNotNull = integer().default(0).notNull()


and how i should make it work, because this doesn't

const example = {
  id: integer().primaryKey(),
  value: intZeroNotNull 
}


thanks
Was this page helpful?