-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinsert-admin.sql
More file actions
38 lines (36 loc) · 858 Bytes
/
Copy pathinsert-admin.sql
File metadata and controls
38 lines (36 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-- Manual Admin Creation Script
-- Run this with: npx prisma db execute --file=insert-admin.sql --schema=prisma/schema.prisma
-- First, hash your password using bcrypt with rounds=10
-- Password: Adminshr@123!
-- You can use: https://bcrypt-generator.com/ or run: node -e "console.log(require('bcrypt').hashSync('Adminshr@123!', 10))"
INSERT INTO users (
"userId",
"userName",
role,
email,
password,
contact,
status,
"companyName",
timezone,
currency,
language,
address,
created_at,
updated_at
) VALUES (
gen_random_uuid(),
'Super Admin',
'admin',
'admin@shrhomes.com',
'$2b$10$B.omQKIn12icC7NWSVeUoufUEpMDm8MiDJN8VVorMjUhlVm92', -- Hashed: Adminshr@123!
'9876543210',
'Active',
'SHR Homes',
'UTC',
'USD ($)',
'English',
NULL,
NOW(),
NOW()
);