Open1

Supabaseでユニークなカラムを作成

breakbotbreakbot

uidとは別に、ユーザー固有のidを作ろうとしたとき、Table EditerのNew TableのGUIではユニーク属性のカラムを作成することができなかった。
ScriptsのCreate Tableからであれば作成できた。

create table profiles (
  id uuid references auth.users not null,
  user_name text unique,
  unique(username),
);