Field Forge Group

NSPost.co Setup

by Field Forge Group

Bootstrapping the first admin
  1. Create your first user from the Lovable Cloud Users page (or via the email sign-up flow once enabled).
  2. The handle_new_user trigger creates a matching profiles row with role technician by default.
  3. Run the SQL below to promote that user to admin (replace the email):
UPDATE public.profiles
SET role = 'admin', full_name = 'Admin User'
WHERE id = (SELECT id FROM auth.users WHERE email = 'me@example.com');

After running this, sign in at /auth and you'll be redirected to /admin/dashboard.

All times Arizona (MST). © Field Forge Group