create table if not exists "user"
(
    uid             uuid                     not null
        primary key,
    username        varchar(255)             not null,
    display_name    varchar(255),
    avatar_url      varchar(255),
    website_url     varchar(255),
    organization    varchar(255),
    last_sign_in_at timestamp with time zone,
    created_at      timestamp with time zone not null,
    updated_at      timestamp with time zone not null
);

create index if not exists idx_user_username
    on "user" (username);
