CREATE TABLE public.contact_submissions (
 id uuid PRIMARY KEY, created_at timestamptz NOT NULL DEFAULT now(),
 name text NOT NULL, email text NOT NULL, phone text NOT NULL DEFAULT '', message text NOT NULL
);
GRANT ALL ON public.contact_submissions TO service_role;
ALTER TABLE public.contact_submissions ENABLE ROW LEVEL SECURITY;
CREATE TABLE public.newsletter_submissions (
 id uuid PRIMARY KEY, created_at timestamptz NOT NULL DEFAULT now(), email text NOT NULL
);
GRANT ALL ON public.newsletter_submissions TO service_role;
ALTER TABLE public.newsletter_submissions ENABLE ROW LEVEL SECURITY;
COMMENT ON TABLE public.contact_submissions IS 'Private contact messages. Only trusted server actions and Cloud management may access.';
COMMENT ON TABLE public.newsletter_submissions IS 'Private newsletter signup requests. No marketing email is sent by the app.';