create table events (
id uuid primary key DEFAULT gen_random_uuid(),
organizer_id uuid references auth.users not null,
profile_id uuid references profiles.id not null,
name text
);
create table profiles (
id uuid references auth.users not null,
created_at timestamp with time zone default now(),
updated_at timestamp with time zone,
deleted_at timestamp with time zone,
name text,
constraint name_length check (char_length(name) >= 2)
);
create table events (
id uuid primary key DEFAULT gen_random_uuid(),
organizer_id uuid references auth.users not null,
profile_id uuid references profiles.id not null,
name text
);
create table profiles (
id uuid references auth.users not null,
created_at timestamp with time zone default now(),
updated_at timestamp with time zone,
deleted_at timestamp with time zone,
name text,
constraint name_length check (char_length(name) >= 2)
);