Is there a way to declare a custom SQL index?
I'm trying to create an index on the lowercase value of a column using Postgres.
I tried but "on" only accepts columns
I tried but "on" only accepts columns
unique().on(sql`lower(${table.username}::text)`)