create table user_data(
    owner uuid not null references users(id) on delete cascade,
    "user" uuid not null references users(id) on delete cascade,
    "key" text not null,
    data jsonb not null,
    unique (owner, "user"),
    primary key (owner, "user", "key")
);
