This repository was archived by the owner on Jun 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsert_test_users.sql
More file actions
82 lines (78 loc) · 1.86 KB
/
Copy pathinsert_test_users.sql
File metadata and controls
82 lines (78 loc) · 1.86 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
-- IoTBay Test User Accounts
-- Generated with real PBKDF2 password hashes
-- 1. Customer Account
-- Email: customer@iotbay.com
-- Password: Customer123!
-- Role: customer
INSERT INTO User (
email, password, firstName, lastName, phoneNumber, postalCode,
addressLine1, city, state, country, dateOfBirth, paymentMethod,
role, isActive
) VALUES (
'customer@iotbay.com',
'6ZvrBCHRNlbPXhAo7mfiVA==$6oMRVQgjsIOfKTAdViTk9P8LvovzqWgcJcDvtsSRdAc=',
'John',
'Doe',
'+1-555-0101',
'10001',
'123 Main Street',
'New York',
'NY',
'US',
'1990-01-15',
'Credit Card',
'customer',
1
);
-- 2. Staff Account
-- Email: staff@iotbay.com
-- Password: Staff123!
-- Role: staff
INSERT INTO User (
email, password, firstName, lastName, phoneNumber, postalCode,
addressLine1, city, state, country, dateOfBirth, paymentMethod,
role, isActive
) VALUES (
'staff@iotbay.com',
'JNFcWlULWtVEp8W1CQAj/Q==$cNFmDPjy/aoVxG7iKSUnyatXdCVUNumJE52UktDfiFU=',
'Jane',
'Smith',
'+1-555-0102',
'10002',
'456 Oak Avenue',
'Brooklyn',
'NY',
'US',
'1985-05-20',
'Debit Card',
'staff',
1
);
-- 3. Admin Account
-- Email: admin@iotbay.com
-- Password: Admin123!
-- Role: admin
INSERT INTO User (
email, password, firstName, lastName, phoneNumber, postalCode,
addressLine1, city, state, country, dateOfBirth, paymentMethod,
role, isActive
) VALUES (
'admin@iotbay.com',
'AHumHVDk29IxboBBSXbjJQ==$YmURXvUmOkWR5mF5Vb2RZvws9q36RMFbr8UuwUxVGUY=',
'Alice',
'Johnson',
'+1-555-0103',
'10003',
'789 Pine Road',
'Manhattan',
'NY',
'US',
'1980-12-10',
'PayPal',
'admin',
1
);
-- Verify the insertions
SELECT id, email, firstName, lastName, role, isActive, createdAt
FROM User
WHERE email IN ('customer@iotbay.com', 'staff@iotbay.com', 'admin@iotbay.com');