Making a key in a object with jsonb unique

type Wallets = {
    wallet_address: string;
    blockchain: string;
};

export const user = pgTable(
    'user',
    {
        id: serial('id').primaryKey(),
        wallets: jsonb('wallets').$type<Wallets[]>(),
);


how would i make wallet_address unique?
Was this page helpful?