Add Customer users

This commit is contained in:
Aditya Siregar
2025-08-03 23:55:51 +07:00
parent 96743cf50b
commit 5741243425
69 changed files with 3005 additions and 158 deletions
@@ -0,0 +1,7 @@
-- Fix any existing users with invalid permissions data
UPDATE users
SET permissions = '{}'::jsonb
WHERE permissions IS NULL OR permissions = 'null'::jsonb OR permissions = '[]'::jsonb;
-- Ensure all users have valid permissions
ALTER TABLE users ALTER COLUMN permissions SET DEFAULT '{}'::jsonb;