column "roles" is of type integer[] but default expression is of type integer

  roles: integer("roles")
    .array()
    .$type<UserRole[]>()
    .default([UserRole.Member]),


I don't understand what the problem is. It's clearly an array, right?
Was this page helpful?