Custom column type

is this posible?
const intZeroNotNull = integer().default(0).notNull()
const intZeroNotNull = integer().default(0).notNull()
and how i should make it work, because this doesn't
const example = {
id: integer().primaryKey(),
value: intZeroNotNull
}
const example = {
id: integer().primaryKey(),
value: intZeroNotNull
}
thanks
1 Reply
camiaei
camiaeiOP2mo ago
i think i get it
const intZeroNotNull = () => integer().default(0).notNull();
const intZeroNotNull = () => integer().default(0).notNull();
Want results from more Discord servers?
Add your server